Basic Linux Commands

Source: Internet
Author: User


RMRF * Recursive deletion

Ln-s Source Target


| pipe command

Give the result of the previous command | After the command is processed

File Content Lookup

Cat starts displaying file contents from the first line

The TAC starts with the last line showing

Output line number when NL is displayed

More page shows the contents of a file
Less is similar to more, it can page forward

Head's just a few lines.

Tail only a few lines in the end.

Od reads the file contents in binary mode

Touch Create a new file or modify the file time

grep query Content

REDIRECT Command
Ls-l > A.txt The contents of the list are written to the file
Ls-l >>a.txt Append write to File


TAR-ZXVF File Decompression

& on the console to run

View disk usage
DF [-parameter]
such as Df-l

See which partition a directory is in
DF [Directory full path] There are some memory device management, Udev, SDA1, sda2 and so on device information

View Linux system partition specifics
Fdisk-l

echo $PATH (uppercase)

viewing file paths

History shows some of the most recently used commands

History 5 shows the 5 most recently used commands

Basic 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.