Day 4 Flashcards
Linux command used to add something to the existing Path statement.
PATH=$PATH:
Linux command to copy a file to a directory.
cp
When using the vi editor, the ___ key is used to search the document for a string.
/
When using the vi editor, the ___ key is used to delete the current character.
x
When using the vi editor, the ____ sequence of keys will display numbers, one for each line of text.
:set nu
Linux command to display the system time.
date
Linux command to view the last 10 lines of a file.
tail
When using the vi editor, the _____ sequence of keys will jump to line 1256 when the numbering feature is turned on.
:1256
Linux command to recursively copy all of the files in one directory to another.
cp -R
Linux utility that compresses files and saves them with a .gz file extension is _____.
gzip
When using the vi editor, the ___ key is used to cancel an unfinished command or to exit from insert mode at any time.
ESC
When using the vi editor, the ____ sequence of keys is used to delete the current line.
dd
Linux command to view the first 10 lines of a file.
head
Linux command to decompress a file that was compressed with the gzip compression tool is ________.
gunzip
Linux command to create a new, empty file.
touch
Linux command to view successfully ran commands is _______.
history
Linux command used to extract the contents of a file back to its original directory is _____.
tar xvf
When using the vi editor, the _____ key is used to insert above the current line.
O
Linux command to display the full path of the bash shell command is ______.
which bash
When using the vi editor, the ___ key is used to navigate the cursor one place to the right.
I
When using the vi editor, entering the ___ key while in command mode, allows access to the ex editor command set for writing, quitting and saving a file.
:
The symbol in Linux used to redirect the output of one file to the input of another is the _____.
(pipe)
When using the vi editor, the ___ key is used to append after the cursor.
a
Linux command to view the current Path statement.
echo $Path