Moving Around in a Hurry
Contents:
Getting Around the Filesystem
Using Relative and Absolute Pathnames
What Good Is a Current Directory?
How Does UNIX Find Your Current Directory?
Saving Time When You Change Directories: cdpath
The Shells' pushd and popd Commands
Nice Aliases for pushd
Quick cds with Aliases
cd by Directory Initials
Variables Help You Find Directories and Files
Finding (Anyone's) Home Directory, Quickly
Marking Your Place with a Shell Variable
Which Directory Am I in, Really?
Automatic Setup When You Enter/Exit a Directory
Getting Around the Filesystem
How quickly can you move around the UNIX filesystem? Can you locate any file or directory on your filesystem with both its absolute and relative pathnames? How can symbolic links help you and hurt you?
A lot of UNIX users don't realize how much they'll be helped by completely understanding a few filesystem basics. Here are some of the most important concepts and tricks to know:
- Using relative and absolute pathnames: article .
- What good is a current directory? article .
- Saving time and typing when you change directories with cdpath: article .
- Directory stacks keep a list of directories you're using and let you get to them quickly: articles , .
- Quick cd aliases: article .
- Using variables and a tilde (
~
) to help you find directories and files: articles , . - A mark alias to mark directory for cd'ing back: article .
- Problems when cd'ing through symbolic links: article .
- Automatic setup for entering and exiting a directory: article .
- JP