-C, --directory DIR
change to directory DIR
[root@hongdi lhd]# tar -cvf c.tar -C /home/lhd a.txt
a.txt
[root@hongdi lhd]# tar -tvf c.tar
-rw-rw-r-- lhd/lhd 10240 2009-02-03 13:12 a.txt
-C, --directory DIR
change to directory DIR
[root@hongdi lhd]# tar -cvf c.tar -C /home/lhd a.txt
a.txt
[root@hongdi lhd]# tar -tvf c.tar
-rw-rw-r-- lhd/lhd 10240 2009-02-03 13:12 a.txt