Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

TAR

Status
Not open for further replies.

071

MIS
Aug 9, 2000
153
Hello,

I would like to tar the contents of a CD to my /opt directory. I tried the following but it included the CD path as well ?

tar -cvf foobar.tar /cdrom/cdrom0



Cheers,
71
 
Go to /cdrom/cdrom0 and enter the command:

tar -cvf /opt/foobar.tar *

If there are . files like .example, you will need to declare them individually. So the command would be

tar -cvf /opt/foobar.tar .example *
 
Thanks bftzmai - a tad rusty :~/

Cheers,
71
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top