"Linux Commands" file and directory operations commands

Source: Internet
Author: User

This article is mainly used for common commands of the memo, the specific usage can be viewed by man, or query other information.

CD: Changing the working directory

LS: List contents of directory

mkdir: Create a directory

Cat: Connect and display information about one or more of the files specified

CP: Copy the given file or directory to another file or directory

MV: Renaming files or directories or moving files from one directory into another

RM: Delete one or more files or directories in a directory

Chown: Modifying file owners and groups

CHGRP: Changing the group ownership of a file

chmod: Changing the access rights of a file

grep: Searches for specific content in the specified file and adds the row standard output containing the content

Find: Searches for files in the specified directory, and its use rights are all users

Locate: Used to find files. The method is to set up a database that includes all the file names and paths within the system, and then simply query the database when looking for it, rather than actually going deep into the file system. So it's a lot faster than find.

LN: Creates a symbolic link for a file in another location. When it is necessary to use the same files in different directories, Linux allows the user not to store the same files in each required directory, but simply to link the files in the other directories with the LN command, thus eliminating the need to consume disk space repeatedly

"Linux Commands" file and directory operations 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.