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
Q

Relative Path

A

Navigation to directories w/o specifying the root and relative to the working directory

26
Q

Absolute Path

A

/ Indicated root folder

27
Q

>

A

Outputs and overwrites a file

28
Q

> >

A

Appends the output to a file

29
Q

<

A

Input

30
Q

STDIN

A

Standard Input
taking text as an input
0

31
Q

STDOUT

A

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
Q

STDERR

A

Standard Error
is invoked whenever a command faces an error, then that error message gets stored in this data stream
2

33
Q

grep

A

Filters data

34
Q

/etc/shadow

A

Contains encrypted passwords
Need to be Root or Root privilaged

35
Q

R

A

Read
4

36
Q

W

A

Write
2

37
Q

X

A

Execute
1

38
Q

Path

A

Environment variable
Instructs the shell to find an executable path
Paths are separated with : colons

39
Q

apt update

A

Updates package lists for upgrades

40
Q

apt upgrade

A

Installs all available package updates

41
Q

dmesg

A

Displays messages from the kernel ring buffer.
Diagnostic tool for failures

42
Q

dhclient

A

IP addresses can be changed, released, renewed, or removed

43
Q

/etc/network/interfaces

A

Configure network interfaces

44
Q

What 2 commands can start a service

A

Service
systemctl

45
Q

netstat

A

NOT installed by default

46
Q

Samba

A

Allows computers to communicate within the local network via SMB protocol. Port 137-139 and 445

47
Q

SCP

A

Secure Copy Protocol
Securely transfer files between remote & local stations
Can use flags to set parameters

48
Q

Bash

A

Bourne Again SHell
Scripting includes system commands.
File extension .sh
Automates tasks
First line #!/bin/bash

49
Q

$
#
“ “

A

Variable
Comment
Text

50
Q

sed

A

Command used to replace words

51
Q

chmod

A

Command to change permissions of a file or directory

52
Q

iptables

A

Protects from possible attacks
Firewall

53
Q

smb.conf

A

File to be edited to set up Samba services

54
Q

Fail2ban

A

Daemon that protects against brute force attacks

55
Q

What is used for math

A

let
expr
(( ))

56
Q

/etc/skel

A

Where templates for new users are stored

57
Q

cd/

A

Command to get to the root directory

58
Q

Apache

A

Web server