从今天起,会在这里记一些我使用过的linux命令
=======I'm 分割线=======
11.查看某个端口号被哪个应用占用
netstat -apn|grep 端口号,lsof -i:端口号,netstat -tunlp | grep 端口号
10.查看某个进程(13/09/04)
ps aux | grep app_name
9.剪切(13/07/25)

mv /tmp/tomcat.zip /usr/local
8.tar解压到指定目录(13/07/24)

tar -xzvf file.tar.gz -C /home/software
7.查找文件中是否包含某个字符串(13/07/19)

grep 'str' server.xml 查找server.xml下包含'str'的内容 grep -R 'xxx' src 查找src目录下包含xxx字符串的文件 -R是遍历src目录下所有文件
6.rpm安装(13/07/16)

5.find命令(13/07/16)

4.重启linux系统(13/07/16)
reboot
3.修改系统语言(13/07/16)
vim /etc/sysconfig/i18n #修改LANG="zh_CN.UTF-8"为下面内容 LANG="en_US.UTF-8"
2.查看Linux发行版本(13/07/16)
cat /etc/issue
1.查看Linux是多少位的系统(13/07/16)
getconf LONG_BIT