A Taste of Unix

  1. Log-in to the cs server.
  2. Short cuts for unix path names.
    ~sternfl   for the path name of my home account.
    ~cs50000   for the path name of the home account of cs50000.
    ~          for the path name of your home account.
    .          for the path name of the current directory.
    ..         for the path name of the parent to the current directory.
    
    
  3. The Copy Command. The format of the copy command is:
           cp sourcePath  targetPath
    
    You use the copy command by typing it in and pressing the enter (return) key. For example, say you want to copy the Gear program file, p.c that is in the 500 sub-directory of my my home account to your home account. You would enter the command:
        cp ~sternfl/500/p.c   ~
    
    Please enter this command. And check that p.c is in your home directory.