1、文件夹的增删改查
增
mkdir
删
rmdir
rm -r abc
改
mv
cp
查
ll
ls
pwd
find
whereis
2、文件的增删改查
增
touch 12.txt
删
rm 123.txt
改
cp
mv
查
cat 123.txt
cat:从第一行开始显示文本内容(适用于内容较少的)
tac:从最后一行开始显示,是 cat 的逆顺序
more:一页一页的显示文本内容(适用于内容较多的)
less:与 more 类似,但是比 more 更好的是,它可以往前翻页!
head:只看文本的前面几行
tail:只看文本的后面几行
nl:显示文本内容与行号
3、网络命令
ifconfig (可加网卡名,单独查看网卡信息)
ping
curl www.baidu.com
netstat
vim /etc/apt/sources.list
4、系统命令
systemctl list-unit-files | grep network
systemctl start xxxx
systemctl stop xxxx
systemctl restart xxxx
systemctl status xxxx
systemctl enable xxxx
systemctl disenable xxxx
systemctl is-enabled xxx