LinuxSir.cn,穿越时空的Linuxsir!

 找回密码
 注册
搜索
热搜: shell linux mysql
查看: 651|回复: 0

/bin 下几个可能有用但又不常用的命令

[复制链接]
发表于 2004-11-13 17:07:31 | 显示全部楼层 |阅读模式
/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

希望大家补充
您需要登录后才可以回帖 登录 | 注册

本版积分规则

快速回复 返回顶部 返回列表