10 coolest linux single-line commands

Source: Internet
Author: User

The following are the 10 coolest linux single-line commands from the commandlinefu website voted by users.

  1. Sudo !!

    Run the previous command in the root account.

  2. Python-M simplehttpserver

    Use python to build a simple web server that can be accessed through http: // $ hostname: 8000.

  3. : W! Sudo tee %

    You do not need to save the edited file in vim.

  4. CD-

    Change to the last accessed directory.

  5. ^ Foo ^ bar

    Replace Foo with bar in the previous command and execute.

  6. CP filename {,. Bak}

    Quickly back up or copy files.

  7. MTR Google.com

    Traceroute + Ping.

  8. ! Whatever: P

    Search for command history, but do not execute.

  9. $ Ssh-copy-ID user @ host

    Copy SSH keys to user @ host to enable password-less SSH login.

  10. FFmpeg-F x11grab-s wxga-R 25-I: 0.0-sameq/tmp/out. mpg

    Recording a video on a Linux Desktop.

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.