Handling large collections of files: Difference between revisions

Jump to navigation Jump to search
m
Updated tar command
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/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-->
cc_staff
284

edits

Navigation menu