******* UNIX TUTORIAL - by Peter Conrad Cumminsky ******* ****** Lesson 3: Directory Management ****** ---------------------------------------------------------------------- ***** Where Am I? ***** %pwd [Enter] ***** How Do I Make a Directory? ***** %mkdir [Enter] ***** How Do I Change to a Directory? ***** %cd [Enter] (Changes directories. cd .. backs up one level; note the space after cd.) ***** How Do I Change to My Home Directory? ***** %cd ~ [Enter] ***** How Do I List Files and Directories? ***** %ls -F [Enter] (Lists the files in the current directory with a * after executables, a / after directories, and an @ after symbolic links.) %ls -R [Enter] (lists files in the current directory and all subdirectories.) ***** How Do I List File Details? ***** %ls -l [Enter] (Lists the files in long format--size, date, permissions.) %ls -a [Enter] (Lists hidden "dot" files with the others. If you are root, the "dot" files show up without the -a switch.) ***** How Do I Find a File in My Home Directory? ***** %find ~ -name filename -print [Enter] ***** How Do I Print Files? ***** %lpr filename [Enter] ***** How Do I ReMove a Directory and it's Files? ***** %rm -R directory [Enter] (Removes a directory dir and all subdirectories--careful!) ----------------------------------------------------------------------