Linux Cheat sheet
>cd - change directory
>cd .. - moves up a directory
>cd /project/microbiome_workshop/amplicon/data/ - moves you
to this directory
>ls - lists the contents of a directory
>pwd - path of working directory
>cp file1 file2 – copies file1 and creates a duplicate file2
>mkdir dir – create new directory dir
>rm file1 – removes file1
>chmod 777 file – 4 read, 2, write , 1 execute – adds up to 7
Read write execute for owner, group world
ssh user@host
>gunzip file.gz – decompress file
>tar –xvf – untar file
>control+C, or control+Z – halts command
>mv file1 renamedfile – renames file
>mv file1 test_dir – moves file1 to test_dir