Linux

1.rm -rf directory

2.rm file

3.mv from-dire  to-dire

4.cd directory; cd ../ 上一级目录

5.mkdir directory; $HOME 用户家目录

6.touch file 创建文件;

7.cp 原文件  目标文件;拷贝

8. cat 文件 ;查看文件

9.grep ;grep -r ;过滤

10. ping -c 4 ip

11.netstat -lt ;列出所有处于监听状态的tcp端口;

12.netstat -tulpn; 查看所有端口信息。

13. ps -aux查看系统所有进程信息 ; ps -au用户名  查看当前用户的所有进程信息;ps -aux | grep ‘mysql’ 查看mysql

One Reply to “Linux”

Leave a Reply to luojia Cancel reply

Your email address will not be published. Required fields are marked *