Workbook 1 Flashcards

1
Q

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

A

Six [1/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 [1/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 [1/5]

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

What is X server?

A

A Graphical User Environment/Interface [1/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 [1/5]

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

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

A

Bourne Again Shell [1/6]

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

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

A

who, w [1/9]

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

What does pts/0 refer to?

A

The first terminal window opened in the X Server [1/9]

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

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

A

ssh (secure shell) [1/9]

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

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

A
  1. The host machine may not have enough memory to support the graphical environment.
  2. The virtual terminal is much faster.
  3. Network servers usually spend their lives in locked closets, administrators often want to avoid the complexity that the graphical interface adds to the system [1/5]
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 file from the hard drive to the memory. [1/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 (not).

A

Yes, the kernel usually performs one process for about 50 milliseconds. [1/15]

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 [1/16]

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

What is a PID?

A

A unique ID for every process running on the system [1/16]

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

What is an absolute reference?

A

An exact reference to a file on the filesystem that will work regardless of what the present working directory is. [1/19]

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

What is an absolute reference for the root user’s home directory?

A

/root/ [1/19]

17
Q

What character(s) starts a relative reference?

A

Either:

  1. No characters - just the start of the path
  2. ../ - Parent directory
  3. ./ - Present working directory [1/19]
18
Q

What color does the ls command use to display names of (i) directory files, (ii) executable files, and (iii) regular files?

A

Directory Files: Blue
Executable Files: Green
Regular Files: White [1/20]

19
Q

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

A

cat [1/20]

20
Q

In which directory is a user placed upon logging in?

A

The users home directory, unless changed. [1/21]

21
Q

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

A

cal > calendar.txt [1/21]

22
Q

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

A

The name of the program to run [1/24]

23
Q

How many switches and arguments are in the following command:
ls -s -w 40 -r /usr

A

Three switches: -s, -w, and -r

Two arguments: 40, and /usr [1/26]

24
Q

Long switches always start with what?

A

– (double dash) [1/26]

25
Q

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

A

–help. This is not the same as ‘man’ [1/27]

26
Q

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

A

-h or -?. These are not the same as ‘man’ [1/27]

27
Q

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

A

CTRL+R [1/33]

28
Q

What command will signal end of

input?

A

CTRL+D [1/33]

29
Q

What will the command CTRL+G do?

A

Sound an audible bell. [1/33]

30
Q

What keyboard command would you use to clean up your terminal window?

A

CTRL+L [1/33]

31
Q

How do you freeze a terminal window?

A

CTRL+S [1/33]

32
Q

How do you thaw a frozen terminal window?

A

CTRL+Q [1/33]

33
Q

If you made a mistake on the line, and want to start over, what keyboard command would you use?

A

CTRL+U [1/33]

34
Q

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

A

A program that will erase or ‘null’ any data received. [1/33]

35
Q

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

A

A program that will return an infinite amount of zeros. [1/33]

36
Q

Which pager does RHEL use when displaying man pages?

A

less [1/43]

37
Q

A command line that outputs the man page for the passwd file’s format.

A

man passwd 5 [1/43]

38
Q

What switch is used to search the man pages?

A

-k [1/43]