1 , please find out with the command ifconfig absolute path command program
[root@localhost ~]# which ifconfig
/usr/sbin/ifconfig
2 , please use the following command to display the command which is an internal command, which is an external command ? (Cd \ pwd \ ls \ ifconfig \ du)
[root@localhost ~]# type cd
cd is a shell built ( we can see the command cd internal command )
[root@localhost ~]# type pwd
pwd is a shell built ( we can see the command pwd internal command )
[root@localhost ~]# type ls
ls is `ls --color = auto ' alias ( Thus the command ls outer portion Command )
[root@localhost ~]# type ifconfig
ifconfig is / usr / sbin / ifconfig ( Thus the command ifconfig outer portion Command )
[root@localhost ~]# type du
du is / usr / bin / du ( Thus the order du outer portion Command )
3 , in the / create directory abc
Please / Create a directory / liangjian / liyunlong / weiheshang / duanpeng
Please / abc first created under the 1000 directory, to develop their own name.
[root@localhost ~]# mkdir /abc
[root@localhost ~]# ls /
abc bin boot dev etc home liangjian liangjinan lib lib64 media mnt opt proc root run sbin srv sys tmp usr var
[the root @ localhost ~] # mkdir -p / liangjian / liyunlong / weiheshang / duanpeng
[root@localhost ~]# ls /liangjian
liyunlong
[root@localhost ~]# mkdir -p /abc/yunlong{1..1000}
4 , a switch to mode absolute path / liangjian / liyunlong / weiheshang / duanpeng directory
And with pwd view the current path, with the name of the parent directory ".." to switch to the mode / liangjian / liyunlong down
[the root @ localhost ~] # CD / liangjian / liyunlong / weiheshang / duanpeng
[root@localhost duanpeng]# pwd
/ Liangjian / liyunlong / weiheshang / duanpeng
[root@localhost duanpeng]# cd ../..
[root@localhost liyunlong]#
5, delete the first / abc next time you create a 1000 directory, in the / abc case with touch and then create 20 Ge to stu beginning of ordinary readable document, the document suffix .txt
[root@localhost liyunlong]# rm -rf /abc/yunlong*
[root@localhost liyunlong]# touch /abc/stu{1..20}.txt
[root@localhost liyunlong]# ls /abc
stu10.txt stu12.txt stu14.txt stu16.txt stu18.txt stu1.txt stu2.txt stu4.txt stu6.txt stu8.txt
stu11.txt stu13.txt stu15.txt stu17.txt stu19.txt stu20.txt stu3.txt stu5.txt stu7.txt stu9.txt
6, please use the cp command / boot / directory to vmlinuz files are copied to the beginning / abc lower, and to see the size of the disk space they occupy.
[root@localhost liyunlong]# cp /boot/vmlinuz* /abc
[root@localhost liyunlong]# ls /abc
stu10.txt stu12.txt stu14.txt stu16.txt stu18.txt stu1.txt stu2.txt stu4.txt stu6.txt stu8.txt vmlinuz-0-rescue-1841989be5c041cda350843906edead6
stu11.txt stu13.txt stu15.txt stu17.txt stu19.txt stu20.txt stu3.txt stu5.txt stu7.txt stu9.txt vmlinuz-3.10.0-693.el7.x86_64
[root@localhost liyunlong]# du -a /abc/vmlinuz*
5740 /abc/vmlinuz-0-rescue-1841989be5c041cda350843906edead6
5740 /abc/vmlinuz-3.10.0-693.el7.x86_64
7, in which a vmlinuz beginning of the file is renamed KGC , a further cut to / tmp directory.
[root@localhost /]# mv /abc/vmlinuz-0-rescue-d80a17ab9909480a95e84c772cd3816c /abc/kgc
[root@localhost /]# mv /abc/vmlinuz-3.10.0-693.el7.x86_64 /tmp
8, see the / tmp / to the directory vmlinuz detail beginning of the file status information.
[root@localhost ~]# stat /tmp/vmlinuz*
File: "/tmp/vmlinuz-3.10.0-693.el7.x86_64"
Size: 5.87776 million blocks: 11480 IO block: 4096 regular file
Equipment: fd00h / 64768d Inode : 34,082,927 hard link: 1
Permissions: (0755 / XR--rwxr-X) Uid : (0 / the root) Gid : (0 / the root)
Last Visit: 2019-07-2320: 35: 58.092526322 +0800
Recent changes: 2019-07-2320: 35: 58.095526316 +0800
Recent changes: 2019-07-2320: 38: 50.327156928 +0800
Created: -
9 , with find find command / tmp to directory vmlinuz beginning and larger than 1M file
[root@localhost ~]# find /tmp/ -name "vmlinuz*" -a -size +1M
/tmp/vmlinuz-3.10.0-693.el7.x86_64