which
whereis
Linux常用命令全集
http://linux.chinaitlab.com/special/linuxcom/Index.html
vi命令一lan表
http://www.21ds.net/article/23/308
pwd
查看當前路徑
find / -name profile
尋找 指定 名的 。。
linux修改啟動項
查看啟動項: chkconfig --list 增加啟動項: chkconfig –add mysqld start Chkconfig –add httpd start Chkconfig –level 5 httpd on Chkconfig –level 5 iptables off Chkconfig –level 5 mysqld off linux 啟動項 2007-10-29 11:36 修改 /etc/rc.local 就可以了 例如: #!/bin/sh # # This script will be executed *after* all the other init scripts. # You can put your own initialization stuff in here if you don't # want to do the full Sys V style init stuff. touch /var/lock/subsys/local echo 250 32000 100 128 > /proc/sys/kernel/sem echo 2147483648 > /proc/sys/kernel/shmmax echo 4096 > /proc/sys/kernel/shmmni echo 2097152 > /proc/sys/kernel/shmall /usr/local/apache/bin/apachectl start Linux查看連接埠使用狀態、關閉連接埠方法 1. 可以通過"~$ netstat -anp" 來查看哪些連接埠被開啟。
(註:加參數'-n'會將應用程式轉為連接埠顯示,即數字格式的地址,如:nfs->2049, ftp->21,因此可以開啟兩個終端,一一對應一下程式所對應的連接埠號碼) 2)或者關掉對應的應用程式,則連接埠就自然關閉了,如:
"~$ kill -9 PID" (PID:進程號)
如: 通過"~$ netstat -anp | grep ssh"
有顯示: tcp 0 127.0.0.1:2121 0.0.0.0:* LISTEN 7546/ssh
則: "~$ kill -9 7546"
(可通過"~$ chkconfig"查看系統服務的開啟狀態) ls -la 查看許可權 ps -aux |grep jboss //查看jboss服務 ls -t //按更改時間順序查看 less 檔案名稱 //查看 文本類檔案 相當於 window的 type
日誌查看:
last命令 ast root lastlog
who
w