🐧Linux Server 1: Chapter 3 QUIZ
When issuing the ls -F command, what special character indicates a linked file?
@
At the vi command mode prompt, what key combination will force a quit from the vi editor without saving changes?
:q!
When using the vi text editor, which of the following keys, when in command mode, will change to insert mode and place the cursor at the end of the current line?
A
When using the vi text editor, which of the following keys, when in command mode, will move to the last line in the document?
G
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
In order to move from the /home/joe/test/data to the /home/joe directory, what command should be issued?
cd ../..
W hich of the following key combinations, commonly used in the vi editor command mode, displays current line statistics?
ctrl + g
Kate wants to compare two text files to identify what might have been changed from one version to another. Which of the following commands can she use to do this?
diff document1.txt document2.txt
Garrett wants to search through a csv file to find all rows that have either the name John or Bob in them and display them out to the terminal. Which of the following commands could Garrett use to perform this search?
grep -E "(John|Bob)" salesemployees.csv
What command can be issued to confirm which directory you are in at a command line prompt?
pwd
S elect the command that can be used to provide a long listing for each file in a directory:
ls -l
Mike has changed directory into one subdirectory after the next and has lost track of where he's at in the directory tree. Which of the following commands can he use to tell him the full path to the current subdirectory he is in?
pwd
What command can be used to display the last five lines of a text file?
tail -5