Hdi2u S04
From wiki
Listing files and directories
-
ls
is the most common command of all. It lists files and folders in your current location.
- By default it requires no arguments and will list in alphabetical order
- Although it has options, using it with wild card (especially the asterisk) can help control it
Some practice
- List all the files in the directory hdi2u_files. that start with the letters tes
ls tes*
- List all the files in your directory that start with tes, and end in 1.embl, 2.embl or 3.embl
ls tes*[123].embl
Questions
- Prefix the asterisk wildcard with a dot, what do you get?
- Try the -l option, what type to listing are you getting?
- What does it tell you about the whatsinaname.fasta?
- Specify the directory to ls, did something unexpected happen?
-
ls
has what should be called a companion command: pwd
. Try it.
- If
ls
is the most commmon command, what might the most common typo be?