就是这么“高大上”!20个最受欢迎的Linux命令
来源:互联网 发布:android javascript 编辑:程序博客网 时间:2024/06/05 03:16
转载自:http://code.csdn.net/news/2819566
本文根据commandlinefu网站的历史排名,筛选出了前20个得票最高的Linux命令。看看你都能熟练使用了吗?
1. 以 root 帐户执行上一条命令
sudo !!
2. 利用 Python 搭建一个简单的 Web 服务器,可通过 http://$HOSTNAME:8000访问
python -m SimpleHTTPServer
3. 切换到上一次访问的目录
cd -
4. 将上一条命令中的 foo 替换为 bar,并执行
^foo^bar5. traceroute + 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 进行替换操作
!!: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>
0 0
- 就是这么“高大上”!20个最受欢迎的Linux命令
- 就是这么“高大上”!20个最受欢迎的Linux命令
- 就是这么“高大上”!20个最受欢迎的Linux命令
- 20个高大上的linux命令
- 20个最受欢迎的Linux命令
- 20个最受欢迎的Linux命令
- 20个最受欢迎的Linux命令
- 20个让你瞬间高大上的Linux命令
- linux最受欢迎的20条命令
- 最受欢迎的10个 Linux 单行命令
- 最受欢迎的10个Linux单行命令
- linux高大上命令001
- 最受欢迎的20个国外网站
- 【随笔】Delicious上最受欢迎的100个Twitter应用
- [ZZ]世界上最受欢迎的10个Linux发行版
- 世界上最受欢迎的10个Linux发行版
- 世界上最受欢迎的10个Linux发行版
- 世界上最受欢迎的10个Linux发行版
- AFNetworking使用
- XML Catalog 介绍
- linux下安装qq(苦海无涯回头是岸)
- (EM算法)The EM Algorithm
- 幂方分解 (vip)
- 就是这么“高大上”!20个最受欢迎的Linux命令
- Android 动画 总结
- jni 编程简单例程
- 驱动方法不能改变任何事情
- JS中Null与Undefined的区别
- pythonchallenge level5--python2.7
- oj 矩形类派生立体类
- javascript解析xml文件
- android camera(二):摄像头工作原理、s5PV310 摄像头接口(CAMIF)