一些较酷的命令行....
- 转自:http://www.4os.org/index.php/2010/10/15/10%E4%B8%AA%E8%B6%85%E9%85%B7%E7%9A%84%E5%91%BD%E4%BB%A4%E8%A1%8C/#comment-314
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 -i :0.0 -sameq /tmp/out.mpg把 Linux 桌面录制为视频。
浙公网安备 33010602011771号