欢迎来到天天文库
浏览记录
ID:15499841
大小:42.50 KB
页数:16页
时间:2018-08-03
《linux_系统管理_第2章_课堂总_s上集结》由会员上传分享,免费在线阅读,更多相关内容在行业资料-天天文库。
1、Linux_系统管理_第2章_课堂总_s上集结2.1Linux命令概述a.命令的含义可以运行的完成一定功能的程序;b.内部、外部命令的区别的参考点:shell内部命令,是集成与shell内部,在磁盘没有相对应的物理文件;2.1.3获得命令帮助help--helpmamcpinfo[root@localhost~]#manwhich//退出,qwhich-showsthefullpathof(shell)commands.ctrll清屏==clear===dos,cls[root@localhos
2、t~]#helpcdroot@localhost~]#ifconfigeth0Linkencap:EthernetHWaddr00:0C:29:54:D1:7Einetaddr:192.168.3.250Bcast:192.168.3.255Mask:255.255.255.240inet6addr:fe80::20c:29ff:fe54:d17e/64Scope:LinkUPBROADCASTRUNNINGMULTICASTMTU:1500Metric:1RXpackets:10625erro
3、rs:0dropped:0overruns:0frame:0TXpackets:400errors:0dropped:0overruns:0carrier:0collisions:0txqueuelen:1000RXbytes:984930(961.8KiB)TXbytes:51770(50.5KiB)Interrupt:169Baseaddress:0x2024[root@localhost~]#ifconfig-aeth0Linkencap:EthernetHWaddr00:0C:29:54
4、:D1:7Einetaddr:192.168.3.250Bcast:192.168.3.255Mask:255.255.255.240inet6addr:fe80::20c:29ff:fe54:d17e/64Scope:LinkUPBROADCASTRUNNINGMULTICASTMTU:1500Metric:1RXpackets:10323errors:0dropped:0overruns:0frame:0TXpackets:341errors:0dropped:0overruns:0carr
5、ier:0collisions:0txqueuelen:1000RXbytes:956845(934.4KiB)TXbytes:44408(43.3KiB)Interrupt:169Baseaddress:0x2024loLinkencap:LocalLoopbackLOOPBACKMTU:16436Metric:1RXpackets:2665errors:0dropped:0overruns:0frame:0TXpackets:2665errors:0dropped:0overruns:0ca
6、rrier:0collisions:0txqueuelen:0RXbytes:3901700(3.7MiB)TXbytes:3901700(3.7MiB)sit0Linkencap:IPv6-in-IPv4NOARPMTU:1480Metric:1RXpackets:0errors:0dropped:0overruns:0frame:0TXpackets:0errors:0dropped:0overruns:0carrier:0collisions:0txqueuelen:0RXbytes:0(
7、0.0b)TXbytes:0(0.0b)Linux命令的通用语法格式:命令字ifconfig[选项][参数]eth0[root@localhostmp1]#cp/etc/sysconfig/network-scripts/ifcfg-eth0.//。表示当前目录[root@localhostmp1]#ls-a...ifcfg-eth0[root@localhostmp1]#ls-altotal12drwxr-xr-x2rootroot4096Oct1810:33.drwxr-xr-x3rootr
8、oot4096Oct1810:30..-rw-r--r--1rootroot185Oct1810:33ifcfg-eth0[root@localhostmp1]#pwd/home/li4/a/b/c/d/e/mp1[root@localhostmp1]#cd.[root@localhostmp1]#pwd/home/li4/a/b/c/d/e/mp1[root@localhostmp1]#cd..//上级目录[root@localhoste]#pwd/home/li4/a/b/c/d/e[roo
此文档下载收益归作者所有