Mod:Hunt Research Group/file move

From ChemWiki
Revision as of 19:08, 13 February 2020 by Phunt (Talk | contribs) (Created page with "==Moving large files, or directories around== *Use dropbox if they are not too large, otherwise *Use the "tar" command ::If you have not used this command before **practice**...")

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

Moving large files, or directories around

  • Use dropbox if they are not too large, otherwise
  • Use the "tar" command
If you have not used this command before **practice** (make up a directory with some test files in it) since you can destroy the WHOLE directory if you do it wrong.
  • for example, for a directory called "jobs"
tar -cvfz jobs.tar.gz jobs
the -c command means concatonate all files
the -v is for verbose output
the -f is to create a file
the -z is to compress or gzip the whole lot
  • to uncompress and expand out
gunzip jobs.tar.gz
tar -xvf jobs.tar
we need to uncompress first using the gzip utility
then use the tar command to expand the decompressed file
the -x is to expand