Linux basic commands

Source: Internet
Author: User
Tags gz file

One: Time

Date-View current time date  %y:%m:%d--Specify format output date-s "00:00:00"  --Modify time 00:00:00cal  --command line View Calendar Uptime--run time information & nbsp; two: Output view echo ""  --return "" Specify content Cat filename--View file contents (all) more file name--page to view file, Space page down, only backward, not forward less file name--page to view the file, Up and down keys support front and back page head file name---View file default first 10 line   head-n file name--view file n rows  tail file name--view file default end 10 line tail-n file name--View end of file n rows    tail-f file name--terminal does not exit, see the end of the file new append line, generally used to view the last write log information      Three: View Hardware Device LSPCI--View device lspci-v View device Details LSUSB--View USB device  lsusb  -V--View USB Detail Device  lsmod--view current load all drives   Four: shutdown restart shutdown [critical, restart] time-h shutdown-R Restart    such as: Immediate shutdown: shutdown-h now10 minute Shutdown: shutdown-h 10 Specify time off: shutdown-h 12:30 Restart now: Shutdown-r now  Linux also offers poweroff immediate shutdown and reboot immediate Restart     V: Archive compression command zip to compress file zip [compressed file] [file needed to compress]:zip shark.zip myfileunzip  [compressed file] for decompression: Unzip Install.zip tar: Used as archive command tar-cvf[archived new Archive] [to create an archived file] tar-xvf[Archive document]--release archive  tar- CVZF: Archive and then compress the surviving. tar.gz file, the compression process takes longer than TAR-CVF, and the compressed file size is small TAR-CVZF [new archive after archive] [to create an archived file]&Nbsp;tar-cvzf test.tar.gz install.log  Six: Find locate "keywords"--quick find, not real-time updates, need Updatedb find "Find directory" "Find parameters"    find/-name *aad*   Find/Under Include AAD files  find/-name *.conf Find/Under *.conf file  find/-perm 777   Find files with 777 permissions & nbsp; 

Linux basic 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.