[root@centos7-1 ~]# ll
总用量 286436
-rw-r--r-- 1 root root 0 11月 22 13:54 a
-rw-r--r-- 1 root root 0 11月 22 13:54 ab
-rw-r--r-- 1 root root 0 11月 22 13:54 abc
-rw-r--r-- 1 root root 135 11月 27 17:34 awk.txt
-rw-r--r-- 1 root root 111 11月 22 15:50 grep.txt
-rw-r--r-- 1 root root 511 11月 24 00:11 inittab
-rw-r--r-- 1 root root 138090286 11月 28 18:02 jdk-7u80-linux-x64.rpm
-rw-r--r-- 1 root root 153530841 11月 28 18:02 jdk-7u80-linux-x64.tar.gz
-rw-r--r-- 1 root root 2347 11月 27 16:49 passwd
-rwxr-xr-x 1 root root 1833 11月 22 12:28 profile
-rw-r--r-- 1 root root 38 11月 24 00:09 sort.txt
drwxr-xr-x 12 50469 users 4096 11月 28 18:38 tengine-2.1.0
-rw-r--r-- 1 root root 1653240 11月 28 18:02 tengine-2.1.0.tar.gz
[root@centos7-1 ~]# rpm -ivh jdk-7u80-linux-x64.rpm
[root@centos7-1 ~]# rpm -qa
[root@centos7-1 ~]# rpm -qa |more
[root@centos7-1 ~]# rpm -qa | grep "jdk"
[root@centos7-1 ~]# rpm -ql jdk-1.7.0_80-fcs.x86_64
[root@centos7-1 ~]# rpm -ql jdk-1.7.0_80-fcs.x86_64 | more
[root@centos7-1 ~]# ifconfig
ens33: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500
inet 192.168.159.10 netmask 255.255.255.0 broadcast 192.168.159.255
inet6 fe80::20c:29ff:fe99:5ef2 prefixlen 64 scopeid 0x20<link>
ether 00:0c:29:99:5e:f2 txqueuelen 1000 (Ethernet)
RX packets 306539 bytes 353681820 (337.2 MiB)
RX errors 63 dropped 66 overruns 0 frame 0
TX packets 50375 bytes 4969972 (4.7 MiB)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
device interrupt 19 base 0x2000
lo: flags=73<UP,LOOPBACK,RUNNING> mtu 65536
inet 127.0.0.1 netmask 255.0.0.0
inet6 ::1 prefixlen 128 scopeid 0x10<host>
loop txqueuelen 1000 (Local Loopback)
RX packets 0 bytes 0 (0.0 B)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 0 bytes 0 (0.0 B)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
virbr0: flags=4099<UP,BROADCAST,MULTICAST> mtu 1500
inet 192.168.122.1 netmask 255.255.255.0 broadcast 192.168.122.255
ether 52:54:00:98:fb:a9 txqueuelen 1000 (Ethernet)
RX packets 0 bytes 0 (0.0 B)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 0 bytes 0 (0.0 B)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
[root@centos7-1 ~]# whereis ifconfig
ifconfig: /usr/sbin/ifconfig /usr/share/man/man8/ifconfig.8.gz
[root@centos7-1 ~]# mv /sbin/ifconfig /tmp
[root@centos7-1 ~]# ifconfig
-bash: /usr/sbin/ifconfig: 没有那个文件或目录
[root@centos7-1 ~]# rpm -qf /sbin/ifconfig
net-tools-2.0-0.24.20131004git.el7.x86_64
[root@centos7-1 ~]# mv /tmp/ifconfig /sbin/
[root@centos7-1 ~]# ifconfig
ens33: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500
inet 192.168.159.10 netmask 255.255.255.0 broadcast 192.168.159.255
inet6 fe80::20c:29ff:fe99:5ef2 prefixlen 64 scopeid 0x20<link>
ether 00:0c:29:99:5e:f2 txqueuelen 1000 (Ethernet)
RX packets 306909 bytes 353710034 (337.3 MiB)
RX errors 63 dropped 66 overruns 0 frame 0
TX packets 50540 bytes 4989034 (4.7 MiB)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
device interrupt 19 base 0x2000