Workbook1 Flashcards

1
Q

How many virtual consoles does Red Hat Enterprise Linux (RHEL, hereafter) provide?

A

6 [4]

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

From X, what key combination is used to access the 1st virtual console?

A

CTRL+ALT+F2 [4]

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

Aside from logout, what command ends a session in a virtual console?

A

exit [5]

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

What is X server?

A

It Provide a Graphical Environment [5]

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

From a virtual console, what key combination can be used to access X server?

A

CTRL+ALT+F1 [5]

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

Give three reasons why someone would use a virtual console instead of the graphical
environment.

A

1) machine might not have enough memory or hardware to support the graphical environment
2) virtual consoles might be all that are available
3) they are also useful in debugging systems where the graphics might not be working [5]

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

What is the name of the terminal application that you are launching when you open a terminal
window?

A

gnome-terminal [6]

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

What command can be used to determine who is logged in to a system?

A

Who Command [9]

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

What does pts/0 refer to?

A

refers to the first terminal opened within the X server [9]

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

What command is used to remotely log in to a machine?

A

ssh [10]

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

What is a process?

A

The copy of the program running in memory is called a process [15]

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

Is Linux a multitasking system? Explain why (why not)?

A

Yes,
This means that the kernel gives the appearance of running multiple processes simultaneously. In reality, the kernel is running a single The Kernel, Programs, and Processes process for a brief amount of time [15/16]

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

What do Linux users use to interact with the kernel?

A

Shell [16]

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

What is a PID?

A

Process ID [16]

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

What is an absolute reference?

A

File references relative to the root directory always

start with a leading / [19]

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

What is an relative reference?

A

File references relative to the current working

directory start with something other than a / [19]

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

Give the absolute reference for the root directory

A

/ [19]

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

What character(s) starts a relative reference?

A

../.. [19]

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

If your current working directory is /etc, give
(i) an absolute reference to /etc/sysconfig/network
and
(ii) a relative reference to /etc/sysconfig/network.

A

(i) /etc/sysconfig/network

(ii) sysconfig/network

20
Q

What color does the ls command use to display names of

(i) directory files,
(ii) executable files,
(iii) regular files?

A

(i) Blue
(ii) green
(iii) white

21
Q

What command can concatenate multiple files and output the concatenated result?

A

cat Command [20]

22
Q

In which directory is a user placed upon logging in?

A

when user’s log in to a Linux session, their shell uses their home directory as its current working directory [21]

23
Q

Give a command line that redirects to calendar.txt the output of the command used to display a
calendar.

A

cal calendar.txt [21]

24
Q

What does the first word on a command line generally refer to?

A

The name of a program[24]

25
Q

In the following command line, identify

(i) the switch(es) and
(ii) the argument(s).

[obamab@station obamab]$ ls -s -w 40 -r /usr

A

(i) -s, -w -r are switches

(ii) 40 and /usr are the argument [26]

26
Q

Rewrite the command line in the previous question to accomplish the same task, by combining
switches wherever possible.

A

ls -srw 40 /usr/ [26]

27
Q

Rewrite the command line in the previous question using the long command line switches
named width and size.

A

ls –width=40 –size -r /usr/ [26]

28
Q

What long command line switch can be used with most commands to obtain help?

A

–help [27]

29
Q

What two short command line switches can be used with most commands to obtain help?

A

-h or -? [27]

30
Q

What command can usually help restore a terminal to sane behavior?

A

reset command [32]

31
Q

What would cause a terminal to not behave sanely?

A

Sometimes, users accidentally (or intentionally) ask a terminal to display data that is not encoded as ASCII text, such as an image or an executable. [32]

32
Q

What key combination terminate the foreground process?

A

CTRL+C [32]

33
Q

What key combination Normal signaling of the end of input?

A

CTRL+D [32]

34
Q

What key combination Sound an audible terminal bell?

A

CTRL+G [32]

35
Q

What key combination Backspace - erase the previous character?

A

CTRL+H [32]

36
Q

What key combination Line feed - alternative for the RETURN key?

A

CTRL+J [32]

37
Q

What key combination causes bash to clear

screen, and other screen based programs to “refresh” the current screen.?

A

CTRL+L [32]

38
Q

What key combination Thaw the terminal display

A

CTRL+Q [32]

39
Q

What key combination Erase current line

A

CTRL+U [32]

40
Q

What key combination Suspend the foreground process

A

CTRL+Z [32]

41
Q

What is /dev/zero and what does it do?

A

is a pseudo device that, when read, returns an infinite number of (binary) zeros [33]

42
Q

What is /dev/null and what does it do?

A

Is a pseudo device that throws away any

information written to it [33]

43
Q

What key combination signals the end of input to commands such as wc and bc?

A

CTRL+D [33]

44
Q

Why would you suspend a program?

A

So at a later stage you can restore a the program [34]

45
Q

What command restores a suspended program?

A

fg [34]