Linux command Part1

Source: Internet
Author: User
Linux command Part1linux command Tips (Linux) linux files do not have an extension; all hardware and software (modify the configuration is to modify the hardware information) information is stored in the form of files. Pwd: view the path of the current folder cd .. back to the upper-level directory; cd... linux command Part 1 linux command Tips (Linux) linux files do not have an extension; all hardware and software (modify the configuration is to modify the hardware information) information is stored in the form of files. Pwd: check the path of the current folder cd .. return to the upper-level directory; cd space.../abc is to go to the abc directory in the upper-level Directory. Alias cd... = "cd..." (that is, converting a cd without spaces into a cd with spaces) cd/returns to the home directory q command to terminate. = Cp run to the directory where the file to be copied is located or specify the directory file to the specified location (MV is similar to this command) cp apache-tomcat-6.0.37.zip/home/sersoft ==# unzip yasuo.zip decompress the zip file. = Rename Directory A to B mv a B e extension: Move/a directory to/B, and rename it to c mv/a/B/c = more/less to view text file information usage: more [options] filename-c displays a brand new page each time = modifies the Linux system time # date-s 06/10/96 month-day-year format # date-s 13:12:00 # clock-w command to force the system time to be written into the CMOS ==clear screen clear, date Command clear: clear screen, equivalent to cls in DOS; date: displays the current time. = View the operating system version log on to linux and run rpm-q centos-release (view the operating system version) # rpm-q redhat-release = view the number of bits in the operating system # The getconf LONG_BIT getconf command can also obtain basic system configuration information, such as the number of bits in the operating system, memory size, disk size. $ Getconf-a = create a folder 1. enter the directory input mkdir test. 2. if you add (create) a file in the folder, for example, a.txt input touch test/a.txt press enter vi a.txt to edit the text, after editing, press Esc to write the file and exit. wq is mandatory to write the file and exit (save the disk and exit write % quite ). Write the file forcibly even if it is not modified, and update the modification time of the file. 3 delete rm-rf test/press enter = unzip and compress $ tar zxvf xxxx.tar.gz unzip-d pressure = rpm Package installation # rpm-ivh foo-1.0-l.i386.rpm ======== ================================================================= ---- we generally, the "date-s" command is used to modify the system time. For example, the command to set the system time to June 10, 1996 is as follows. # The following command sets the system time to 01:12:00 P.M. on date-s 06/10/96. # Date-s 13:12:00 ---- Note: Here we talk about the system time, which is maintained by the operating system in linux. ---- When the system is started, the Linux operating system reads the time from CMOS to the system time variable. later, the modification time is implemented by modifying the system time. To maintain the consistency between the system time and the CMOS time, Linux writes the system time to the CMOS at intervals. Because the synchronization is performed at intervals (about 11 minutes), after we execute date-s, if the machine is restarted immediately, the modification time may not be written to CMOS, this is the cause of the problem. To make sure the modification takes effect, run the following command. ---- # Clock-w ---- this command forces the system time to be written to CMOS
Related Article

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.