20 tall Linux commands, keep them for later

Source: Internet
Author: User

1. Execute the previous command with the root account

Sudo!!

2.UsePythonto build a simpleWebserver, available through /HTTP $HOSTNAME: 8000Access       

Python-m Simplehttpserver

3. switch to the directory you visited last time

CD-

4. replace foo in the previous command with barandperform

^foo^bar

5. Traceroute + Ping

MTR google.com

6. quickly call an editor to write a command

Ctrl-x E

7. executes a command, but does not exist in the command history

<space>command

8. reinitialization of the terminal

Reset

9. Recall the parameters used by the last command

' ALT +. ' or ' <ESC>. '

Display the current system mounted file system in a clearer way

Mount | Column-t

One by one . execute commands at a given time

echo "Ls-l" | At midnight

Search by DNS console for Wikipedia

Dig +short txt <keyword>.wp.dg.cx

Open the tunnel from The port to your local 2001 Port

Ssh-n-l2001:localhost:80 Somemachine

Quick access to ASCII tables

Man ASCII

Get your external IP address

Curl Ifconfig.me

.!! represents repeating the previous command and using the : Gs/foo/bar to perform a replacement operation

!!:gs/foo/bar/

Output your microphone to the remote machine's speakers

DD IF=/DEV/DSP | Ssh-c arcfour-c [email protected] DD OF=/DEV/DSP

mount a temporary memory partition

Mount-t Tmpfs Tmpfs/mnt-o size=1024m

mount the directory / file system in SSH

SSHFS [Email Protected]:/path/to/folder/path/to/mount/point

update Twitter with Curl

Curl-u user:pass-d status= "Tweeting from the shell" <a href= "Http://twitter.com/statuses/update.xml" >http:// Twitter.com/statuses/update.xml</a>


This article is from the "lake and Laughter" blog, please make sure to keep this source http://xuexuhui.blog.51cto.com/9647696/1655109

20 tall Linux commands, keep them for later

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.