Linux常用命令
Linux常用命令
lingyun通用命令
查看文件大小
bash
1 | du -h /usr/src/xxx.tar |
杀死进程
bash
1 | killall nginx |
ssh连接
bash
1 | ssh root@192.168.12.100 |
添加用户
bash
1 | useradd www |
持续输出(用于日志)
bash
1 | tailf access.log |
上传文件到远程主机
bash
1 | scp a.jpg index.html root@192.168.10.41:/var/www/html |
网络相关
常用操作
bash
1 | # 查看ip |
设置静态ip
bash
1 | # 修改 /etc/sysconfig/network-script/ifcfg-<interface-name> |
添加/删除一个子网卡
bash
1 | # 添加 |
Network is unreachable
https://dev.twsiyuan.com/2018/02/linux-network-unreachable.html
python
1 | [root@localhost ~]$ ifup ens33 |