Below, I listed the resulted of the two different ways we tar'd a file. I can see the difference; but what I'd like to do is understand the difference. Hopin you can help with that?
1=tar cvf /root/logfiles.tar .
2=tar cvf logfile2.tar /var/log
[root@cis191 ~]# ls
anaconda-ks.cfg install.log lab07 ownerinfo
Desktop install.log.syslog logfiles.tar
[root@cis191 log]# ls
acpid conman.old logfile2.tar ppp secure.3
anaconda.log cron mail prelink spooler
anaconda.syslog cron.1 maillog rpmpkgs spooler.1
anaconda.xlog cron.2 maillog.1 rpmpkgs.1 spooler.2
audit cron.3 maillog.2 rpmpkgs.2 spooler.3
boot.log cups maillog.3 rpmpkgs.3 tallylog
boot.log.1 dmesg messages samba vbox
boot.log.2 faillog messages.1 scrollkeeper.log wtmp
boot.log.3 gdm messages.2 secure Xorg.0.log
btmp httpd messages.3 secure.1 Xorg.0.log.old
conman lastlog pm secure.2 yum.log