terminal archive file and remove

Posted by user1503606 on Super User See other posts from Super User or by user1503606
Published on 2012-10-18T10:10:12Z Indexed on 2012/10/18 11:04 UTC
Read the original article Hit count: 176

Filed under:
|

How do i archive and remove excess files example.

cd ~/Desktop && tar -cvf sitepack.tar ./

this will give me

ls
Riva_Starr_Feat._Noze_I_Was_Drunk_Official_Video_HD_.mp3
Riva_Starr_feat._Sud_Sound_System_Orizzonti_Official_Vide.mp3
Riva_starr_I_was_drunk_Syskey_remix_.mp3
sitepack.tar

when what i am looking for is

ls
sitepack.tar

so it archive everything into the zip rather than leave them in place?

© Super User or respective owner

Related posts about terminal

Related posts about archiving