Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Code Block
languagebash
titlehint eXtracting a .tar.gz file is the opposite of Creating one (hints are in the capital letters)
collapsetrue
cd $WORK/src
tar -xvzf SPAdes-3.13.0-Linux.tar.gz
# from the help file:
  # x = Extract
  # v = verbose
  # z = file is also gzipped
  # f = force 

...

Code Block
languagebash
titleCopy executables to somewhere already in your path (IE $HOME/local/bin)
collapsetrue
mkdir -p $HOME/local/bin $HOME/local/share # note deliberately creating 2 folders by using the space between them
cp $WORK/src/SPAdes-3.13.0-Linux/bin/* $HOME/local/bin  #Note that by specifying the full path all the files and the destination, this command can be run from anywhere on TACC.
cp -r $WORK/src/SPAdes-3.13.0-Linux/share/spades $HOME/local/share
Code Block
languagebash
titleSuggested line to add to your .bashrc file to directly access executables
collapsetrue
export PATH=$WORK/src/SPAdes-3.13.0-Linux/bin:$PATH
# This line must be added to the .bashrc file found in your $HOME directory, in section 2. I typically add all modifications 1 after the other so the most recent thing I have added is the last line in this section, but is searched first when looking for commands.

...