Ch5 File Manipulation Exam
-
The
ls
command will list which of the following by default?- Nothing; it requires an argument
- User’s home directory
- The root directory
- The current directory
-
User home directories often contain hidden files.
True or False?
- True
- False
-
Use the ___ option to display hidden files with the
ls
command.- -a
- -h
- -D
-
The
ls
command can list the contents of only one directory at a time.True or False?
- True
- False
-
The period . character in the output of the
ls
command represents:- Directories that can’t be accessed
- The current directory
- The end of the command output
- Hidden files
-
To perform a long listing to show file details, use which of the following commands:
- ls -l
- ls -D
- ls -L
- ll
-
Using the
touch
command and specifying a nonexistent file…- generates an error.
- creates a blank file with that name.
- prompts the user to create a file.
- does nothing.
-
The
touch
command can be used to change a file’s time-stamp to something other than the current system time.True or False?
- True
- False
-
By default, what does the
cp
command preserve from the original file?- The contents
- The timestamps
- The name
- The permissions and ownership
-
To copy the contents of a directory, use the following option(s) for the
cp
command:(choose two)
- -A
- -d
- -R
- -r
-
To maintain timestamps when using the
cp
command, use:- -a
- -A
- -t
- -T
-
The
mv
command can be used to move more than one file at a time.True or False?
- True
- False
-
The
mv
command will rename a file when a new directory is not specified.True or False?
- True
- False
-
Which option for the
rm
command will cause it to prompt before deleting files?- -i
- -a
- -p
- -l
-
Which option(s) for the
rm
command can be used to delete directories that contain files?(choose two)
- -D
- -A
- -R
- -r
-
The
rm
command can be used with glob characters to delete multiple files.- True
- False
-
The
mkdir
command cannot be used to:- Delete a directory
- Create multiple directories at once
- Create new directories
- Create sub-directories in different parent directories
-
Which
mkdir
option should be used to create parent directories (that don’t already exist) along with the specified directory?-p
-d
-F
-A
-
The
rmdir
command can be used to delete directories and their contents.True or False?
- True
- False
-
The
ls-l
command output will not include:- Hard link count
- Timestamp
- File permissions
- File contents
-
Which character at the beginning of a long listing indicates a directory?
- –
- c
- d
- l
-
Which character at the beginning of a long listing indicates a symbolic link?
- c
- l
- –
- d
-
The names of hidden files begin with the ___ character.
- >
- .
- *
- +
-
Which option to the
ls
command will sort the output by size instead of alphabetically?- -r
- -S
- -t
- -s
-
Which option to the
ls
command will sort the output by time-stamp?- -t
- -S
- -r
- -s
-
Which option to the
ls
command will reverse the sort order?- -r
- -s
- -t
- -S
-
The
file
command uses _____ to determine file types.- a random number generator
- the block file
- alchemy
- the magic file
-
By default, using the
touch
command on an existing file will update the file’s _____.- Type
- Ownership
- Timestamp
- Permissions
Subscribe
0 Comments
Newest