Lab 1: Introduction to Command Line - jacksonhturner/turner_epp531 GitHub Wiki

This document details the steps necessary for the completion of Lab 1 of EPP531.

1.

screen -S LAB_1

2.

mkdir Commandline_Lab

3.

cd Commandline_Lab

4.

ls

5.

nano Text_1.txt Write text

6.

CTRL+X to exit, Y to save

7.

mv Text_1.txt Myfile_1.txt

8.

scp [email protected]:/pickett_sphinx/projects/EPP531_AGA/turner/Commandline_Lab/Myfile_1.txt .

9.

rm Myfile_1.txt

10.

scp Myfile_1.txt [email protected]:/pickett_sphinx/projects/EPP531_AGA/turner/Commandline_Lab/

11.

conda create -n gdown; 
conda activate gdown; 
conda install conda-forge::gdown; 
gdown --no-check-certificate --folder 16h_3oraFxa86hLOPIledpJvVLznD1qlj

OR scp -r Data [email protected]:/pickett_sphinx/projects/EPP531_AGA/turner/Commandline_Lab/Data

13.

ls | wc -l

14.

more mgGenes.txt OR less mgGenes.txt

15.

wc -l mgGenes.txt OR grep -c 'MG' mgGenes.txt

16.

head -n 10 mgGenes.txt
tail -n 10 mgGenes.txt

17.

grep -c '+' mgGenes.txt 299

18.

grep -c '-' mgGenes.txt 227

19.

299+227=526 > 525

20.

Some gene names contain '-' character (5th column).

21.

nano mgGenes.txt

22.

grep -e '+' mgGenes.txt | cut -f 1-4 > Plus_genes.txt

23.

grep -e '-' mgGenes.txt | cut -f 1-4 > Minus_genes.txt;

24.

wc -l Plus_genes.txt' wc -l Minus_genes.txt

25.

head -n 250 mgGenes.txt | tail -n 1