LINUX 常用命令汇总

文件类

vim
cat

mkdir
mv

cp -Rf
\cp -Rf

rm -rf

find / -name 'xx'
ls -lR|grep "^-"|wc -l

wget -c

tar zcvf/cvf/zxvf/jxvf/ (--strip-components 1)
unzip
zip

chmod -R 777
chown -R user

系统类

sudo

lsb_release -a
cat /etc/redhat-release

cat /proc/version
cat /proc/cpuinfo
uname -a

lshw
env
w

df -h
du -sh

crontab -e

/*推荐yum,可自动处理软件包依赖关系*/
yum list|grep
yum install
rpm -qa|grep
rpm -ivh

reboot/init 6/shutdown -r now
init 0/shutdown -h now/halt

监控类

top

nohup php
ps -ef|grep
kill -9 pid

tail -100f

netstat -tunlp|grep 80
lsof -i:80

ab -n100 -c10

其它

service apache2 restart

/etc/init.d/apache2 restart

htpasswd -cmb site.pwd uname pwd

mysqldump -h -u -p --single-transaction --lock-tables=false >

svnserve -d -r /var/www/svn/repos

yum -y install epel-release

你可能感兴趣的:(LINUX)