Ubuntu File Management Command system

Source: Internet
Author: User

1 ubuntu file Management # ls ls-a lists all the files in the current directory, including the hidden file with the. Header

File Management # ls ls-l or ll lists the files in the current directory for more information
File Management # pwd pwd View the absolute path of the current directory
File Management # CD CD. Back to the top-level directory of the current directory
File Management # CD CD-back to the same directory
File Management # CD CD ~ or CD back to the current user's host directory
File Management # CD CD ~ User name back to the specified user's host directory

2 Ubuntu File Management # mkdir mkdir directory name Create a directory
File Management # mkdir mkdir–p recursive to create some nested directories
File Management # rmdir rmdir empty directory name Delete an empty directory

3 Ubuntu File Management # RM RM file name Delete a file or multiple files
File Management # RM RM-RF non-empty directory name recursively delete everything under a non-empty directory, do not let the lift-f

4 ubuntu File Management # Cat Cat file name one screen view file contents

5 Ubuntu File Management # More + more file Names Page view the contents of the files

6 file Management # Less file name controllable paging view contents

7 File Management # grep grep character file name according to character matching to view the contents of the file part

8 Ubuntu file Management # MV MV Path/File/warp/file movement relative to the path of the file to the absolute path through
File Management # MV MV FileName New name renamed in current directory

9 Ubuntu File Management # CP CP/Road Warp/file./move absolute path through the file into the current directory

Ubuntu File Management # Find find road via-name "string" finds paths in the range of files and directories that meet string matches

11 File Management # LN ln source file Link name create a hard link to the current directory source file
Ln/home/test/usr/test1 build/home/test hard link in/usr

Ubuntu File Management # ln ln-s A b Create a symbolic link under the current directory B

13 File Management # Touch Touch file1 file2 Create two empty files

Ubuntu File Management Command system

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.