Note 3 novice Linux Linux commands must master.

Common system of work orders
1. echo command
echo command value for the output terminal extraction string or variable, the format of "echo [String | $ variable]."

2. date command
date command to display the date and time or set the system in the format of "date [option] [format specified +]."
date parameters in the command and the role of

参数             作用
%t           跳格[Tab键]
%H         小时(00~23)
%I           小时(00~12)
%M         分钟(00~59)
%S          秒(00~59)
 %j          今年中的第几天

3. reboot command
reboot command is used to restart the system, the format to reboot.

4. poweroff command
poweroff command to shut down the system, the format poweroff.

5. wget command
wget command to download a file in the terminal network, the format of "wget [parameters] Download."
wget command parameters and the role of

参数  作用
-b  后台下载模式
-P  下载到指定目录
-t  最大尝试次数
-c  断点续传
-p  下载页面内所有资源,包括图片、视频等
-r  递归下载

6. ps command

ps command is used to view the system status of the process in the format of "ps [parameters]."

参数  作用
-a  显示所有进程(包括其他用户的进程)
-u  用户以及其他详细信息
-x  显示没有控制终端的进程

7. top command

top command is used to dynamically monitor process activity and system load, the format top.
8. pidof command

PID values pidof command queries a specified service process, the format is "pidof [parameters] [service name]."
9. The kill command

service process kill command terminates a specified PID, the format is "kill [parameters] [process PID]."
10. killall command

killall command is used to terminate all processes specify the name of a service corresponding to the format: "killall [parameters] [service name]."
System state detection command
1. ifconfig command

ifconfig command for acquiring the network card configuration and status information, the format of "ifconfig [Network Device] [parameter]."
2. uname command

uname command is used to view the system kernel and system version and other information, in the format of "uname [-a]".
3. uptime command

uptime for viewing system load information in the format of uptime.
4. free command

free for displaying the current system memory usage information, the format of "free [-h]".
5. who command

Sign host who view the current user terminal information, the format of "who [parameter]."
6. last command

last command is used to log in to view records of all systems in the format "last [parameters]."
7. history command

history Command executed for displaying the history, the format is "history [-c]".
8. sosreport command

sosreport command is used to collect system configuration and schema information and diagnostic output document format sosreport.
Change the working directory command
1. pwd command

pwd command displays the user's current working directory in which the format is "pwd [options]."
2. cd command

cd command for switching the working path, the format of "cd [directory name]."
3. ls command

ls command displays file information in the directory, in the format of "ls [options] [file]."
Note 3 novice Linux Linux commands must master.Note 3 novice Linux Linux commands must master.Note 3 novice Linux Linux commands must master.Note 3 novice Linux Linux commands must master.

Guess you like

Origin blog.51cto.com/14606977/2449316