作业|Linux5.19

[root@192 lyl]# touch aaa.txt
[root@192 lyl]# cp aaa.txt /tmp
[root@192 lyl]# mv aaa.txt bbb.txt
[root@192 lyl]# mv /tmp/aaa.txt bbb.txt
[root@192 lyl]# cd ~
[root@192 ~]# touch 1.txt 2.txt 3.txt 4.txt 5.txt
[root@192 ~]# ls -a
. 5.txt .bash_logout .cshrc .ICEauthority Public
… a2.txt .bash_profile .dbus .lesshst .tcshrc
1.txt anaconda-ks.cfg .bashrc Desktop .local Templates
2.txt a.txt b.txt Documents Music Videos
3.txt .a.txt.swp .cache Downloads original-ks.cfg .viminfo
4.txt .bash_history .config .esd_auth Pictures .xauthyqBLBW
[root@192 ~]#
[root@192 ~]# tar -zvcf xxx.tar 1.txt 2.txt 3.txt 4.txt 5.txt
1.txt
2.txt
3.txt
4.txt
5.txt
[root@192 ~]# ls
1.txt 4.txt anaconda-ks.cfg Desktop Music Public xxx.tar
2.txt 5.txt a.txt Documents original-ks.cfg Templates
3.txt a2.txt b.txt Downloads Pictures Videos
【作业|Linux5.19】[root@192 ~]# tail -10 bbb.txt
3
33
44
55
66
77
88
99
00
01
.txt
3
33
44
55
66
77
88
99
00
01
作业|Linux5.19
文章图片

作业|Linux5.19
文章图片

    推荐阅读