哎,沒辦法,記不住,持續更新吧。
[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