标签:
mount | column -t
$ mount/dev/root on / type ext3 (rw)
/proc on /proc type proc (rw)
/dev/mapper/lvmraid-home on /home type ext3 (rw,noatime)
$ mount | column -t/dev/root on / type ext3 (rw)
/proc on /proc type proc (rw)
/dev/mapper/lvmraid-home on /home type ext3 (rw,noatime)
$ (echo "DEVICE - PATH - TYPE FLAGS" && mount) | column -tDEVICE - PATH - TYPE FLAGS
/dev/root on / type ext3 (rw)
/proc on /proc type proc (rw)
/dev/mapper/lvmraid-home on /home type ext3 (rw,noatime)
$ (echo "DEVICE PATH TYPE FLAGS" && mount | awk ‘$2=$4="";1‘) | column -tDEVICE PATH TYPE FLAGS
/dev/root / ext3 (rw)
/proc /proc proc (rw)
/dev/mapper/lvmraid-home /home ext3 (rw,noatime)
$ nicemount() { (echo "DEVICE PATH TYPE FLAGS" && mount | awk ‘$2=$4="";1‘) | column -t; }
$ nicemountDEVICE PATH TYPE FLAGS
/dev/root / ext3 (rw)
/proc /proc proc (rw)
/dev/mapper/lvmraid-home /home ext3 (rw,noatime)
!!:gs/foo/bar
watch -d -n 1 ‘df; ls -FlAt /path‘
-F 在文件后面加一个文件符号表示文件类型,共有 */=>@| 这几种类型,* 表示可执行文件,/ 表示目录,= 表示接口( sockets) ,> 表示门, @ 表示符号链接, | 表示管道。
-l 以列表方式显示
-A 显示 . 和 ..
-t 根据时间排序文件
sshfs name@server:/path/to/folder /path/to/mount/point
fusermount -u /path/to/mount/point
dig +short txt <keyword>.wp.dg.cx
$ dig +short txt hacker.wp.dg.cx"Hacker may refer to: Hacker (computer security), someone involved
in computer security/insecurity, Hacker (programmer subculture), a
programmer subculture originating in the US academia in the 1960s,
which is nowadays mainly notable for the free software/" "open
source movement, Hacker (hobbyist), an enthusiastic home computer
hobbyist http://a.vu/w:Hacker"
wiki() { dig +short txt $1.wp.dg.cx; }
$ wiki hacker"Hacker may refer to: Hacker (computer security), ..."
host -t txt hacker.wp.dg.cx
wget --random-wait -r -p -e robots=off -U Mozilla www.example.com
- -random-wait 等待 0.5 到 1.5 秒的时间来进行下一次请求
-r 开启递归检索
-e robots=off 忽略 robots.txt
-U Mozilla 设置 User-Agent 头为 Mozilla
- -limit-rate=20K 限制下载速度为 20K
-o logfile.txt 记录下载日志
-l 0 删除深度(默认为5)
--wait=1h 每下载一个文件后等待1小时
ALT + . (or ESC + .)
$ echo a b c
a b c$ echo <Press ALT + .>
$ echo c
$ echo 1 2 3
1 2 3
$ echo a b c
a b c$ echo <Press ALT + .>
$ echo c$ echo <Press ALT + .> again
$ echo 3
$ echo a b c
a b c$ echo <Press ALT + 1> <Press ALT + .>
$ echo a
a$ echo <Press ALT + 2> <Press ALT + .>
$ echo b
b
<space> command
du -h --max-depth=1
ps aux | sort -nk +4 | tail
python -m smtpd -n -c DebuggingServer localhost:1025
-n 参数让 Python 不要进行 setuid ( 改变用户)为 "nobody" ,也就是说直接用你的帐号来运行
-c DebuggingServer 参数是让 Python 运行时在屏幕上输出调试及运行信息
localhost:1025 参数则是让 Python 在本地的 1025 端口上开启 SMTP 服务
sudo python -m smtpd -n -c DebuggingServer localhost:25
[SHELL进阶] (转)最牛B的 Linux Shell 命令 (三)
标签:
原文地址:http://www.cnblogs.com/u0mo5/p/4871115.html