Linux命令整理

2019-8-15linux常用命令整理

cd    # 切换目录
pwd    # 查看当前目录
ls -l    # 查看指定目录文件,可写为ll
touch <file>    # 创建文件
mkdir <dir>    # 创建文件夹
rm -rf    # 强制删除且无提示
cp    # 复制、备份  cp <old_file> <new_file>
cat -n    # 查看文件 n->显示行号
tac    # 反向查看文件
awk
whereis    # 查找二进制文件、源码文件、帮助文件
find
locate
wget    #
tar
ps -aux    # 查询进程
kill    # 杀掉进程    kill -s 9 xxxx
top    # 查看服务器组员使用
free    # 查看服务器内存使用
netstat -lntup    # 查看端口情况  l->listen,n->num,t->tcp,u->udp,p->process
nohup    # 后台运行,结尾处加注&
man

 

posted @ 2019-08-15 21:48  cooper_wang  阅读(106)  评论(0编辑  收藏  举报