/root
[root@localhost ~]# tar -cvf test1.tar test1
test1/
[root@localhost ~]# ls
anaconda-ks.cfg install.log install.log.syslog my.cnf test1 test1.tar
[root@localhost ~]#
[root@localhost ~]# ls
anaconda-ks.cfg install.log install.log.syslog my.cnf test1.tar
test1/
[root@localhost ~]# ls
anaconda-ks.cfg install.log install.log.syslog my.cnf test1 test1.tar
[root@localhost ~]#