[Chapter 4] Organizing Your Home Directory
Author: Jerry Peek, Tim O'Reilly & Mike Loukides
Date: 1998-08-04T21:32:39Z

#

| Chapter 4 |

# 4. Organizing Your Home Directory

Contents:
What? Me, Organized?
A bin Directory for Your Programs and Scripts
Organizing Nonexecutable Scripts
Directories for Emacs Hacks
Private (Personal) Directories
Naming Files
Make More Directories!
Making Directories Made Easier
Setting Up vi with the .exrc File
Find All Command Versions with whereiz

## 4.1 What? Me, Organized?

Computers and offices have one thing in common: it's easy to lose things. If you walk into my office, you'll see stacks of paper on top of other stacks of paper, with a few magazines and business cards scattered in. I can often find things, but I'd be lying if I said that I could always find that article I was reading the other day!

When you look at a new computer user's home directory, you often see something that's similar to my office. You see a huge number of unrelated files, with obscure names. He hasn't created any subdirectories, aside from those the system administrator told him he needed; and those probably aren't even being used. His home directory probably contains programs for several different projects, personal mail, notes from meetings, a few data files, some half-finished documentation, a spreadsheet for something he started last month but has now forgotten, etc.

Remember that a computer's filesystem isn't that much different from any other filing system. If you threw all of your papers into one giant filing cabinet without sorting them into different topics and subtopics, the filing cabinet wouldn't do you any good at all: it would just be a mess. On a computer, the solution to this problem is to sort your files into directories, which are analogous to the filing cabinets and drawers.

The UNIX filesystem (1.19) can help you keep all of your material neatly sorted. Your directories are like filing cabinets, with dividers and folders inside them. In this chapter, we'll give some hints for organizing your computer "office." Of course, things occasionally get misplaced even in the most efficient offices. Articles 17.20 and 17.21 show some scripts that use the find and grep commands to help you find files that are misplaced.

- ML

3.8 What tty Am I On? |  | 4.2 A bin Directory for Your Programs and Scripts