新手常见命令
查看系统信息
df -h 查看linux硬盘使用情况。
image
free -h 查看剩余的内存。
image
ip a 查看当前公网ip
image
top 查看当前服务器的总揽
image
ps -ef 查看当前服务器的进程(类似window的任务管理器)
image
系统常用命令
ls 查看当前目录
image
cd /path 跳转到某个目录下 + “tab”补齐路径
image
网络连接命令
telnet ip+prot 查看对应的端口是否通畅
image
ping 对指定的ip进行ping协议测试
image
netstat -ultcp 查看当前服务使用的端口
image
wget +“url” 下载文件
image
文件操作命令
tail -f 按对文件的倒数50行进行查看
tail -f 50 /usr/local/nginx/logs/access.log
image
cat 查看文件所有内容
image
grep 管道根据给定的关键字帮助找到文件
image
极速linux-专注开源