Lesson 2 Practice
The instructions that follow were designed to test the skills you learned in Lesson 2. Thus, the primary focus will be navigating directories and manipulating files.
- 
Let's navigate our files using the command line. Begin in your data directory. 
- 
Copy the Practice_L2 directory ( /data/classes/BTEP/B4B_2025/Module_1/Practice_Sessions/Practice_L2) and all of its contents to your class working directory.
- 
Change directories to Practice_L2/.
- 
List the contents of Practice_L2. If there are files, when were they last modified and what is the file size?
- 
Rename sample_names.txttotreatment_groups.txt.
- 
Within Practice_L2, create a new directory calledAnalysis.
- 
Copy treatment_groups.txtto the newly createdAnalysisdirectory.
- 
List the contents of the Analysisdirectory.
- 
Change directories to Analysis. What is the path toAnalysis?
- 
Change to the datadirectory within the lesson practice directory (Practice_L2).
- 
List the contents of data.
- 
View A_R1.fastq.
- 
Copy and paste the first line of A_R1.fastqinto a new file calledLine1.txtusing keyboard shortcuts andnano.
- 
Move Line1.txttoPractice_L2using a relative file path.
- 
Change to the Practice_L2directory and list the content of the directory.
- 
Remove the Analysisdirectory.