COP3363 EXAM 1 STUDY GUIDE WITH
COMPLETE SOLUTIONS
ls - ANSWER Description:
-List files
Flag options covered:
-l
-a
You should be able to:
-list the contents of a directory
-do a "long listing" showing file details
-list the invisible "dot-files" in a directory
cd - ANSWER Description:
-Change directory
You should be able to:
-change to another directory, using any style pathname
-change to your home directory
cat - ANSWER Description:
,-Concatenate (to standard output)
You should be able to:
-print contents of one or more files to screen
-use with output redirection to concatenate files into a single file
more - ANSWER Description:
-a viewer, to view file contents
You should be able to:
-use this command to view a file
-describe how it works
less - ANSWER Description:
-a viewer, to view file contents
You should be able to:
-use this command to view a file
-describe how it works (and differs from more)
touch - ANSWER Description:
,-create a file, or update time stamp
You should be able to:
-use this command to create an empty file
-use this command to update a file's time stamp
pwd - ANSWER Description:
-Show current directory
You should be able to:
-display the pathname of the current working directory
mkdir - ANSWER Description:
-Make directory
You should be able to:
-create directory
, rmdir - ANSWER Description:
-Remove (empty) directory
You should be able to:
-remove any empty directory
cp - ANSWER Description:
-Copy a file (or directory)
Flag options covered:
-r
You should be able to:
-copy a file to another filename
-copy one or more files to another location
-copy an entire directory with a single command
mv - ANSWER Description:
-Move a file (or directory)
COMPLETE SOLUTIONS
ls - ANSWER Description:
-List files
Flag options covered:
-l
-a
You should be able to:
-list the contents of a directory
-do a "long listing" showing file details
-list the invisible "dot-files" in a directory
cd - ANSWER Description:
-Change directory
You should be able to:
-change to another directory, using any style pathname
-change to your home directory
cat - ANSWER Description:
,-Concatenate (to standard output)
You should be able to:
-print contents of one or more files to screen
-use with output redirection to concatenate files into a single file
more - ANSWER Description:
-a viewer, to view file contents
You should be able to:
-use this command to view a file
-describe how it works
less - ANSWER Description:
-a viewer, to view file contents
You should be able to:
-use this command to view a file
-describe how it works (and differs from more)
touch - ANSWER Description:
,-create a file, or update time stamp
You should be able to:
-use this command to create an empty file
-use this command to update a file's time stamp
pwd - ANSWER Description:
-Show current directory
You should be able to:
-display the pathname of the current working directory
mkdir - ANSWER Description:
-Make directory
You should be able to:
-create directory
, rmdir - ANSWER Description:
-Remove (empty) directory
You should be able to:
-remove any empty directory
cp - ANSWER Description:
-Copy a file (or directory)
Flag options covered:
-r
You should be able to:
-copy a file to another filename
-copy one or more files to another location
-copy an entire directory with a single command
mv - ANSWER Description:
-Move a file (or directory)