1、在/usr目录中新建一一个目录名称
为:mytest。并在mytest目 录中新建文件net.txt,
设置文件的属性为文件属主(u)增加执行权限文件属主同组用户(g)增加写入权限,其他用户(o)删除读权限。
[root@localhost /]# cd /usr
[rootlocalhost usr]# mkdir
mytest[rootelocalhost usr]# cd mytest[rootOlocalhost mytest]#
touch net.txt
[rootOlocalhost mytest]# chmod u+x,g+w,o-rnet.txt
2、将mytest目 录归档,并将其压缩成gz格
式。列出归档文件里的内容
[rootelocalhost usr]# tar -zcvf mytest.tar.gz
mytest