unix

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

1/71

flashcard set

Earn XP

Description and Tags

description

Study Analytics
Name
Mastery
Learn
Test
Matching
Spaced

No study sessions yet.

72 Terms

1
New cards

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

Unix philosophy

2
New cards

The Unix operating system should provide a set of simple tools known as, what?

coreutils or core utilities

3
New cards

What is the name of the GNU Kernel?

Hurd or Linux for GNU/Linux

4
New cards

The POSIX shell is the same as which shell?

Bourne Shell

5
New cards

What is the default shell on GNU/Linux?

BASH (Bourne Again SHell)

6
New cards

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

False

7
New cards

What is the root of the filesystem?

/

8
New cards

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

Root user

9
New cards

What is the home directory of the root user?

/root

10
New cards

What is the administrator on a Linux system?

A user that is allowed to run commands as root

11
New cards

What is a device driver?

Lets the OS know how to access and use information from that device

12
New cards

What are two types of device drivers?

Kernel-Mode and User-Mode

13
New cards

Where are log files kept?

/var/log

14
New cards

Where are system configuration files located?

/etc

15
New cards

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

False

16
New cards

What is the ~ short for?

Home directory

17
New cards

What is a single dot short for?

The current working directory

18
New cards

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

/

19
New cards

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

System calls

20
New cards

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

ausyscall --dump

21
New cards

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

glibc (GNU C library)

22
New cards

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

elf

23
New cards

What is the GNU C library called?

glibc

24
New cards

What does the mmap system call do?

Maps a file to memory

25
New cards

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

False

26
New cards

What is the command to list loaded kernel modules?

lsmod

27
New cards

What does the .ko file extension stand for?

Kernel Object

28
New cards

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

-ef, -elf, aux

29
New cards

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

Daemon

30
New cards

What are the three types of login shells?

BASH, GUI, SSH

31
New cards

What shell actively reads commands from user input?

Interactive Shell

32
New cards

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

-l or --login

33
New cards

What argument opens a BASH login with the "bash" command?

- or -l or --login

34
New cards

What is the restricted BASH shell called?

rBASH

35
New cards

What command is used to print environmental variables?

printenv or env

36
New cards

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

PATH

37
New cards

SSH's most notable applications are what?

Remote login and command line execution

38
New cards

Name one file transfer protocol based on SSH.

SFTP (SSH File Transfer Protocol)

39
New cards

What is an administrator account?

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

40
New cards

What type of account do users like Apache have?

Service account

41
New cards

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

System account

42
New cards

What file contains user information?

/etc/passwd

43
New cards

Where are user password hashes stored?

/etc/shadow

44
New cards

Where are local user configurations stored?

~/.bashrc

45
New cards

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

Principle of Least Privilege

46
New cards

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

Individual accounts

47
New cards

What are some of the basics of password management?

Passwords should be changed periodically, do not reuse passwords, required complexity

48
New cards

What command is used to check network connectivity?

ping

49
New cards

What command is used to display the routing table?

route

50
New cards

What information do you need to configure an IP address?

The IP address, subnet mask, and default gateway.

51
New cards

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

networkctl, nmtui, and nmcli

52
New cards

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

Daemon

53
New cards

Samba’s functionality comes from what two protocols?

SMB and CIFS

54
New cards

What does Samba do?

Provides file and print sharing between different operating systems.

55
New cards

Samba security modes are set in which file?

smb.conf

56
New cards

What are the two security modes in Samba?

share-level and user-level

57
New cards

What protocol does LDAP sit on top of?

TCP/IP

58
New cards

What are two common implementations of LDAP?

Active Directory for Windows and OpenLDAP for Linux

59
New cards

The majority of Apache servers run on what system?

Linux

60
New cards

Where is the index.html file located? (for Apache)

/var/www/html

61
New cards

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

> for request and < for response

62
New cards

What code means everything worked correctly?

200 OK

63
New cards

Why study SQL in this section?

Backbone of Apache, SQL Injection Vulnerabilities

64
New cards

Why study JavaScript in this section?

Frontend of Apache, JavaScript Injection Vulnerabilities

65
New cards

SystemV has run levels, what did SystemD migrate too?

Targets

66
New cards

In SystemV Linux what is the centralized configuration file?

/etc/inittab

67
New cards

What is rsyslog?

Rocket Fast Syslog Server

68
New cards

What command is used for querying systemd for logs, and has taken a good part of the old syslog?

journalctl

69
New cards

What command is used to edit the crontab?

crontab -e

70
New cards

What is each field of the crontab?

Minute, hour, day of month, month of year, day of week, command/script to execute

71
New cards

What is the Debian package manager called?

APT (Advanced Package Tool)

72
New cards

A package is a container for ?

metadata