ctrl + d
history
! p
ctrl + r
ctrl + l
yum [ -y] [ install | remove | search] [ 软件名称]
systemctl start | stop | status | enable | disable [ 服务名]
ln -s [ 参数( 被链接的源) ] [ 参数( 目的) ]
date [ -d] [ +字符串]
date "+%Y-%m-%d %H:%M:%S"
date -d "-1 year" "+%Y-%m-%d %H:%M:%S"
rm -f /etc/localtime
ln -s /usr/share/zoneinfo/Asia/Shanghai /etc/localtime
sudo systemctl enable ntpd
ntpdate -u ntp.aliyun.com
hostnamectl set-hostname centos
ping [ -c num] [ ip或主机名]
ping -c 3 baidu.com
wget [ -b] url
curl [ -O] url
curl cip.cc
nmap ip
netstat -anp | grep [ 关键字]
ps [ -e -f]
kill [ -9] [ 进程ID]
top
top -p [ PID]
top -d [ num]
top -c
top -n [ num]
top -b -n 3 > test.txt
top -u [ 用户]
df -h
iostat [ -x] [ num1] [ num2]
iostat 1 3
sar -n DEV [ num1] [ num2]
sar -n DEV 1 3
env
echo ${PATH } ABC
export MYNAME = test
~/.bashrc
/etc/profile
yum -y install lrzsz
rz [ 文件名]
sz [ 文件名]
.tar
.gz
tar [ -c -v -x -f -z -C] [ 参数.. .]
tar -c test
tar -v
tar -x
tar -f
tar -z
tar -C
tar -cvf test.tar 1 .txt 2 .txt
tar -zcvf test.tar 1 .txt 2 .txt
tar -xvf test.tar -C /
tar -zxvf test.tar.gz
zip [ -r] [ 参数.. .]
zip test.zip 1 .txt 2 .txt
zip -r test.zip test 1 .txt
unzip [ -d] [ 参数]
unzip test.zip
unzip test.zip -d /