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.txt
totreatment_groups.txt
. -
Within
Practice_L2
, create a new directory calledAnalysis
. -
Copy
treatment_groups.txt
to the newly createdAnalysis
directory. -
List the contents of the
Analysis
directory. -
Change directories to
Analysis
. What is the path toAnalysis
? -
Change to the
data
directory 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.fastq
into a new file calledLine1.txt
using keyboard shortcuts andnano
. -
Move
Line1.txt
toPractice_L2
using a relative file path. -
Change to the
Practice_L2
directory and list the content of the directory. -
Remove the
Analysis
directory.