$ mkdir scamper_source
[ creates a directory to place the source files we will extract]
$ tar -xvf scam...tar.gz -C scamper_source --strip-components=1
[ -xvf is a combination of arguments that will specify to the tar command to extract the files from the tarball and write to the terminal all of the files being extracted]
[-C in 'x' mode this changes directories after opening the archive but before extracting entries from the archive, and directory name given after this argument in this case scamper_source is the directory it will change to]
[--strip-components=count removes the specified number of leading path elements, in this case this helps us because then we can extract the contents of the tarball directly into our folder scamper_source instead of having an intermediary folder called scamper.... in the folder scamper_source ] |