cc_staff
284
edits
No edit summary |
m (Updated tar command) |
||
Line 72: | Line 72: | ||
===Partial extraction from an archive=== <!--T:18--> | ===Partial extraction from an archive=== <!--T:18--> | ||
Sometimes, it is not necessary to extract all the content of an archive but only part of it. For example, the current simulation or job only needs files from a specific folder. This particular directory can be extracted on the local storage of a node using: | Sometimes, it is not necessary to extract all the content of an archive but only part of it. For example, the current simulation or job only needs files from a specific folder. This particular directory can be extracted on the local storage of a node using: | ||
{{Command| tar -zxf archive.tar.gz dir/ | {{Command| tar -zxf /path/to/archive.tar.gz dir/subdir --directory $SLURM_TMPDIR}} | ||
==Cleaning up hidden files== <!--T:13--> | ==Cleaning up hidden files== <!--T:13--> |