10個最酷的Linux單行指令 - Linux
By Zora
at 2010-03-19T21:31
at 2010-03-19T21:31
Table of Contents
來源:http://linuxtoy.org/archives/top-10-one-liners.html
下面是來自Commandlinefu網站由用戶投票決出的 10 個最酷的 Linux 單行命令,希望對
你有用。
1.sudo !!
以 root 帳戶執行上一條命令。
2.python -m SimpleHTTPServer
利用 Python 搭建一個簡單的 Web 服務器,可通過 http://$HOSTNAME:8000 訪問。
3.:w !sudo tee %
在 Vim 中無需權限保存編輯的文件。
4.cd -
更改到上一次訪問的目錄。
5.^foo^bar
將上一條命令中的 foo 替換為 bar,並執行。
6.cp filename{,.bak}
快速備份或復制文件。
7.mtr google.com
traceroute + ping。
8.!whatever:p
搜索命令歷史,但不執行。
9.$ssh-copy-id user@host
將 ssh keys 複製到 user@host 以啟用無密碼 SSH 登錄。
10.ffmpeg -f x11grab -s wxga -r 25 -i :0.0 -sameq /tmp/out.mpg
把 Linux 桌面錄製為螢幕。
於Commandlinefu,本站去年曾作介紹,不熟悉的朋友可點擊查看。
--
下面是來自Commandlinefu網站由用戶投票決出的 10 個最酷的 Linux 單行命令,希望對
你有用。
1.sudo !!
以 root 帳戶執行上一條命令。
2.python -m SimpleHTTPServer
利用 Python 搭建一個簡單的 Web 服務器,可通過 http://$HOSTNAME:8000 訪問。
3.:w !sudo tee %
在 Vim 中無需權限保存編輯的文件。
4.cd -
更改到上一次訪問的目錄。
5.^foo^bar
將上一條命令中的 foo 替換為 bar,並執行。
6.cp filename{,.bak}
快速備份或復制文件。
7.mtr google.com
traceroute + ping。
8.!whatever:p
搜索命令歷史,但不執行。
9.$ssh-copy-id user@host
將 ssh keys 複製到 user@host 以啟用無密碼 SSH 登錄。
10.ffmpeg -f x11grab -s wxga -r 25 -i :0.0 -sameq /tmp/out.mpg
把 Linux 桌面錄製為螢幕。
於Commandlinefu,本站去年曾作介紹,不熟悉的朋友可點擊查看。
--
Tags:
Linux
All Comments
By Candice
at 2010-03-20T06:34
at 2010-03-20T06:34
By Olga
at 2010-03-21T23:37
at 2010-03-21T23:37
By Thomas
at 2010-03-23T02:54
at 2010-03-23T02:54
By Damian
at 2010-03-27T04:48
at 2010-03-27T04:48
By Zenobia
at 2010-03-29T05:20
at 2010-03-29T05:20
By Barb Cronin
at 2010-04-01T19:13
at 2010-04-01T19:13
By Susan
at 2010-04-04T22:05
at 2010-04-04T22:05
By Yedda
at 2010-04-08T12:33
at 2010-04-08T12:33
By Noah
at 2010-04-10T21:26
at 2010-04-10T21:26
By William
at 2010-04-14T18:12
at 2010-04-14T18:12
By Enid
at 2010-04-15T21:31
at 2010-04-15T21:31
By Liam
at 2010-04-20T20:37
at 2010-04-20T20:37
By Yuri
at 2010-04-21T11:26
at 2010-04-21T11:26
By Zanna
at 2010-04-25T19:44
at 2010-04-25T19:44
By Cara
at 2010-04-27T12:50
at 2010-04-27T12:50
By Wallis
at 2010-04-30T02:11
at 2010-04-30T02:11
By Zenobia
at 2010-05-04T08:04
at 2010-05-04T08:04
By Necoo
at 2010-05-09T05:31
at 2010-05-09T05:31
By Ula
at 2010-05-10T10:36
at 2010-05-10T10:36
By Elizabeth
at 2010-05-12T20:40
at 2010-05-12T20:40
By Connor
at 2010-05-17T03:43
at 2010-05-17T03:43
Related Posts
如何知道debian支援的檔案系統?
By Elizabeth
at 2010-03-19T21:27
at 2010-03-19T21:27
putty連suse
By Adele
at 2010-03-19T19:25
at 2010-03-19T19:25
grub
By Tristan Cohan
at 2010-03-19T18:19
at 2010-03-19T18:19
wubi如何設定開機選單??
By Megan
at 2010-03-19T16:46
at 2010-03-19T16:46
設定常用主機?
By Thomas
at 2010-03-19T15:00
at 2010-03-19T15:00