Skip to content

Wednesday, September 5, 2018 Shell IV

Meg Staton edited this page Sep 5, 2018 · 10 revisions

Review from Wednesday

Commands

  • head
  • tail
  • mkdir
  • rm
  • rm -r
  • cp
  • cp -r
  • mv (two uses!)
  • sort
  • uniq
  • nano

Other CLI Concepts and Tools

  • CTRL key is represented as a ^
  • CTRL-C (or ^C) will kill a hung process
  • filenames should only have letters, numbers, dashes and underscores (no fancy other symbols and NO SPACES)
  • recursive
  • >>
  • | (pipe)

So What Will Be on This Shell Test Exactly?

Examples:

  • Log into the ACF (1 point)
  • create a directory called xyz (1 point)
  • create a file in xyz called myfile.txt (without going into the directory) (1 point)
  • tell me the full file path to myfile.txt (1 point)
  • put a line of text in my file.txt (1 point)
  • cp a directory called cats from this location (1 point)
  • tell me whats in that directory (1 point)
  • show me the top of the file in cats called siamese.txt (1 point)
  • etc.

If at any point you get lost, I'll get you back on track and you can still continue to get more points. So don't panic if things go a little sideways in the middle of this, just keep going and don't panic. You are going to do fine!

Know all commands from software carpentry lessons 1-3, a bit from 4. My primary interest is in testing if you get

  • full versus relative file paths
  • how to figure out where you are in the file system and navigate to other places (pwd, cd)
  • how to create folders (mkdir)
  • how to create, edit and look at the contents of files (touch, nano, cat, head, tail, >, >>)
  • how to copy, remove, rename and move files and folders (cp, cp -r, rm, mv)
  • how to learn about other commands (man)
  • I'm not going to ask about wc, uniq, sort or pipes

New Stuff

Clone this wiki locally