找回密码
 立即注册

推荐阅读

  • 便民服务
  • 关注我们
  • 社区新手

Linux系统操作网卡等的指令

[复制链接]
不要在根目录使用","marks":[{"type":"fontSize","value":18}]}]}],"state":{}},{"type":"block","id":"AG75-1650763923705","name":"paragraph","data":{"style":{"indent":28}},"nodes":[{"type":"text","id":"MC6q-1650763923692","leaves":[{"text":"[root@localhost /]# cd wuhan","marks":[]}]}],"state":{}},{"type":"block","id":"Y6fE-1650763924794","name":"paragraph","data":{"version":1,"style":{"indent":28}},"nodes":[{"type":"text","id":"BT15-1650763924793","leaves":[{"text":"[root@localhost wuhan]# du -sh","marks":[]}]}],"state":{}},{"type":"block","id":"6h9z-1650763924796","name":"paragraph","data":{"version":1,"style":{"indent":28}},"nodes":[{"type":"text","id":"UWJV-1650763924795","leaves":[{"text":"12K\t.","marks":[]}]}],"state":{}},{"type":"block","id":"yiAl-1650763924798","name":"paragraph","data":{"version":1,"style":{"indent":28}},"nodes":[{"type":"text","id":"7MpD-1650763924797","leaves":[{"text":"[root@localhost wuhan]# cd /","marks":[]}]}],"state":{}},{"type":"block","id":"kW57-1650763924800","name":"paragraph","data":{"version":1,"style":{"indent":28}},"nodes":[{"type":"text","id":"LlUu-1650763924799","leaves":[{"text":"[root@localhost /]# du -sh wuhan","marks":[]}]}],"state":{}},{"type":"block","id":"JX1t-1650763924802","name":"paragraph","data":{"version":1,"style":{"indent":28}},"nodes":[{"type":"text","id":"pYNC-1650763924801","leaves":[{"text":"12K\twuhan","marks":[]}]}],"state":{}},{"type":"block","id":"fGOt-1650763924804","name":"paragraph","data":{"version":1,"style":{"indent":28}},"nodes":[{"type":"text","id":"BP4l-1650763924803","leaves":[{"text":"[root@localhost /]#","marks":[]}]}],"state":{}},{"type":"block","id":"cScf-1650764026325","name":"paragraph","data":{"version":1,"style":{"indent":0}},"nodes":[{"type":"text","id":"buy8-1650764026323","leaves":[{"text":"Linux系统当中查看系统的操作位数?","marks":[{"type":"fontSize","value":18}]}]}],"state":{}},{"type":"block","id":"lmnd-1650764227999","name":"paragraph","data":{"version":1,"style":{"indent":28}},"nodes":[{"type":"text","id":"l5DJ-1650764227986","leaves":[{"text":"getconf LONG_BIT:查看系统的操作位数","marks":[{"type":"fontSize","value":18}]}]}],"state":{}},{"type":"block","id":"n9kI-1650764256544","name":"paragraph","data":{"version":1,"style":{"indent":0}},"nodes":[{"type":"text","id":"RFCK-1650764256543","leaves":[{"text":"Linux系统当中软链接以及硬链接","marks":[{"type":"fontSize","value":18}]}]}],"state":{}},{"type":"block","id":"AMRU-1650764279144","name":"paragraph","data":{"version":1,"style":{"indent":28}},"nodes":[{"type":"text","id":"w0HU-1650764279143","leaves":[{"text":"硬链接:备份   ln -n 进行备份","marks":[{"type":"fontSize","value":18}]}]}],"state":{}},{"type":"block","id":"Tojd-1650764452929","name":"paragraph","data":{"version":1,"style":{"indent":28}},"nodes":[{"type":"text","id":"GVpb-1650764452928","leaves":[{"text":"ln -n 原文件 备份文件名:","marks":[{"type":"fontSize","value":18}]},{"text":"[root@localhost /]# ","marks":[{"type":"fontSize","value":14}]},{"text":"ln -n","marks":[{"type":"fontSize","value":14},{"type":"bold"}]},{"text":" shanghai.txt sh.txt","marks":[{"type":"fontSize","value":14}]}]}],"state":{}},{"type":"block","id":"1gAI-1650764292034","name":"paragraph","data":{"version":1,"style":{"indent":28}},"nodes":[{"type":"text","id":"80tw-1650764292031","leaves":[{"text":"软链接:快捷方式  ln -s  创建快捷方式","marks":[{"type":"fontSize","value":18}]}]}],"state":{}},{"type":"block","id":"cLAP-1650764516447","name":"paragraph","data":{"version":1,"style":{"indent":28}},"nodes":[{"type":"text","id":"NSqa-1650764516445","leaves":[{"text":"在系统当中,他可能有的文件很常用,但是目录层级很深,这个时候可以在根目录创建一个快捷方式","marks":[{"type":"fontSize","value":18}]}]}],"state":{}},{"type":"block","id":"EEqL-1650764908961","name":"paragraph","data":{"version":1,"style":{"indent":28}},"nodes":[{"type":"text","id":"iVEw-1650764908943","leaves":[{"text":"ln -s 文件/目录的绝对路径 回车:","marks":[{"type":"fontSize","value":18}]},{"text":"[root@localhost /]# ","marks":[{"type":"fontSize","value":14}]},{"text":"ln -s","marks":[{"type":"fontSize","value":14},{"type":"bold"}]},{"text":" /wuhan/wuhan1/wuhan2","marks":[{"type":"fontSize","value":14}]}]}],"state":{}},{"type":"block","id":"norE-1650764930463","name":"paragraph","data":{"version":1,"style":{"indent":28}},"nodes":[{"type":"text","id":"9R9v-1650764930461","leaves":[{"text":"注意:你在哪个路径下面创建软链接,那么这个软链接就显示在你当前的路径位置","marks":[{"type":"fontSize","value":18}]}]}],"state":{}},{"type":"block","id":"i9cZ-1650764966729","name":"paragraph","data":{"version":1,"style":{"indent":28}},"nodes":[{"type":"text","id":"UDhr-1650764966727","leaves":[{"text":"l 开头 文件/目录 代表软件来的标识(链接文档)","marks":[{"type":"fontSize","value":18}]}]}],"state":{}},{"type":"block","id":"2VDL-1650800477501","name":"paragraph","data":{"version":1,"style":{"indent":28}},"nodes":[{"type":"text","id":"qO01-1650800477499","leaves":[{"text":"-文件","marks":[{"type":"fontSize","value":18}]}]}],"state":{}},{"type":"block","id":"RZ8q-1650765004124","name":"paragraph","data":{"version":1,"style":{"indent":0}},"nodes":[{"type":"text","id":"AG3P-1650765004122","leaves":[{"text":"     d目录","marks":[{"type":"fontSize","value":18}]}]}],"state":{}}]">Linux 操作指令:
Linux系统操作网卡的指令:
service network start:启动网卡
service network restart:重启网卡
service network stop:关闭网卡
service network status:查看网卡的状态
Linux系统当中针对防火墙的操作:
service iptables start:启动防火墙
service iptables restart:重启防火墙
service iptables stop:关闭防火墙
service iptables status:查看防火墙的状态
Linux当中查看文件大小的指令
du -sh:查看当前文件的大小-->不要在根目录使用
[root@localhost /]# cd wuhan
[root@localhost wuhan]# du -sh
12K        .
[root@localhost wuhan]# cd /
[root@localhost /]# du -sh wuhan
12K        wuhan
[root@localhost /]#
Linux系统当中查看系统的操作位数?
getconf LONG_BIT:查看系统的操作位数
Linux系统当中软链接以及硬链接
硬链接:备份   ln -n 进行备份
ln -n 原文件 备份文件名:[root@localhost /]# ln -n shanghai.txt sh.txt
软链接:快捷方式  ln -s  创建快捷方式
在系统当中,他可能有的文件很常用,但是目录层级很深,这个时候可以在根目录创建一个快捷方式
ln -s 文件/目录的绝对路径 回车:[root@localhost /]# ln -s /wuhan/wuhan1/wuhan2
注意:你在哪个路径下面创建软链接,那么这个软链接就显示在你当前的路径位置
l 开头 文件/目录 代表软件来的标识(链接文档)
-文件
     d目录

分享至 : QQ空间
收藏

0 个回复

您需要登录后才可以回帖 登录 | 立即注册