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. |
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 ... |
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. |
6 дек. 2016 г. · You can create a directory on the fly inside the archive using --transform: tar czf myproject.tgz --transform 's,^,myproject-1.0/,' file2 subdir1 |
14 мая 2018 г. · To make a compressed tar ball of the current directory tar -cvz -f path_to_the_archive_to_be_created. |
7 мар. 2018 г. · I am trying to archive the contents of my home directory using tar and then compress the tar file with gzip. I know you can uncompress and unarchive the .tar. ... |
7 нояб. 2011 г. · I have a file that contain list of files I want to archive with tar. Let's call it mylist.txt. It contains: file1.txt file2.txt file10.txt. |
26 янв. 2017 г. · I have 2 directors A and B. I want to tar all the files in A and have the .tar file be sent to directory B. How can i do this? |
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). |
17 апр. 2011 г. · The -C changes your working directory. The dot tells tar which directory you want to archive (ie the current working directory). |
Novbeti > |
Axtarisha Qayit Anarim.Az Anarim.Az Sayt Rehberliyi ile Elaqe Saytdan Istifade Qaydalari Anarim.Az 2004-2023 |