Out of (CIS Unix) Disk Space? (Shell Version)

This document is a supplement to "Out of (CIS Unix) Disk Space?" It is for users who would like to remedy their disk space dilemmas by establishing a login session to one of the CIS Unix login servers and giving shell commands.

Directory Navigation

Your CIS Unix home directory is hierarchical; it can contain subdirectories, which themselves can contain subdirectories, etc. You can navigate up or down in your directory tree using the cd command.

The command


  % cd dir
  

… will make dir your current directory. (You'll want to specify an actual directory name instead of dir, of course.) To move "up" one level in the directory tree:


  % cd ..
  

No matter where you are, a bare cd command will return you to your home directory:


  % cd
  
… and the pwd command can be used to tell you the path to your current directory:

  % pwd
  

Finding out where your disk space is being used

Deleting Stuff

Here's where you'll want to be careful. The rm command is used to remove files and directories. Before you give the command, ask yourself if that's what you really want to do. In fact, ask yourself at least a couple times. In normal operation, the rm command will not ask if you "really mean to do this." It will simply execute your instructions.

Alpine

You can, if you wish, delete mail messages and entire mail folders with the Alpine mail program. To start it up:


  % alpine
  
Alpine is very self-explanatory with plenty of onscreen help. A tutorial is here. A couple of tips useful for cleanup:
Page Maintenance:
Paul A. Sand <pas@unh.edu>
Last modified: 2012-05-07 9:06 AM EDT
[W3C Validator]