文章标签 ‘command’

下面是来自 Commandlinefu 网站由用户投票决出的 10 个最酷的 Linux 单行命令,希望对你有用。 sudo !!以 root 帐户执行上一条命令。 python -m SimpleHTTPServer利用 Python 搭建一个简单的 Web 服务器,可通过 http://$HOSTNAME:8000 访问。 :w !sudo tee %在 Vim 中无需权限保存编辑的文件。 cd -更改到上一次访问的目录。 ^foo^bar将上一条命令中的 foo 替换为 bar,并执行。 cp filename{,.bak}快速备份或复制文件。 mtr google.comtraceroute + ping。 !whatever:p搜索命令历史,但不执行。 $ssh-copy-id user@host将 ssh keys 复制到 user@host 以启用无密码 SSH 登录。 ffmpeg -f x11grab -s wxga -r 25 [...]

Share
2010年3月24日17:42 | 没有评论
分类: Linux相关

Search /word Search “word” from top to bottom ?word Search “word” from bottom to top /jo[ha]n Search “john” or “joan” /\< the Search “the”, “theatre” or “then” /the\> Search “the” or “breathe” /\< the\> Search “the” /\< ….\> Search all words of 4 letters /\/ Search “fred” but not “alfred” or “frederick” /fred\|joe Search “fred” [...]

Share
2009年2月4日11:07 | 27 条评论