我常用的linux命令【存檔自用】

來源:互聯網
上載者:User
哎,沒辦法,記不住,持續更新吧。

[1] vi相關:
命令大全:http://interma.cnblogs.com/archive/2006/06/28/438064.html
經驗之談:http://www.cppblog.com/boolking/archive/2006/05/14/7137.html
                    http://blog.csdn.net/camry_camry/archive/2004/09/23/114188.aspx

[2] tar:
建立:tar zvcf archive.tar.gz *
釋放:tar zvxf archive.tar.gz -C destpath
            tar jvxf archive.tar.bz2
列表:tar zvtf archive.tar.gz

[3] 檔案尋找:
find path -name "pattern"
ls path/pattern

[4] 網路相關:
ip設定:/etc/sysconfig/network-scripts/setup
dns:/etc/resolv.conf
重啟網路:/etc/rc.d/init.d/network restart
設定代理:export http_proxy=http://xxx.xxx.xxx.xxx:xxxx
查看程式和連接埠的對應關係:netstat -tlnp
連接埠掃描:nmap {ip}

[5] man:
1:程式,例如:ls
2:C的系統調用,例如:unlink
3:C的庫函數,例如:strcpy
5:檔案格式與協議,例如:passwd
8:系統管理工具,例如:rpm
      
more:
       1   Executable programs or shell commands
       2   System calls (functions provided by the kernel)
       3   Library calls (functions within program libraries)
       4   Special files (usually found in /dev)
       5   File formats and conventions eg /etc/passwd
       6   Games
       7   Miscellaneous  (including  macro  packages and conven‐
           tions), e.g. man(7), groff(7)
       8   System administration commands (usually only for root)
       9   Kernel routines [Non standard]

[6] grep:
egrep '{regexp}' *.c -n

[7] debian-relative:
apt-howto: http://www.debian.org/doc/manuals/apt-howto/
sources.list: http://debian.cn99.com/sources.list.sarge.cn99
debian reference: http://www.debsir.org/main/?q=debianreference.html
dpkg: http://debian.linuxsir.org/doc/inthedebianway/Debian_Tools_dpkg.html
學習筆記:http://www.ringkee.com/note/opensource/debian.htm

安裝gnome:
apt-get install gnome
apt-get install x-window-system xserver-xfree86 xbase-clients
dpkg-reconfigure xserver-xfree86

相關文章

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在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.