Linux Flashcards

1
Q

You can view all of the users on a system by looking at the contents of the /e__/passwd file

A

You can view all of the users on a system by looking at the contents of the /etc/passwd file

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

You can view all the groups on the system and their members by looking in the /etc/g___

A

You can view all the groups on the system and their members by looking in the /etc/group

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

The most common way to view the permissions of a file is to use ls with the long listing option -l, e.g. ls -l myfile

A

The most common way to view the permissions of a file is to use ls with the long listing option -l, e.g.
ls -l myfile

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

In Linux, there are two types of files: normal and s_____.

A

In Linux, there are two types of files: normal and special.

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

Normal files can be identified by a h_____ (-) in their file type fields

A

Normal files can be identified by a hyphen (-) in their file type fields

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

To see the groups that your user currently belongs to, type:

A

groups

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

To page down, you can use either the s____ bar, the “Page Down” button on your keyboard, or the CTRL-_ shortcut.

A

To page down, you can use either the space bar, the “Page Down” button on your keyboard, or the CTRL-f shortcut.

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

To scroll back up, you can use either the “Page Up” button, or the CTRL-_ keyboard shortcut.

A

To scroll back up, you can use either the “Page Up” button, or the CTRL-b keyboard shortcut.

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

To search for some text in the document, you can type a forward slash “/” followed by the search term. For instance, to search for “mail”, you would type:

A

/mail

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

To get to another result (after /search), you can type the lower-case _ key:

A

lt. To get to another result, you can type the lower-case n key (for next)

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

To move backwards to the previous result, use a capital _ instead:

A

To move backwards to the previous result, use a capital N instead:

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

Red Hat Enterprise Linux sometimes acronym-ed as ____

A

RHEL

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

To view all of the environment variables that are set for a particular terminal session, run the e__ command:

A

env command

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

To print out the value of the PATH variable, you may use the e___ command:

A

the echo command:

echo $PATH

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

A u____ value is a three-digit octal number that determines the permissions for newly created files and directories in UNIX-based systems

A

A umask value is a three-digit octal number that determines the permissions for newly created files and directories in UNIX-based systems

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

755 in sudo chmod -R 755 means you can do anything with the file or directory, and other users can read and execute it but not alter it.

A

755 in sudo chmod -R 755 means you can do anything with the file or directory, and other users can read and execute it but not alter it.