Stat command:
Command Function ; Display the status of a file or file system
command Format ; stat [ options ] ... file
Command parameters:
- F status of the file system
- Z Print SELinux Security Catalog
- T display information in a concise manner
4. Command Instances ;
650) this.width=650; "src=" http://s3.51cto.com/wyfs02/M00/71/F3/wKioL1Xbzm-CG4TsAADqa7JdsB0702.jpg "/>
The following is a concise way to list:
650) this.width=650; "src=" http://s3.51cto.com/wyfs02/M00/71/F6/wKiom1XbzFrA1cUMAABe3k3WE-0765.jpg "/>
Echo command:
Command function: Displays text.
Command parameters:
- N do not wrap in the last line
- e Special handling if the following characters appear in the string
- e if the following characters appear in the string, no special processing is made
Text output:
\a issue an alarm
\b Delete the previous character
\c Finally, no newline characters are added.
\\ Insert \
\ t Insert Tab
echo "$VAR _name"
Instance:
650) this.width=650; "src=" http://s3.51cto.com/wyfs02/M01/71/F3/wKioL1XbznCBA4E2AAAsH5riGNM330.jpg "/>
650) this.width=650; "src=" http://s3.51cto.com/wyfs02/M01/71/F6/wKiom1XbzFrh641MAACCfZClTAQ059.jpg "/>
Shutdown command:
Command function: Shut down the machine.
command format: shutdown [ options ] ... Time
Command parameters:
- R Restart
- C Cancel Shutdown
- T Delay Shutdown Time
- k analog shutdown, just send a warning message to the lander
- H Power off
4. Examples;
Shutdown–h now system shuts down immediately
Shutdown–h 15:30 system shutdown at 15:30
SHUTDOWN–RF now restarts the system, but does not perform a disk check
Shutdown–r +2 2 minutes after restart
Halt command:
1. Command function: Shutdown, restart
2. Command parameters:
-F Force shutdown
-P shut down the machine
Reboot command:
1. Command function: Reboot the system.
2. Command parameters:
-F Force shutdown
-P shut down the machine
who command:
1. Command function: See who is logged in to the system.
2. Command parameters:
-a displays information about all the people who have logged in
-B System last boot time
-D printing of finished processes
-L Display System logon process
-R Displays the current operating level of the system
3. Example:
650) this.width=650; "src=" Http://s3.51cto.com/wyfs02/M01/71/F3/wKioL1Xb0InhwVDiAAKh1kFPFwI369.jpg "title=" Qq20150824164840.png "alt=" Wkiol1xb0inhwvdiaakh1kfpfwi369.jpg "/>
650) this.width=650; "src=" Http://s3.51cto.com/wyfs02/M00/71/F3/wKioL1Xb0LKA_7z6AAEFaO1d2yk871.jpg "title=" Qq20150824164920.png "alt=" Wkiol1xb0lka_7z6aaefao1d2yk871.jpg "/>
WHOAMI command:
1. Command function: Displays the user.
2. Example:
650) this.width=650; "src=" Http://s3.51cto.com/wyfs02/M02/71/F3/wKioL1Xb0FigMNmgAAAbU_m1_FA782.jpg "title=" Qq20150824165201.png "alt=" Wkiol1xb0figmnmgaaabu_m1_fa782.jpg "/>
Tty Command:
CommandTtyis aTeletypethe abbreviation. in theLinuxsystem, computer monitors are often referred to as console terminals(Console). It simulates the type ofLinuxof a terminal(Term=linux), and there are some device special files associated with it:tty0,tty1,Tty2and so on. When you log in on the console, you are using thetty1. UseAlt+[f1-f6]When you combine keys, we can switch toTty2,Tty3wait for the top to go. Tty1–tty6and so calledVirtual Terminal, whiletty0is an alias for the virtual terminal that is currently being used, and the information generated by the system is sent to that terminal (also called the console terminal). So regardless of which virtual terminal is currently in use,System Informationwill be sent to the console terminal. /dev/consoleThe console is the device that interacts with the operating system, and the system outputs some information directly to the console. Users are allowed to log in to the console only in single-user mode.
Whereis Command :
1. command function: Find binary, File , help manual
2. command format: Whereis [-BMSU] ... file name
3. Command parameters:
- b find only binary files
- M Find help Manuals
4. Example
650) this.width=650; "src=" Http://s3.51cto.com/wyfs02/M00/71/F3/wKioL1Xb0oaj49ucAABiU49B4wE374.jpg "title=" Qq20150824154015.png "alt=" Wkiol1xb0oaj49ucaabiu49b4we374.jpg "/>
which command:
1. Command function: Displays the full command path
2. Command format: Executable file name
3. command parameters;
-A prints all matching executables
--skip-alias: Prohibit listing aliases
4. Example
650) this.width=650; "src=" Http://s3.51cto.com/wyfs02/M00/71/F7/wKiom1Xb0LiwyvRhAAA3yYP8UgA806.jpg "title=" Qq20150824154924.png "alt=" Wkiom1xb0liwyvrhaaa3yyp8uga806.jpg "/>
Linux basic Commands (2)