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 |
20 июл. 2015 г. · You have first to cd /mnt/sdb1 , then launch the tar command. FYI, you don't need to use ... |
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. |
29 мар. 2012 г. · Note: if you use the -P option, tar will archive absolute paths. So it always pays to check the contents of big archives before extracting. |
24 мая 2022 г. · Your command is conceptually equivalent to this: tar -czf test1.tar.gz -C ~/Downloads/dir1 "" -C ~/Documents/dir2 "" -C ~/dir3/dir4/dir5 "". |
13 апр. 2022 г. · Create a tar.gz file from a different directory, tar must keep files in specific directory structure · Create a tar.gz of subfolder2 (named the ... |
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 ... |
17 нояб. 2014 г. · You can use the -C option of tar to accomplish this: tar -C /home/username/dir1/dir2 -cvf temp.tar selecteddir |
6 сент. 2018 г. · Use the -C option to let tar chdir into the directory before starting to archive the files: tar -czf archive.tar.gz -C /usr/hdp/2.6.4.0-91/spark2/jars. |
Novbeti > |
Axtarisha Qayit Anarim.Az Anarim.Az Sayt Rehberliyi ile Elaqe Saytdan Istifade Qaydalari Anarim.Az 2004-2023 |