|
|
/bin 下几个可能有用(脚本中)但又不常用的命令
------------------------------------------------
arch - print machine architecture
i686
hostname
deb3
kernelversion
2.6
readlink - display target of symbolic link on standard output
coder@DEB3:/proc/617$ readlink exe
/usr/bin/wmnd
pidof -- find the process ID of a running program.
DEB3:/proc/617# pidof bash
1202 886 780
DEB3:/proc/617# pidof getty
456 455 454 453 452
可能通过 pidof 自己实现一个 killall
pidof xmms | xargs kill -9
run-parts - run scripts or programs in a directoryrun-parts runs a number of scripts or programs found in a single direc-tory directory.
tempfile - create a temporary file in a safe manner
DEB3:/home/coder# tempfile
/tmp/file0AlEHH
希望大家补充 |
|