14 мая 2018 г. · To make a compressed tar ball of the current directory tar -cvz -f path_to_the_archive_to_be_created. |
6 сент. 2010 г. · tar -czf /tmp/workspace.tar.gz . does the trick, except it will extract the files all over the current directory when you unpack. |
8 сент. 2013 г. · I would like to remove the part /var/www/site1 from directory and file names within the archive, in order to simplify extraction and avoid useless constant ... |
2 июн. 2009 г. · Use the -C switch of tar: tar -czvf my_directory.tar.gz -C my_directory. The -C my_directory tells tar to change the current directory to my_directory. |
1 авг. 2013 г. · Try cd /usr/local/files tar -cvzf my_arch.tar.gz dir1. The -C directive will make you change into dir1 and thus not archive the folder, but its contents. |
3 мар. 2013 г. · To simply create a tarball of these files I would just do: tar cf ones.tar 1_*.txt tar cf twos.tar 2_*.txt Most likely you want to compress the tarballs. |
17 апр. 2011 г. · The -C changes your working directory. The dot tells tar which directory you want to archive (ie the current working directory). |
6 дек. 2016 г. · I want to tar some files (and directories) but want to create an additional directory those files should reside in. So for example for the ... |
11 июн. 2009 г. · The tar --exclude=PATTERN command matches the given pattern and excludes those files, but I need specific files & folders to be ignored (full file path). |
11 сент. 2013 г. · I want to tar and all .php and .html files in a directory and its subdirectories. If I use tar -cf my_archive * it tars all the files, which I don't want. |
Novbeti > |
Axtarisha Qayit Anarim.Az Anarim.Az Sayt Rehberliyi ile Elaqe Saytdan Istifade Qaydalari Anarim.Az 2004-2023 |