rhel7 learning Lesson

A, linux third class

1. Common work order system

echo command

The output information to the screen

ech0 $PATH

date command

View and set the system time

date "+% Y-% m-% d" "+% H:% M:% S" (Note that case, input)

reboot command

poweroff command

wget command

wget http://www.baidu.com/haha.rar   command format for downloading Internet files

ps command

R: running processes

S: sleeping processes, waiting for the user to provide services

D: Response Timeout

Z: zombie process zombie (usually appears there is a problem)

T: stop the process

ps -aux (can be written as ps aux) command displays all process information

top command

For dynamic monitoring of active processes

pidof command

PID pidof sshd process View

The kill command

kill 2156 terminate a specified process

killall httpd terminate all processes

ifconfig command

uname command

uname -a view system kernel information

 

cat /etc/redhat-release

uptime command

To view the system load information

 

Load value can not exceed 5.

free command

free -h users to view memory information system

who command

View user's current login host

last command

To view the system login records

history command

Check for command executed for the history -c Clear history! + Number Repeat command

Preparation command to save .bash_history cat ~ / .bash_history

sosreport command

sosreport for configuration and diagnostic information collection architecture

2. Change the working directory command

pwd command

Used to display the current directory

cd command

cd directory Example: cd / home directory for switching

cd - to return to the previous directory

cd ~ return home (Home) Contents

cd .. a a return to the root directory

ls command

ls -a linux in the beginning with the point of hidden files ls -l file details ls -al

Guess you like

Origin www.cnblogs.com/fangbin/p/11831752.html