Some useful linux commands and Techniques

Source: Internet
Author: User

Some useful linux commands and tips! $ Represents the last string of the previous command. It is used to simplify input !!, Indicates the previous command. If you do not want to press the downward direction key + press enter, you can use this ^ old ^ new to replace the old in the previous command with new, suitable for places where the entire command is long but the command transformation is not big; du-s * | sort-n | tail, display the Ten files or folders that occupy the most disk space in the current directory date-d @ 123, convert the timestamp to the date, which takes into account the time zone> test, create a test empty file, which is shorter than touch man ascii/unicode, and view the ascii code sort-nk + 4. sort the files in curl ifconfig by column 4th in ascending order. me. When you are on the Intranet, check the ip address and port of the local machine on the external network. The usage is as follows: curl ifconfig. me/ip, curl ifconfig. me/port to view the help documentation, not only man, but also info. Shutdown-k. It sends a shutdown warning to all users, pretending to shut down, but not actually shutting down. Vim hexadecimal display command: %! If timeout is not defined in xxdmenu. lst, halt may not be automatically started when the startup Item is selected. Therefore, when you modify menu. lst on the remote server, remember to add timeout at the beginning. Otherwise, you can only manually press enter at the data center. To update the kernel on suselinux, modify the version information in Makefile & make menuconfig & make modules & make modules_install & make install & modify menu. default in lst (otherwise the old kernel will be started ). If the order is incorrect, the init ramfile or startup failure may occur. In this case, you can first remove all the new kernel options in menu. lst (if not removed, menu. lst will not be updated automatically), and then re-make modules_install & make install.

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.