[Linux]常用命令

来源:互联网 发布:虚拟机 linux nat 编辑:程序博客网 时间:2024/06/16 04:03

重定向历史记录

# HISTFILE=/dev/null
# export HISTSIZE=0
# history

查看启动信息

# last -x | grep boot

查看共享库依赖

# ldd elffile
# readelf -d elffile | grep shared

查看进程

# ps -aux
# ps -A -o pid,stime,etime,args

修改文件信息

# touch -m -d “2015-05-13 11:11:11” filename
# touch -a -d “2015-05-13 11:11:11” filename
# touch -acmr dstfile srcfile

1 0
原创粉丝点击