Skip to content

Instantly share code, notes, and snippets.

@elowy01
Last active January 17, 2023 12:15
Show Gist options
  • Save elowy01/38fe569de7c5b0bef1ec0cd837c54ee9 to your computer and use it in GitHub Desktop.
Save elowy01/38fe569de7c5b0bef1ec0cd837c54ee9 to your computer and use it in GitHub Desktop.
# list contents of a tar.gz file without actually decompressing
$ tar -ztvf file.tar.gz
# extract a specific file from a tar.gz file without decompressing
tar -zxvf Biofidelity_NS215_0137.tar.gz 220414_NS500215_0137_AHLLKVBGXL/SampleSheet.csv
# untar a non-compressed file
tar -xvf file.tar
# symbolic link (myfile is the name of the link)
ln -s source_file myfile
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment