Day 4 Flashcards

1
Q

Linux command used to add something to the existing Path statement.

A

PATH=$PATH:

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

Linux command to copy a file to a directory.

A

cp

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

When using the vi editor, the ___ key is used to search the document for a string.

A

/

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

When using the vi editor, the ___ key is used to delete the current character.

A

x

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

When using the vi editor, the ____ sequence of keys will display numbers, one for each line of text.

A

:set nu

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

Linux command to display the system time.

A

date

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

Linux command to view the last 10 lines of a file.

A

tail

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

When using the vi editor, the _____ sequence of keys will jump to line 1256 when the numbering feature is turned on.

A

:1256

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

Linux command to recursively copy all of the files in one directory to another.

A

cp -R

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

Linux utility that compresses files and saves them with a .gz file extension is _____.

A

gzip

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

When using the vi editor, the ___ key is used to cancel an unfinished command or to exit from insert mode at any time.

A

ESC

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

When using the vi editor, the ____ sequence of keys is used to delete the current line.

A

dd

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

Linux command to view the first 10 lines of a file.

A

head

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
14
Q

Linux command to decompress a file that was compressed with the gzip compression tool is ________.

A

gunzip

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
15
Q

Linux command to create a new, empty file.

A

touch

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
16
Q

Linux command to view successfully ran commands is _______.

A

history

17
Q

Linux command used to extract the contents of a file back to its original directory is _____.

A

tar xvf

18
Q

When using the vi editor, the _____ key is used to insert above the current line.

A

O

19
Q

Linux command to display the full path of the bash shell command is ______.

A

which bash

20
Q

When using the vi editor, the ___ key is used to navigate the cursor one place to the right.

A

I

21
Q

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.

A

:

22
Q

The symbol in Linux used to redirect the output of one file to the input of another is the _____.

A

(pipe)

23
Q

When using the vi editor, the ___ key is used to append after the cursor.

A

a

24
Q

Linux command to view the current Path statement.

A

echo $Path

25
Q

Linux command to display the current working directory.

A

pwd

26
Q

Linux command used to display info about the user(s) logged in and what they are doing on the system is _____.

A

w

27
Q

When using the vi editor, the ___ key is used to move the cursor one place up.

A

k

28
Q

Linux command used to make a directory.

A

mkdir

29
Q

Linux command used to display a snapshot status of all active processes to the terminal.

A

ps -elf

30
Q

When using the vi editor, the ___ sequence keys will write or (save) the latest changes to the file.

A

:w

31
Q

Linux command used to remove an empty directory.

A

rmdir

32
Q

Linux command used to archive in full verbose mode.

A

tar cvf

33
Q

Linux command used to create a typescript of the terminal session.

A

script

34
Q

Linux command used to list the contents of a directory in a long format, displaying inode numbers, the number of file system blocks, and all files to include the hidden ones is ______.

A

ls -lisa

35
Q

Linux used to view only the lines with a specific string is ______.

A

more directory | grep “string”