103 GNU and Unix Commands KA Flashcards

1
Q

103.1 Work on the command line

A

Key Knowledge Areas:

Use single shell commands and one line command sequences to perform basic tasks on the command line.
Use and modify the shell environment including defining, referencing and exporting environment variables.
Use and edit command history.
Invoke commands inside and outside the defined path.

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

Use single shell commands and one line command sequences to perform basic tasks on the command line.

A

Practice using single shell commands. However, to use a line of commands then try the following:
pipe = |
separate commands = ;
Pipes will pass data via stdout from one command to the next. Whereas ; will execute one command after another and display any output to stdout vs. passing it on.

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

Use and modify the shell environment including defining, referencing and exporting environment variables.

A

Shell environments can be displayed by typing env or printenv into the CLI. when setting environmental variables they need to be exported using the export command. So env var1=test will add var1 to a temporary environment. To permanently change the environment use export var1=test. If changes just need to be made to the shell variables then use set. set var2=test will create a var2 variable for the shell to use. To delete any environmental or shell values then just use the unset command.

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

Use and edit command history.

A

a

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

Invoke commands inside and outside the defined path.

A

a

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

103.2 Process text streams using filters

A

Key Knowledge Areas:

Send text files and output streams through text utility filters to modify the output using standard UNIX commands found in the GNU textutils package.

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

Send text files and output streams through text utility filters to modify the output using standard UNIX commands found in the GNU textutils package.

A

a

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

103.3 Perform basic file management

A

Key Knowledge Areas:

Copy, move and remove files and directories individually.
Copy multiple files and directories recursively.
Remove files and directories recursively.
Use simple and advanced wildcard specifications in commands.
Using find to locate and act on files based on type, size, or time.
Usage of tar, cpio and dd.

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

Copy, move and remove files and directories individually.

A

a

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

Copy multiple files and directories recursively.

A

a

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

Remove files and directories recursively.

A

a

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

Use simple and advanced wildcard specifications in commands.

A

a

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

Using find to locate and act on files based on type, size, or time.

A

a

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

Usage of tar, cpio and dd.

A

a

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

103.4 Use streams, pipes and redirects

A

Key Knowledge Areas:

Redirecting standard input, standard output and standard error.
Pipe the output of one command to the input of another command.
Use the output of one command as arguments to another command.
Send output to both stdout and a file.

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

Redirecting standard input, standard output and standard error.

A

a

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

Pipe the output of one command to the input of another command.

A

a

18
Q

Use the output of one command as arguments to another command.

A

a

19
Q

Send output to both stdout and a file.

A

a

20
Q

103.5 Create, monitor and kill processes

A

Key Knowledge Areas:

Run jobs in the foreground and background.
Signal a program to continue running after logout.
Monitor active processes.
Select and sort processes for display.
Send signals to processes.

21
Q

Run jobs in the foreground and background.

A

a

22
Q

Signal a program to continue running after logout.

A

a

23
Q

Monitor active processes.

A

a

24
Q

Select and sort processes for display.

A

a

25
Q

Send signals to processes.

A

a

26
Q

103.6 Modify process execution priorities

A

Key Knowledge Areas:

Know the default priority of a job that is created.
Run a program with higher or lower priority than the default.
Change the priority of a running process.

27
Q

Know the default priority of a job that is created.

A

a

28
Q

Run a program with higher or lower priority than the default.

A

a

29
Q

Change the priority of a running process.

A

a

30
Q

103.7 Search text files using regular expressions

A

Key Knowledge Areas:

Create simple regular expressions containing several notational elements.
Understand the differences between basic and extended regular expressions.
Understand the concepts of special characters, character classes, quantifiers and anchors.
Use regular expression tools to perform searches through a filesystem or file content.
Use regular expressions to delete, change and substitute text.

31
Q

Create simple regular expressions containing several notational elements.

A

a

32
Q

Understand the differences between basic and extended regular expressions.

A

a

33
Q

Understand the concepts of special characters, character classes, quantifiers and anchors.

A

a

34
Q

Use regular expression tools to perform searches through a filesystem or file content.

A

a

35
Q

Use regular expressions to delete, change and substitute text.

A

a

36
Q

103.8 Basic file editing

A

Key Knowledge Areas:

Navigate a document using vi.
Understand and use vi modes.
Insert, edit, delete, copy and find text in vi.
Awareness of Emacs, nano and vim.
Configure the standard editor.
37
Q

Navigate a document using vi.

A

a

38
Q

Understand and use vi modes.

A

a

39
Q

Insert, edit, delete, copy and find text in vi.

A

a

40
Q

Awareness of Emacs, nano and vim.

A

a

41
Q

Configure the standard editor.

A

a