1 | 2 | 3 | 4 | Current Level: 5
Now that she understands files and folders, Nelle starts organizing her data from the lab. She wants everything to be tidy and efficient, including how she navigates it.
Create a folder for her data Nelle creates a folder called:
north-pacific-gyre
This helps her remember where the samples came from.
Name files clearly Each file is named using the sample’s unique ID. For example:
NENE01729A.txt
NENE01812A.txt
These .txt
files are plain text from the assay machine.
List files in the folder To see what’s inside, she runs:
ls north-pacific-gyre/
Use tab completion Instead of typing the full name, Nelle can type part of it and press Tab:
ls nor [then press Tab]
This auto-completes to:
ls north-pacific-gyre/
Use tab completion for files too Inside the folder, she tries:
ls north-pacific-gyre/goo [then press Tab twice]
This lists:
goodiff.sh goostats.sh
Tab completion saves time and avoids typos. Press Tab once to complete. Press Tab twice to show all matching options.
This feature works with:
pwd
to print your current location.ls [path]
to list contents of a folder.cd [path]
to change folders./
(on Unix-like systems)./
is the root of the file system./
..
means “current directory”
..
means “up one level”