File Management Tools

Source: Internet
Author: User

1. Regular Expressions:

GREP-E [A-z]\{10\} students

2. Sort files:

Sort [Options][filename-list]

Note: Separate fields with spaces or TAB characters

3. Find Files:

the Find command uses a recursive approach to search for files and directories

The Whereis command search system contains a description of the command or file or command we specify, and the directory and path where it resides

The which command searches for files that meet the requirements according to the path listed in the environment variable $PATH

4. Search for file contents:

grep [options] pattern [filename-list]

5. Command logging:

The commands entered by the terminal are saved in the history record. The shell environment variable histsize represents the maximum number of command entries saved in the History list,Histfile represents the history file, and defaults to ~/.bash_history. When logged in, the system Initializes a list of history commands from the history file and, when exiting, overwrites or appends the contents of the list to the history file.

To read the most recently used command:

History [Options][filename]

You can also use a specific event specifier (with! To perform the commands in the History list.

6. compressing files, extracting files and packaging files:

The gzip command is used to compress files, and thegzip-d command is used to extract files

The tar command is used to package multiple files into a backup file or to remove files from the backup file.

7.RPM Package Management:

RPM maintains an installed package and their file database, which can be installed, removed, installed, queried, verified, and upgraded with a short command. rpm Package

RPM-IVH apache-2.2.4

File Management Tools

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.