Some Linux basic operation instructions __linux

Source: Internet
Author: User
Clear: Clean screen
Date: Show current date

Echo: Shows a date

DF: Displaying disk consumption

Free: Displays system memory usage, physical memory and swap memory

Uptime: Show how long the system has been running

Sync: Writes system memory to the hard drive and releases the cache.

Cal Month Year: Displays the calendar for a particular month

Touch: Create a new file

File +filename: View type information on the filename file.

Cat +filenaen: Displaying file contents

More-n +filename: Displays the content information of filename, the screen shows n rows. The space shows the next screen, carriage return line > One line display, less with more similar, but is through the key to the page.


Head-n +filename: Displays the first n rows of a file

Tail-n +filename: N rows after displaying text

Od-a +filename: Display text According to how many, D is decimal, O is octal, x is hexadecimal, default
Octal.

Hard Link: The new file is an alias for a file that already exists, and when the original file is deleted, the new file can still be > used.

Soft Links: Also known as symbolic links, new files in the form of "path" to represent another file, and Windows fast > Czech way very similar, new soft links can point to nonexistent files.

Ln-s Target link_name: Create a soft connection. Target is the destination file or path, Link_name is a link name > Word

ln target link_name: is a hard link.

WC-CLW path_filename: Displays the number of bytes, lines, and words in the file

Comm filename1 filename2: Displays the words that exist in each file of two files and the words that exist

40,1 81%

Head-n +filename: Displays the first n rows of a file

Tail-n +filename: N rows after displaying text

Od-a +filename: Display text According to how many, D is decimal, O is octal, x is hexadecimal, default
Octal.

Hard Link: The new file is an alias for a file that already exists, and when the original file is deleted, the new file can still be > used.

Soft Links: Also known as symbolic links, new files in the form of "path" to represent another file, and Windows fast > Czech way very similar, new soft links can point to nonexistent files.

Ln-s Target link_name: Create a soft connection. Target is the destination file or path, Link_name is a link name > Word

ln target link_name: is a hard link.

WC-CLW path_filename: Displays the number of bytes, lines, and words in the file

Comm filename1 filename2: Displays the words that exist in each file of two files and the words that exist

40,1 81%
Find/-name FileName: Finds all of the file name files under the root directory



cp-rf/home/user1/*/root/temp/
Copy everything under the/home/user1 directory to/root/temp/without copying the User1 directory itself.
The format is: CP-RF original path/destination path/

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.