Linux?3????shell??????
???????????? ???????[ 2014/4/28 10:29:52 ] ????????Linux ???? ??????
??????????
top #???????н????????????????CPU?????????????
df -lh #??????С???????
mount #??????????NFS?????????????linux??
hostname #??/?????????
w #???????
id #???????????
last #???????????
cut -d: -f1 /etc/passwd #???????????
cut -d: -f1 /etc/group #??????????
crontab -l #???????????????????
chkconfig –list #?г???????????
chkconfig –list | grep on #?г???????????????????
rpm -qa #?????а?????????
uptime #??????????????????????
/sbin/chkconfig --list #???????????б?
/sbin/chkconfig??–add??mysql #??MySQL?????????????????????
??????????
????ls -lht #?г??????????????????????С?????????
????du -sh <dir> #??????????С
????du -lh <dir> #?????????????????С
????ln -s #??????????
???????????
pstree -p pid #??????????μ????????
pstree -a #??????н??????????????????????????????????????????
ps -ef #?????н???
kill -9 pid #???????
kill all test #???????
kill -9 `pgrep test` #???????
./test.sh & #?????????????
nohup ./test.sh & #?????????????
????????????
????zip -r dir.zip dir file #????dir?????file???????zip????
????zip -re dir.zip dir file #????zip?????????
????unzip dir.zip #???
????tar -zcvf dir.tar.gz dir file #????dir?????file???????tar??
????tar -xf dir.tar.gz #???
????screen????
????screen????????????????shell?????????????е?????????????????????????screen?????????????????????????
screen -S test #????????????test??screen
screen -r test #???????test??screen
screen -r pid #????????pid??screen
screen -ls #?г????е?screen
ctrl + a??d #???????screen??????screen
ctrl + a??n #???????screen????л????????????
ctrl + a??c #???????screen???????????μ????
????scp????
????scp local_file remote_username@remote_ip:remote_dir #?????????????????????
????scp -r local_dir remote_username@remote_ip:remote_dir #????????????????????????
????????????????????
???????????????????????????app????????????????????sudo????root????
//centos????redhat??
rpm -qa | grep app #?????????????app??
rpm -ivh app.rpm #????????app??rpm?????????????
sudo yum install app #??????????
yum update app #????app
rpm -e app #?????????app??
//suse??opensuse??
zypper search app #?????????????app??
zypper install app #???
zypper update app #????
zypper remove app #???
zypper lr #?г????????????????
zypper ar #????°?????
zypper rr #???????????
zypper mr #???????????
//ubuntu??
apt-get install app #???
apt-get update app #????
apt-get remove app #???
apt-cache search app #?????????
dpkg -i app.deb #????????app??deb?????????????
????????????????????????????????????
??????
???·???
??????????????????
2023/3/23 14:23:39???д?ò??????????
2023/3/22 16:17:39????????????????????Щ??
2022/6/14 16:14:27??????????????????????????
2021/10/18 15:37:44???????????????
2021/9/17 15:19:29???·???????·
2021/9/14 15:42:25?????????????
2021/5/28 17:25:47??????APP??????????
2021/5/8 17:01:11