Topic 2: Finding Your Way on a Linux System
Which of the following commands will output a list of all of the file names, under your home
directory and all subdirectories, which have file names ending with .pdf?
A.
search .pdf
B.
ls -name -R '*.pdf'
C.
find /home/*.pdf
D.
find ~ -name '*.pdf'
find ~ -name '*.pdf'
When creating a new file, what can be done to make the file hidden from the default output
of the ls command?
A.
Hide the file with a name commented out with a hash sign like #foobar.txt.
B.
Hide the file with a name beginning with a period like .foobar.txt.
C.
Hide the file with chvis +h filename.
D.
Hide the file with chmod a+h filename.
E.
Hide the file with hide filename.
Hide the file with a name beginning with a period like .foobar.txt.
Which command lists all files in the current directory that start with a capital letter?
A.
ls [A-Z]*
B.
ls A-Z
C.
ls A-Z*
D.
ls --uppercasefiles
E.
list-uppercase-files
ls [A-Z]*
While deleting all files beginning with the letter a there was still the file Access.txt left.
Assuming that it had the correct ownership, why was it not deleted?
A.
Files with extensions need a different treatment.
B.
rm had to be called with the option -R to delete all files.
C.
The file Access.txt was probably opened by another application.
D.
The file Access.txt was hidden.
E.
Linux file names are case sensitive.
Which of the following programs is used to search for files in a file system?
A.
locate
B.
showfiles
C.
flocate
D.
search
E.
findfiles
locate
Page 4 out of 16 Pages |
Previous |