Unix/Linux Fundamentals

0.0(0)
studied byStudied by 29 people
learnLearn
examPractice Test
spaced repetitionSpaced Repetition
heart puzzleMatch
flashcardsFlashcards
Card Sorting

1/69

flashcard set

Earn XP

Description and Tags

Flashcards based on lecture notes on Unix/Linux operating systems.

Study Analytics
Name
Mastery
Learn
Test
Matching
Spaced

No study sessions yet.

70 Terms

1
New cards

Unix philosophy

Unix systems are characterized by a modular design that is sometimes called the what?

2
New cards

Coreutils

The unix operating system should provide a set of simple tools known as?

3
New cards

Linux

What is the name of the GNU kernel?

4
New cards

Bourne Shell

The POSIX shell is the same as which shell?

5
New cards

Bourne again shell (BASH)

What is the default shell on GNU/Linux?

6
New cards

False

True or False: The CLI, terminal, and shell are just different names for the same thing.

7
New cards

/

What is the root of the filesystem?

8
New cards

Root

What is the name of the user that lives in kernel land?

9
New cards

/root

What is the home directory of the root user?

10
New cards

A user that is allowed to run commands as root

What is the administrator on a Linux system?

11
New cards

Interface that allows software to interact with external hardware.

What is a device driver?

12
New cards

Kernel-mode device drivers and User-mode device drivers

What are two types of device drivers?

13
New cards

/var/log

Where are log files kept?

14
New cards

/etc

Where are system configuration files located?

15
New cards

False

True or False: the /usr/bin directory contains required binaries.

16
New cards

The home directory of the user

What is the ~ for?

17
New cards

The current directory

What is a single dot short for?

18
New cards

/

Where does the absolute path for a file or directory start?

19
New cards

System calls

What is the fundamental interface between an application and the Linux kernel?

20
New cards

ausyscall —dump | less

What is the command to pull up system calls by number on a Linux machine?

21
New cards

glibc

What is the name of the C library on GNU/Linux called?

22
New cards

elf

What is the file type for executable files in Unix/Linux?

23
New cards

glibc

Wha is the GNU C library called?

24
New cards

Used to map the file to memory

What does the mmap system call do?

25
New cards

False

True or False: a reboot is required when one installs an LKM

26
New cards

lsmod

What is the command to list loaded kernel modules?

27
New cards

Kernel object

What does the .ko file extension stand for?

28
New cards

-ef

What are some of the common arguments used with the ps command?

29
New cards

Daemons

What is a type of process that runs in the background without any human interaction?

30
New cards

Login, interactive, and non-interactive

What are the three types of login shells?

31
New cards

Interactive

What shell actively reads commands from user input?

32
New cards

-, -l, —login

What argument is used with the “su” command to open a BASH login?

33
New cards

-l, —login

What argument opens a BASH login with the “bash” command?

34
New cards

rbash

What is the restricted BASH shell called?

35
New cards

env or printenv

What command is used to print environmental variables?

36
New cards

PATH

What environmental variable is checked when we execute a command in the shell?

37
New cards

Remote login and command line execution

SSH’s most notable applications are what?

38
New cards

Secure copy (scp)

Name one file transfer protocol based on SSH.

39
New cards

A regular user that is allowed to run commands as root with the sudo command

What is an administrator account?

40
New cards

Service accounts

What type of account do users like Apache have?

41
New cards

System account

What type of accounts belong to users like sys or a daemon?

42
New cards

/etc/passwd

What file contains user information?

43
New cards

/etc/shadow

Where are user password hashes stored?

44
New cards

~/.bashrc

Where are local user configurations stored?

45
New cards

Principle of least privilege

What restricts the rights and access of a user to the minimal amount required to perform their role?

46
New cards

Individual accounts

What element of user management says administrators of a system should not share accounts?

47
New cards

Require the password to be changed periodically, do not allow the reuse of old passwords, require that they be of some level of complexity

What are some of the basics of password management?

48
New cards

ping

What command is used to check network connectivity?

49
New cards

route

What command is used to display the routing table?

50
New cards

IP of Host, IP Default Gateway, Subnet or CIDR

What information do you need to configure an IP address?

51
New cards

Networkctl, nmtui, nmcli

What are three command line tools used to interact with Networkd?

52
New cards

Daemon

The d after a process name in Networkd stands for what?

53
New cards

SMB & CIFS

Samba’s functionality comes from what two protocols?

54
New cards

smb.conf

Samba security modes are set in which file?

55
New cards

Share-Level & User-Level

What are the two security modes in Samba?

56
New cards

TCP/IP

What protocol does LDAP sit on top of?

57
New cards

Active directory & OpenLDAP

What are two common implementations of LDAP?

58
New cards

Linux

The majority of Apache servers run on what system?

59
New cards

/var/www/html

Where is the index.html file located?

60
New cards

> & <

What are the symbols used to denote request and response headers?

61
New cards

200 OK

What code means everything worked correctly?

62
New cards

Targets

SystemV has run levels, what did SystemD migrate to?

63
New cards

/etc/init-

In SystemV Linux, what is the centralized configuration file?

64
New cards

apt

What is the Debian package manager called?

65
New cards

metadata

A package is a container for?

66
New cards

crontab -e

What command is used to edit the crontab?

67
New cards

Minute of the hour, hour of the day, day of the month, month of the year, day of the week

What is each field of the crontab?

68
New cards

tar -xf

How do you unzip a Tar file?

69
New cards

gunzip

How do you unzip a .gz file?

70
New cards

cat <file> | egrep -o '([0-9]{1,3}\.){3}[0-9]{1,3}' | sort | uniq -c

Command to utilize when trying to find and count how many times an IP is listed: