Work on the machine:
1, please find out the absolute path of the program with the command ifconfig command
[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 (pwd command shows the internal command)
[root@localhost ~]# type ls --color=auto
ls is `ls --color = auto 'aliases
[root@localhost ~]# type ifconfig
ifconfig is / usr / sbin / ifconfig (ifconfig shows an external command)
[root@localhost ~]# type du
du has been hashed (/ usr / bin / du) (du shows an external command)
3, create a directory in abc / under
[root@localhost ~]# mkdir /abc/
Please create the directory / liangjian / liyunlong / weiheshang / duanpeng under /
[Root @ localhost ~] # mkdir -pv / liangjian / liyunlong / weiheshang / duanpeng
mkdir: directory has been created "/ liangjian"
mkdir: directory has been created "/ liangjian / liyunlong"
mkdir: directory has been created "/ liangjian / liyunlong / weiheshang"
mkdir: directory has been created "/ liangjian / liyunlong / weiheshang / duanpeng"
Please create a directory under 1000 / abc, develop their own name.
[root@localhost ~]# mkdir /abc/mao{1..1000}
4, switch to the next / liangjian / liyunlong / weiheshang / duanpeng manner by an absolute path
And to view the current path with the pwd, switch to / liangjian / liyunlong with the parent directory name, ".." under way
[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 next / abc time you create a catalog of 1000, in the / abc at the beginning to re-create 20 stu ordinary readable document with the touch, the document as a .txt extension
[root@localhost ~]# rm -rf /abc/mao*
[root@localhost ~]# touch /abc/stu{1..20}.txt
[root@localhost ~]# ls /abc
stu10.txt stu14.txt stu18.txt stu2.txt stu6.txt
stu11.txt stu15.txt stu19.txt stu3.txt stu7.txt
stu12.txt stu16.txt stu1.txt stu4.txt stu8.txt
stu13.txt stu17.txt stu20.txt stu5.txt stu9.txt
6, the lower your / boot / directory at the beginning of the file with the cp command to copy vmlinuz under / abc, and to see the size of the disk space they occupy.
[root@localhost ~]# cp /boot/vmlinuz* /abc
[root@localhost ~]# du -s /boot/vmlinuz*
4912 /boot/vmlinuz-0-rescue-4eb0c80845004bcbb5e025e039bba197
4912 /boot/vmlinuz-3.10.0-229.el7.x86_64
7, in which the beginning of a file renamed vmlinuz KGC, to cut a further in / tmp.
[root@localhost ~]# cd /abc
[root@localhost abc]# mv vmlinuz-0-rescue-4eb0c80845004bcbb5e025e039bba197 kgc
[root@localhost ~]# mv /abc/vmlinuz-3.10.0-229.el7.x86_64 /tmp
8. Check / vmlinuz to detail beginning of the file under the tmp / directory status information.
[root@localhost ~]# stat /tmp/vmlinuz*
9, use the find command to find / vmlinuz file size exceeds 1M and the beginning of next tmp directory
[root@localhost ~]# find /tmp -name "vmlinuz*" -a -size +1M
/tmp/vmlinuz-3.10.0-229.el7.x86_64