CompTIA Linux+ Chapter 3 Quiz - 'Exploring Linux Filesystems'
Select the regular expression metacharacter that matches 0 or more occurrences of the previous character.
*
Which switch below can be added to the ls command to show a list of files and their type?
-F
Select the two filename extensions that are associated with C++ programming language source code files
.cpp .cc
Which of the following key combinations, commonly used in the vi editor command mode, displays current line statistics?
Ctrl+g
In the GNU Emacs editor, what key combination can be used to delete all characters between the cursor and the end of the line?
Ctrl+k
The LISP artificial intelligence programming language can be used with which text editor below?
Emacs editor
It is acceptable to use shell metacharacters when naming files. (True or False)
False
The command strings /bin/echo displays the raw binary characters inside the /bin/echo binary executable program. (True or False)
False
When issuing the ls -F command, what special character indicates a linked file?
@
If enough unique letters of a directory name have been typed, what key can be pressed to activate the BASH shell's completion feature?
Tab
Linux uses a logical directory tree to organize files into different folders. (True or False)
True
To display the contents of a text file called data, what command should be used?
cat data
In order to move from the /home/joe/test/data to the /home/joe directory, what command below should be issued?
cd ../..
What command is most effective at identifying different types of files?
file
In a file listing, the 9 characters following the file type (for example, -rwxr-xr-x) refer to the file's _________________________.
permissions
What command can be issued to confirm what directory you are in at a command line prompt?
pwd
Text wildcards used to ease the searching of specific text information are called _________________________.
regular expressions
To display a text file in reverse order, what command should be used?
tac
What command can be used to display the last five lines of a text file?
tail -5
Which character(s) below represent extended regular expression metacharacter(s)?
{}