next up previous contents index
Next: Managing Jobs Up: Commonly Used Unix Previous: Managing Directories

Managing Files

 
 ls         		 list contents of working directory

ls file list file if it exists in working directory

ls dir list contents of the directory dir

ls -l list additional information on directory contents

ls -a list all files including hidden files (. files)

cp file1 file2 copy file1 to file2 (overwrites file2)

cp file dir copy file into directory dir

mv file dir move file into directory dir

mv file1 file2 move file1 to file2 (overwrites file2)

rm file remove (delete) file

rm -i file ask for confirmation before removing (deleting) file

more file displays contents of file, one screen at a time

cat file displays contents of file

chmod arg file change read/write/execute permission of file

chmod arg dir change read/write/execute permission of dir



Alan Silverman
Wed Apr 12 16:54:02 METDST 1995