My commonly used Linux commands [archive for your use]

Source: Internet
Author: User
Ah, no way. You can't remember it. keep updating.

[1] vi problems:
Command Daquan: http://interma.cnblogs.com/archive/2006/06/28/438064.html
Experience: 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:
Create: Tar zvcf archive.tar.gz *
Release: tar zvxf archive.tar.gz-C destpath
Tar jvxf archive.tar.bz2
List: Tar zvtf archive.tar.gz

[3] File Search:
Find path-name "pattern"
Ls path/Pattern

[4] network problems:
Ipsettings:/etc/sysconfig/network-scripts/setup
DNS:/etc/resolv. conf
Restart the network:/etc/rc. d/init. d/network restart
Set Proxy: Export http_proxy = http://xxx.xxx.xxx.xxx: xxxx
ViewProgramRelationship with the port: netstat-tlnp
Port Scan: NMAP {IP}

[5] MAN:
1: program, for example: ls
2: C system call, for example: unlink
3: C library functions, such as strcpy
5. File Format and Protocol, for example, passwd
8: system management tools, such as RPM

More:
1 executable programs or shell commands
2 system CILS (functions provided by the kernel)
3 Library CILS (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? Qinidebianreference.html
Dpkg: http://debian.linuxsir.org/doc/inthedebianway/Debian_Tools_dpkg.html
Study Notes: http://www.ringkee.com/note/opensource/debian.htm

Install gnome:
Apt-Get install gnome
Apt-Get install x-window-system xserver-xfree86 xbase-clients
Dpkg-reconfigure xserver-xfree86

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

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.