Linux Flashcards

1
Q

3 main distributions of linux

A

Red Hat - Debian - SUSE

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

What are some common Debian-based distributions

A

Ubuntu - Linux Mint - Kali Linux

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

What are some common Red Hat-based distributions

A

Fedora - CentOS - RHEL

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

What are the different types of releases for Ubuntu

A

even number (18.04, 20.04) are long-term support (LTS) with 5 years of support

odd number (19.04, 21.04) are standard releases (interim) with 9 months of support

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

What is the difference between LTS and standard releases

A

LTS is for stable and reliable operating systems for work or personal use

Standard releases are for more cutting-edge use cases

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

Rolling release model

A

updates continually come out in a rolling based mode so there is no long term support

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

Samba

A

cross-platform file sharing protocol that supports SMB

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

what is the first character in a file permission string for, and what are the common different options?

A

represents the file type.

d for directory
- for a regular file
l for symbolic link

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

what are the 2nd, 3rd, and 4th character in a file permission string for, what are the different options, and what order are they in?

A

represents the file permissions for the owner of the file or directory in the order of rwx.

r is for reading
w is for writing
x is for executing
- is an absent character which means the permission is not granted

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

what are the 5th, 6th, and 7th character in a file permission string for?

A

represents the file permissions for the group that the file belongs to

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

what are the 8th, 9th, and 10th characters in a file permission string for?

A

represents the file permissions for all other users

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

what is /dev/tty or ‘tty’ command do

A

tty is a terminal instance number that is open. if you have have 3 terminals open for example, the first would be tty0, the second would be tty1, and the third would be tty2. ‘tty’ command shows the path to the terminal instance you are running

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

what is the octal notation for file permissions and how do you configure them?

A

4 - read
2 - write
1 - execute
0 - none
add the numbers together into one digit in place of the permission group.
Ex: “chmod 740 example.txt” changes permission to rwx, r–, —

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

How do variables work in linux and how are they stored?

A

Variables can be assigned values using the syntax ‘variable_name=value’, and the value of the variable can be accessed later on using ‘$variable_name’. Variables are stored in memory but you can add the variable to you shell’s configuration file.

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

What is a shadow file and what directory is it in?

A

the shadow file is in the /etc directory which keeps password hashes for user accounts along with other info like ID and group ID.

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