linux 命令,文檔__linux

來源:互聯網
上載者:User

 

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

 

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.