Common File Processing commands

Source: Internet
Author: User

1. ls ----------- list

Ls-l

Ls-T

Ls-u

Ls-R

Ls File

2. ed ---------- Edit

A

.

Q

3. CP --------- copy

CP file1 file2

CP-r dirtory1 dirtory2

4. Mv ---------- move

MV file1 file2

5. rm --------- remove

RM file

Rm-F File

Rm-r dirtory

6. Cat --------- catenate

Cat File

7. PR ---------- print

PR File

Pr-N File

8. WC ---------- word count

WC file

WC-l file

9. grep --------- globally search a regular expression and print

Grep File

Grep-V pattern file

10. Sort

Sort File

Sort-n

11. Tail

Tail File

Tail-N File

Tail + N File

12. CMP ----------- compare

CMP file1 file2

13. Diff ------------- different

Diff file1 file2

14. pwd ------------- print working directory

PWD

15. CD ---------------- change Directory

CD directory

16. mkdir ------------ make directory

17. rmdir ------------ remove directory

19. Tee

Common File Processing 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.