Shell Common Commands

Source: Internet
Author: User
Tags ping network

1. pwd

PWD: Displays the absolute path of the current directory


2. cd

CD Document: Go to subdirectory cd/usr/local/lib: Go to the specific directory CD.: Return to Parent directory CD/: Return root directory

3. mkdir

mkdir directory: Creating subdirectories mkdir-p/home/dir1/dir2/dir3: Creating Multi-level catalogs


4. ls

ls [options] [File | directory]: Displays the file and subdirectory information in the specified directory, displays the file and subdirectory information in the current directory when no directory is specified main option:-L, view the details of a file or subdirectory under the current directory

5. Cat

Cat [Options] File list: Displays the contents of a text file main options:-N, which indicates that line numbers are displayed before each line


6. More

More filename: Split screen Displays the contents of the text file filename


7. CP

CP [Options] source file destination file: Copy one file to another file, or copy several files to another directory main option:-R, if the source file contains a directory name, the files under the directory are also copied to the destination


8. MV

MV [Options] source file destination file: Move one file to another, or move several files to another directory main option:-I, if the destination already has a file with the same name, first ask whether to overwrite the old file


9. rm

RM [Options] [File | directory]: Delete files and directories main option:-I, one by one before deleting the confirmation;-R, the directory and the following files are also deleted;-F, even if the original file property is set to read-only, it is also directly deleted, do not need to confirm each


Ten. chmod

chmod [Options] [Files | directory]: Changing the permissions properties of a file


One. Tar

tar [options] [filename of tar] [file list]: Compress, unzip tarball in tar format, make backup, restore backup files, etc.


Man

Man command name: Displays the help information for the specified command


--help.

Displays help for the specified command


Ping

Ping Network host Address: see if a host on the network can communicate


Ifconfig.

Ifconfig NIC Name: Configure NIC information, such as IP address, subnet mask, and default gateway


Netstat.

netstat [parameter list]: Display the native network status common parameters:-A or-all, display all connections in the socket


. telnet

Telnet Network host Address: remote login to a server host on the network

...... Cond

Shell Common Commands

Related Article

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.