Linux common commands trivial (1)

Source: Internet
Author: User

ls: View the files in the current directory

Ls-l: View the details of a file in the current directory

Ls-a: View all files under the current directory file (including hidden files)

mkdir: Creating a Directory

Mkdir-p: Recursive build Directory

RmDir: Delete directory (rarely used)

RM-R: Deleting a directory

RM-RF: Forced Delete (you can even use this command to make Linux commit suicide)

CD: Switch directories

PWD: View your current location

CP: Copy (copy directory required plus-R)

MV: Cut (can be used to rename files)

Locate: Search for files (fast, but internal database is updated once a day, need to be forced to update)

UpdateDB: Force update Database (some people this command can not be used, then change to sudo updatedb)

Whereis: Command to search command-B View only executable file-M view Help document only

Which: command to search for commands to view executables and command aliases

Find: File Search command exactly matches, you can use wildcard characters for fuzzy matching

grep: A string search command in a file that contains a matching

Man: View Help documentation

Zip, compressed command unzip corresponding decompression

Gzip: Compress command, the source file disappears after compression

(Follow-up with learning, subsequent additions)

Linux common commands trivial (1)

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.