1. Display various terminals:
/dev/tty# Virtual Terminal,
/dev/pts# pseudo terminal, Telnet virtual machine
/dev/ttys# serial terminal, usually the ultimate hacker in the movie, does not need the video card to be able to display, namely is relative with DOS under the COM1 and COM2 and so on ....
/dev/console Physical Terminal
2. Create folder with time as folder name: MKDIR-PV $ (date +%f-%h-%m-%s) or mkdir ' Date +%f-%h-%m-%s '
3. Display hardware time: Hwclock, take the hardware time to prevail: hwclock-s, take the system time as the quasi-hwclock-w
4. Create multiple files in an expanded manner: mkdir {A,b}_{c,d} = A_c,a_d,b_c,b_d
5.echo-e "jsfhhjbvf\nj,snmfbnbrng" output two lines, ECHO has a line wrap function, if you do not need to wrap the line, you only need to add parameters, for example: Echo-n "MSCBDSHCBH", the display will be: mscbdshcbh[[ Email protected] test]#
6.man use: (1 user commands (2. System call (3. Library Call (4. This cup of file 5. file format 6. Games 7. Miscellaneous 8. Administrator commands
The difference between 7.usr/bin and/usr/sbin and Usr/local/bin and/usr/local/sbin is that the former provides the necessary programs for the system to run, while the latter is the program necessary to provide functionality to third-party programs, The former is equivalent to the Programfile under Windows for the entire system, while the latter provides the necessary programs such as those required by the QQ runtime. Levels are different.
8.file command, is the type of view file, binary? or other types, if not binary, the use of output will be garbled when the situation, and binary files in the Linux input normal file format.
9.tail-f/tmp/passwd This command allows the user to manually monitor the log, which can be traced as long as other users modify the file.
10.cp-r/etc/p???? d/tmp/a recursively copies a file with P beginning with the middle 4 arbitrary characters and ending with D to/tmp/a
Cp-rp/etc/passwd/tmp will keep the host, that is, keep the original property, this command is only open to the root because the properties change when CP
11. Each directory will have the following: and. Two directories, which is why you can use a relative path, such as: CD.., using Ls-al/..
12.echo usage: echo-e "\033[31;1;42;5mhello\033[0m" Shining reminder users in the input or other business operations need to pay attention to the use of ECHO, a lot of dazzle, have time to study.
13.CAT Displays line numbers and links and displays: Cat-n/etc/passwd and cat/etc {Passwd,shadow}