常用的20个linux命令
来源:互联网 发布:承兑汇票 知乎 编辑:程序博客网 时间:2024/05/19 18:10
1、以root账户执行上一条命令
sudo !!
2、利用python搭建一个 简单的web服务器,可通过http:$HOSTNAME:8000访问
python -m SimpleHTTPServer
3、切换到上一次访问的目录
cd -
4、将上一条命令中的foo替换为bar,并执行
^foo^bar
5、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 someachine
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>
- 常用的20个linux命令
- Linux常用的 20 个命令
- linux 20个常用的命令
- 20个常用的Linux命令
- Linux最常用的20个命令
- 20个常用的linux命令
- linux常用的20个命令
- linux常用的20个命令
- Linux 常用20个命令
- Linux 常用20个命令
- Linux常用20个命令
- [linux]:对于linux新手常用的20个命令
- Linux的常用的60个命令
- linux 之最常用的20个命令
- 50个常用的linux命令
- 常用的60个linux命令
- linux最常用的60个命令
- linux 常用到的10个命令
- Java经典习题(1)
- 黑马程序员 异常处理和常用类
- Silverlight学习笔记(5)——读取宿主web.config
- Ubuntu 安装 spark
- Nginx - rewrite 不区分大小写进行匹配
- 常用的20个linux命令
- Oracle拉出在sqlserver建表的语句
- [Unity3d][NGUI]打包NGUI预制件成Assetbundle 两种思路.
- three.js入门5——2014.5.28高亮显示
- Activity生命周期
- MFC如何给控件设置字体
- 反转链表
- VC禁止在任务管理器中结束本进程
- Managing the Activity Lifecycle