Linux-File operations

Source: Internet
Author: User

Touch File # Create a blank file rm-RF Directory Name # does not prompt to delete a non-empty directory (-r: Recursive Delete-f Force) Dos2unix # Windows text to Linux text Unix2dos # Linux text to Windows text eNCA filename # View coded install Yum Install-y eNCA md5sum # View MD5 Value ln source file destination File # Hard Link ln-s source file destination file # Symbolic connection Readlink-F/Data # View connection Real directory cat file| NL |Less # View page up and down and show line number Q exit Head # View the beginning of the file head-C 10m # intercept file in 10M content split-C 10M # cut the file size to 10M tail-F File # to view the end of the monitor log files file # Check file type Umask # change the default permissions Uniq # delete duplicate rows Uniq-C # Number of repeated rows occurrences Uniq-U # Show only non-repeating lines paste a B # merge two files with TAB key to separate paste-D'+'A B # merges two files into a specified'+'symbol separated paste-s A # merge multiple rows of data into one line tab to separate Chattr+i/etc/passwd # Set immutable bit more # down the facet locate string # Search WC-L File # View rows CP Filename{,.bak} # Quick backup of a file \cp a B # Copy does not prompt neither alias CP-I rev # arranges the characters in the line in reverse order Comm- A 2 3# row and row comparison match Iconv-F gbk-t UTF8. txt >new. txt # conversion Encoding Rename original mode target mode file # rename regular watch-d-n1 'DF; Ls-flat/path'# See the latest changed files in a directory in real time CP-v/dev/dvd/rhel4.6. iso9660 # Making image diff Suzu.c suzu2.c>Sz.patch # Making patch patches SUZU.C< Sz.patch # installation Patches

Linux-File operations

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.