2 сент. 2012 г. · To tar and gzip a folder, the syntax is: tar czf name_of_archive_file.tar.gz name_of_directory_to_tar Adding - before the options ( czf ) is optional with tar |
14 окт. 2016 г. · You can't tar to a directory - you have to tar to a file. You can tell tar to put that file in any directory you want, but it has to be a file. |
15 февр. 2013 г. · The following will create the archive /var/www/file.tar.gz and put file1 from the current directory (whatever that happens to be) in it, with no ... |
28 июл. 2019 г. · This can be done relatively easily using ls to make a list of existing directories, and then piping through xargs into the tar command. |
2 апр. 2019 г. · The proper way to do this is rm. For safety purposes, tar -jcvf folder.tar folder && rm -rf folder would only execute if the tar was successful. |
24 мая 2022 г. · Your command is conceptually equivalent to this: tar -czf test1.tar.gz -C ~/Downloads/dir1 "" -C ~/Documents/dir2 "" -C ~/dir3/dir4/dir5 "". |
17 нояб. 2014 г. · You can use the -C option of tar to accomplish this: tar -C /home/username/dir1/dir2 -cvf temp.tar selecteddir |
17 авг. 2015 г. · I'd like to archive only N files of each (sub) folder in a tar file. I tried to use find then tail then tar but couldn't manage to get it to work. |
11 июл. 2014 г. · Most of the time, an archive should create a single toplevel directory whose name is the base name of the archive. |
18 апр. 2015 г. · Use tar : tar -cf my_big_folder.tar /my/big/folder Restore the archive with tar -xf my_big_folder.tar -C / -C will change to the root directory to restore your ... |
Novbeti > |
Axtarisha Qayit Anarim.Az Anarim.Az Sayt Rehberliyi ile Elaqe Saytdan Istifade Qaydalari Anarim.Az 2004-2023 |