Hdi2u S04

From wiki
Revision as of 22:27, 19 April 2017 by Rf (talk | contribs) (Created page with "= Listing files and directories = * <code>ls</code> is the most common command of all. It lists files and folders in your current location. * By default it requires no argume...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

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?