Files and Directories

  1. Creating Directories
  2. Changing Directories
  3. Deleting Files/ Directories
  4. Moving Files
  5. Printing Files
Creating Directories

When you want to create a directory,

  1. At the prompt in the Unix shell window (the winterm window), type "mkdir".
  2. If the letter you are typing are not appearing in the window, make sure that the mouse pointer is over the window.
  3. Enter a space and type the name of the directory that you want to create.
  4. Press "Enter".
Changing Directories

When you want to change directories,

  1. Type "cd" at the prompt for the Unix shell (the winterm window).
  2. If the letter you are typing are not appearing in the window, make sure that the mouse pointer is over the window.
  3. Enter a space and type the name of the subdirectory that you want
  4. Press "Enter".

If you want to go from a subdirectory up to a higher directory,

  1. Type "cd" at the prompt for the Unix shell (the winterm window).
  2. If the letter you are typing are not appearing in the window, make sure that the mouse pointer is over the window.
  3. Enter a space, type "..", and press "Enter".

If you want to get back to your "root" directory (i.e. the directory you were in when you first logged in),

  1. Just type "cd" at the command prompt for the Unix shell (the winterm window).
  2. If the letter you are typing are not appearing in the window, make sure that the mouse pointer is over the window.
  3. Press "Enter".
Deleting Files and Directories

To delete a file,

  1. At the prompt in the Unix shell (the winterm window), type "rm -i ".
  2. NOTE: Using "rm" will completely remove your file. It will not place it in some recycle bin. The file that you delete with "rm" will be gone FOREVER!

  3. If the letter you are typing are not appearing in the window, make sure that the mouse pointer is over the window.
  4. Enter a space and type the complete name of the file that you want to delete, including its extension.
  5. Press "Enter".

To delete a directory,

  1. Make sure the directory is empty of all files and subdirectories.
  2. Make sure you change your directory until your in the directory that contains the one you want to delete.
  3. At the prompt in the Unix shell (the winterm window), type "rmdir".
  4. If the letter you are typing are not appearing in the window, make sure that the mouse pointer is over the window.
  5. Enter a space and type the name of the directory that you want to remove.
  6. Press "Enter".
Copying Files

To create a copy of a file,

  1. Type "cp" at the prompt for the Unix shell (the winterm window).
  2. If the letter you are typing are not appearing in the window, make sure that the mouse pointer is over the window.
  3. Enter a space and type the name of the file you want to copy.
  4. Enter a space and type the name of the file that you're copying the file to.
  5. Press "Enter".

You can also copy a file to a different directory,

  1. Type "cp" at the prompt for the Unix shell (the winterm window).
  2. If the letter you are typing are not appearing in the window, make sure that the mouse pointer is over the window.
  3. Enter a space and type the name of the file you want to copy.
  4. Enter a space and type the name of the directory to which you'd like to copy the file.
  5. Press "Enter".
Moving Files and Directories

To move files and directories, the commands are the same.

  1. At the Unix shell prompt, type "mv".
  2. If the letter you are typing are not appearing in the window, make sure that the mouse pointer is over the window.
  3. Enter a space and type the name of the file or directory that you want to move.
  4. Enter a space and enter the directory to which you'd like to move the file or directory.
  5. Press "Enter".
Printing Files

If you want to print a file,

  1. At the winterm prompt, type "lp".
  2. If the letter you are typing are not appearing in the window, make sure that the mouse pointer is over the window.
  3. Enter a space and type the name of the file that you want to print.
  4. Press "Enter".

Your file should be printed from the printer at the printer in Chemistry 1153.