Linux 常用命名

su root

cd

ls

pwd

mkdir

touch

rm -rf 

less

more

cat

cp  a.txt  b.txt   或者   cp -r a/  b/

mv a.txt  b.txt

chmod -R 0777 ./demo/

du * -sh

tar -zcvf /home/xahot.tar.gz /xahot     // tar -zcvf 打包后生成的文件名全路径 要打包的目录

tar -zxvf archive_name.tar.gz -C new_dir 

tail -f a.log   // 监控日志文件

find / -name "*.conf" | xargs grep "关键字"     // 查询文件关键字

find / -name "*.php" | grep "my.conf"          // 查找文件所在位置

tree  // 查看文件木兰结构

ps -aux | grep  关键字(可以是文件名)

ps -ef | grep 详解      // 将某个进程显示出来

kill -9 1100   // 杀死1100号进程

history

top

smem

  参数-w 查看系统内存使用情况

clear

date

ipcs   或者  ipcs -m     // 进程间通讯

猜你喜欢

转载自www.cnblogs.com/zhidongjian/p/10432414.html