Cat display fileMore: Display files. Pause after each screen is displayed.PG pagination commandAfter running this command, a prompt is displayed at the bottom of the screen. You can enter the command,+N forward n screens-N back n screens+NL advances
shell recognition: built-in commands, Shell functions, and external commands: (1) the built-in command is the command executed by the shell itself. some commands are built-in because of their necessity. For example, if CD is used to change
Preface: Do not ask why you need to configure the network in Shell (command line) when the desktop system is popular. If you have any questions, please stop reading this article.
$ Iwlist wlan0 scan # list valid Wireless Networks$
The general statement is:
For f in 'ls ./'
However, if the file name contains spaces, for example, "a B", although ls can be correctly listed, for will use spaces as separators to assign A and B to F respectively, resulting in two file names.
The original article was written at 18:29:20,. NetEase blog has been deleted.To generate a random number in shell, you can call $ random in Bash to reference an introduction to random.Each time this is referenced, a random integer between 0 and 32767
I. Use of local variablesLocal variables act only in this shell, just like local variables. It does not affect variables in other shells.
1. Show variable valuesYou can use the echo command. Note that you must add the $ symbol before the variable
Point (.) command
The dot (.) command is an internal shell command that allows you to execute programs in the current shell without creating sub-processes.
Note
# Shell script annotator
Redirection character
> Usage: Command> filename. You can save
1. Display and Shell
We use two SWT classes to create windows:DisplayAndShell.DisplayIs the class responsible for managing the interaction between all SWT Widgets
And the underlying operating system. It is inDisplayThat you find methods that enable
Get the current period: 'date + % Y % m % d', 'date + % F', or $ (date + % Y % m % d)Get the period of yesterday: 'date-d Yesterday + % Y % m % d'Get date of the day before yesterday: 'date-D-2day + % Y % m % d'And so on, for example, get the date 10
Variable configuration rules
The variable and the variable content are linked with an equal sign "=", as shown below:"Myname = vbird 』
The equal sign cannot be directly followed by a space character, as shown below:"Myname = vbird" or "myname
This book has been read and written before. It is good to read again to deepen your memory.
Chapter 4 file security and permissions
1. directory permission bit
The directory permission bit is different from the file. The read permission bit of the
When writing a program, you sometimes need to call the shell script in a Java program. You can use the exec method of runtime to call the shell program and run the script.
Each Java application hasRuntimeClass instance, so that the application can
Source program from http://www.unixreview.com/documents/urm0108e/
The statement in the original program that filters out its own process has a bug. If you put killprog in the path of a $ PATH variable and then start killprog from other paths, $0
Originally published on Netease blog 20:17:39
Operating the database in Solaris shell is not very complicated. The whole process is the same as writing an FTP login shell.
The following is the shell I wrote after referring to the online materials:
1.
########################
Summary of several special shell variables:
########################
######################################## ####################
#
# Http://hi.baidu.com/xece/modify/blog/75327e382149dae23b87ce5a
##########################
In the bash shell series, when talking about variables, we first talk about the functions and modifications of environment variables, and then continue to talk about the use of historical commands. Next, let's talk about the important concept of
This is my usual work desktop. Or this is the Emacs I usually work on.
To see the big picture, click here
The above figure shows a 4-window working mode that many people like very much. This mode is widely used by shell users. I once liked this
Bash brings command line editing, and countless people are blessed.
Yes. This is the case. The command line editing is really a good friend in our daily work. Can you still imagine how it feels to work in an ancient Bourne shell without command line
If you have a small requirement at work, you need to rename a series of files.
The original format is string_1.obj. Now you want to change the number in the file name to a fixed length. If the number is less than the number of digits, it is changed
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.