Summary of Common Linux commands

Source: Internet
Author: User

Summary of Common Linux commands


Ctrl + shit + "+" to enlarge terminal font, opposite + "-", shrink font

Poweroff or init 0 shutdown

Reboot restart


Init 3 and StartX non-graphical and graphical interface switching

LS (list) View list

CD (change directory) changing directories into a directory

CP (COPY) replication

Cd.. Exit to the top level directory

. Represents the current directory

.. Represents the previous level of the directory

/root/desktop Desktop Path

RM (remove) Remove delete

RM xxx-fr Force to remove any files or folders

MV (move) Cut or rename

mkdir (make directory) new folder

Touch Create File

PWD Displays the current path

Cat viewing the contents of a document

More view the contents of a document


Ifconfig Viewing network information

Service NetworkManager stop stops the network management of the graphical interface

Chkconfig NetworkManager off turn on Not start graphical interface

Ifdown eth0 Disable NIC

Ifup Eht0 Open NIC

Df-h viewing disk partitions and usage

Man view instructions for specific usage

--help Enter--help after the instruction to view the instruction help

~ Home directory (CD ~)

-Go back to the directory where you Last

Tar czvf Compressed files (tar czvf zz.tar.gz)

Tar xzvf Extract Files



Who or W command:

Features: See which users are logged on in the current system

Format: who/w [parameter]

Such as:

[[email protected] root] #who

Root tty1→1 a local user login

PP pts/0→1 remote login user





Summary of Common Linux commands

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.