20個の一番人気のLinuxコマンド

2055 ワード

http://code.csdn.net/news/2819566
1.   rootアカウントで前のコマンドを実行します。
 
sudo !!
2. Pythonを利用して簡単なWebサーバーを構築し、通過できます。  http://HOSTNAME:8000アクセス       
 
python -m SimpleHTTPServer
3.前回訪問したディレクトリに切り替え 
 
cd -
4.前のコマンドのfooをbarに置き換えて実行します。 
 
^foo^bar
 5.  tracceroute+ping   
 
mtr google.com
 6.コマンドを作成するためにエディタを素早く呼び出します。
 
 
ctrl-x e
 7.コマンドを実行しますが、コマンド履歴には保存されません。
 
 
<space>command
 8.端末を再初期化する
 
 
reset
9.前回のコマンドで使用したパラメータを呼び出します。
 
 
'ALT+.' or '<ESC> .'
 10.現在のシステムにマウントされているファイルシステムをより明確に表示する
 
 
mount | column -t
11.所定の時間にコマンドを実行する
 
 
echo "ls -l" | at midnight
12.DNSコンソールでウィキペディアを検索する
 
 
dig +short txt <keyword>.wp.dg.cx
13.80ポートからローカルの2001ポートにトンネルを開く
 
ssh -N -L2001:localhost:80 somemachine
 
14.快速アクセスASCII表 
 
 
man ascii
15.外部IPアドレスを取得する
 
 
curl ifconfig.me
16. !! 前のコマンドを繰り返し実行することを表します。
 
 
 
!!:gs/foo/bar
 17.あなたのマイクを遠隔機器のスピーカーに出力する
 
 
dd if=/dev/dsp | ssh -c arcfour -C username@host dd of=/dev/dsp
18.一時的なメモリパーティションをマウントする
 
 
mount -t tmpfs tmpfs /mnt -o size=1024m
 19.SSH方式でディレクトリ/ファイルシステムをマウントする
 
 
sshfs name@server:/path/to/folder /path/to/mount/point
20.curlでTwitterを更新する
 
 
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>