Linux Flashcards

1
Q

What is Linux

A

Open Source OS
UNIX alternative
Highly customizable
Many home IoT devices use it

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

Linux Kernel

A

Core of Linux OS
Establishes communication between software and hardware

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

Kernel’s Responsibilities

A

Device, Memory, and Process Management
Handling system calls

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

File Manager

A

Allows users to access files in the system

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

Desktop Environment

A

Provides a user-friendly GUI

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

Package Manager

A

Used to download, install, and update applications

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

/bin and /sbin

A

Store binaries

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

/media and /mnt

A

Used to mount drives

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

/home

A

Stores personal user files

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

/tmp

A

Stores temporary files (do not save personal files in this directory)

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

/etc

A

Important: system configurations files
Directory

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

/var

A

Stores system logs

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

/boot

A

Kernel image

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

/sys

A

Interface to the kernel

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

/proc

A

A directory for each running process, including kernel processes

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

Root User

A

Highest Privileges
Can perform any task
Shown by # in CLI

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

Sudo Users

A

Can perform only what they are permitted to do in the system

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

Regular Users

A

Can perform only basic tasks in the system
Shown by $ in CLI

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

whoami

A

Returns current user name

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

pwd

A

Print Working Directory
Finds current system location

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

uname

A

Gets info about the operating system

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

touch

A

Command that creates a file

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

mkdir

A

Command creates directories and folders

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

Cat

A

Concatenate

Reads data from the file and gives its content as output

25
Relative Path
Navigation to directories w/o specifying the root and relative to the working directory
26
Absolute Path
/ Indicated root folder
27
>
Outputs and overwrites a file
28
>>
Appends the output to a file
29
<
Input
30
STDIN
Standard Input taking text as an input 0
31
STDOUT
Standard Output used to test output of any command you type in the terminal, and then that output is stored in the stdout stream 1
32
STDERR
Standard Error is invoked whenever a command faces an error, then that error message gets stored in this data stream 2
33
grep
Filters data
34
/etc/shadow
Contains encrypted passwords Need to be Root or Root privilaged
35
R
Read 4
36
W
Write 2
37
X
Execute 1
38
Path
Environment variable Instructs the shell to find an executable path Paths are separated with : colons
39
apt update
Updates package lists for upgrades
40
apt upgrade
Installs all available package updates
41
dmesg
Displays messages from the kernel ring buffer. Diagnostic tool for failures
42
dhclient
IP addresses can be changed, released, renewed, or removed
43
/etc/network/interfaces
Configure network interfaces
44
What 2 commands can start a service
Service systemctl
45
netstat
NOT installed by default
46
Samba
Allows computers to communicate within the local network via SMB protocol. Port 137-139 and 445
47
SCP
Secure Copy Protocol Securely transfer files between remote & local stations Can use flags to set parameters
48
Bash
Bourne Again SHell Scripting includes system commands. File extension .sh Automates tasks First line #!/bin/bash
49
$ # " "
Variable Comment Text
50
sed
Command used to replace words
51
chmod
Command to change permissions of a file or directory
52
iptables
Protects from possible attacks Firewall
53
smb.conf
File to be edited to set up Samba services
54
Fail2ban
Daemon that protects against brute force attacks
55
What is used for math
let expr (( ))
56
/etc/skel
Where templates for new users are stored
57
cd/
Command to get to the root directory
58
Apache
Web server