[Study notes] basic Linux operations (5) --- common commands in Linux

Source: Internet
Author: User
Course connection: common commands for Linux: date and time command date: Display date and time & amp; 26684

Course connection: common commands in Linux

Date and time command date display date and time format control: + % Y (year) % m (month) % d (day) Modification time: date-s "hour: minute: second "hwclock (clock) display hardware clock time cal view calendar uptime View system running time output, view command echo + "s" Display input content cat + file name display file content more for paging display file content (only flip down) less is used to display the file content on pages (up and down). The head displays the first few lines of the file (10 lines by default).-n specifies the number of lines. tail displays the last few lines of the file (10 lines by default) -n specified number of rows-f trace file update View hardware information ispci view PCI device (sound card, network card) -v View details isusb view USB device-v View details lsmod view loading module (driver) shutdown and restart command shutdown-h shutdown-r restart can specify the shutdown and restart time (now,-10, time) powero Ff immediate shutdown reboot restart archive now compression command zip compressed file name needs to be compressed file example: zip linuxcast.zip myfile upzip unzip file gzip zip compressed file gzip files to be compressed tar archive file (package, not compressed) tar-cvf archive file name archive file (archive file) example: tar-cvf out.tar linuxcast tar-xvf file name (open an archive file) example: tar-xvf linuxcast.tar-cvzf archive file name (archive and compress, compress to call gzip) for example, run the tar-cvzf backup.tar.gz linuxcast Command locate + keyword to quickly search for this command. you need to create a database in advance. the database is updated every day by default. Updatedb manually creates and updates database find location search parameters
-Type based on type-name based on file name-perm based on permission-user based on user-group based on group-ctime based on modification time-size based on file size example: find. -name * linuxcast * find/-name *. conf find/-perm 777 find/-type d find. -name "a *"-exec ls-l {}\ (pass the search result as a parameter to the next command)

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.