UNIX / Linux Basics Flashcards

1
Q

What are priced packages of software built on top of Linux called

A

Distributions, like Ubuntu

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

What is free software

A

Software that can be USED at no cost (but not necessarily acquiring a copy by purchasing)

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

When did UNIX become developed and when did it become available and where

A

early-70s, 1970; mid-70s, 1975, initially at universities

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

What is BSD

A

Berkeley Software Distribution (University of California)

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

When was Linux created

A

Early 90s, 1991

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

What is the official computer environment standards and when were they published

A

POSIX (Portable Operating System Interface for Computer Environments), is a section of IEEE that defines the API (Application Programming Interface), the shell, and the OS utility interface, and was written in the late1980s (1988)

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

Linux is not good for peripherals

A

False - Linux support is often first to support peripherals or interface cards. This is however not the case for graphics cards and the like as those companies do not release specs nor source code often or ever.

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

What are binaries

A

Files that are compiled into a pattern that the kernel would recognize as an executable (as opposed to source code or user data), making it so that the kernel would begin following those instructions when running its open-file procedure and identifying this (running a program). They are called binaries because the files are “compiled” into machine instructions for the kernel to follow bit-by-bit, achieved by removing all of the “text” that was only there for humans to read and converting the file contents to bitwise instructions.

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

What is a hypervisor

A

A Virtual Machine Monitor (VMM)

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

What is the software that manages virtual machines called

A

VMMs (Virtual Machine Monitors) or Hypervisors

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

What are the 9 advantages of VMs

A
  1. Isolation Safety
  2. Isolation Security
  3. Maximize Usage / Minimize Power Consumption
  4. Develop Portability
  5. Test Anything
  6. Server Variety
  7. Simulate Networks
  8. Sandbox Freedom
  9. Quick-Boot Snapshots
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

What type of OS is Linux

A

GENERIC because it is not written for specific hardware (not proprietary)

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

Why is Linux portable and what does portable mean

A

Portable software means it can run on different machines that have different hardware. Linux is portable because it is written in C, which is a machine-independent language.

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

Is UNIX portable

A

Not initially, because it was written in assembly language, which is machine-dependent

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

Why is C powerful

A

It gives the ability to write machine-independent programs to promote portability

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

What is the difference between a job and a process

A

Jobs have processes, but processes don’t necessarily come from jobs.
Jobs are higher-level, processes are lower-level.

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

What is FHS

A

Linux’s Filesystem Hierarchy Standard

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

What is a shortcut called in Linux

A

A Link

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

What is a shell

A

A command-line interpreter that acts as an interface between the user and the OS by reading the user input and executing them as commands

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

What are the 4 most popular shells

A
  1. Bourne Again Shell (BASH)
  2. Debian Almquist Shell (DASH)
  3. TC Shell (TCSH)
  4. Z Shell (ZSH)
21
Q

What is a file that is a series of shell commands called

A

For Linux they are called shell scripts
For Windows they are called batch files

22
Q

What is the functionality called that uses * to find filename matches

A

Ambiguous file references

23
Q

What is the characteristic of Linux’s I/O regarding devices

A

Linux I/O is “device independent”, meaning that input or output can be pulled from or sent to any device due to devices being interpreted as files along with Linux’s high-level redirection functionality

24
Q

Are shells interpreters

A

Yes, because they do not compile programs (the files being ran are not converted into binaries)

25
Q

What does BASH do to fix the slowness of interpreters

A

It can compile functions into memory

26
Q

What is a kernel

A

Also called an OS, controls the hardware of a computer and provides an environment that programs can run on

27
Q

What are the commands to the kernel called and what are the 3 layers that can execute them

A

System calls. Shells, library routines, and applications

28
Q

What are library routines

A

Collections of system call functions

29
Q

What is the terminal window called

A

Command-Line Interface (CLI), a “textual interface”

30
Q

What is the file that contains the text you see BEFORE you log in

A

/etc/issue

31
Q

What is the file that contains the text you see AFTER you log in

A

/etc/motd

32
Q

When logging in as x@y, what is x and what is y?

A

x is the username, y is the system

33
Q

Why is it a good idea to exclude a GUI for a server

A

GUIs add more tasks, so its wasteful and makes the system more vulnerable

34
Q

What is pretty print called

A

Pseudographical Interfaces

35
Q

What is the most dangerous way to stop a program or job, how do you do it, and why

A

Using the KILL command as follows (if the job number is 3):
kill -KILL %3
This is dangerous because it ALWAYS stops the program no matter what, and does not allow the program to run any procedures that it typically would run when the program is signaled to stop, leading to corruption

36
Q

What order of commands should you do when trying to stop a program

A
  1. Suspend
  2. Quit
  3. Kill
37
Q

What username is the “super duper admin”

A

root

38
Q

What is sudo

A

A way for you to use root privileges, like su, but you specifically use your own password

39
Q

How do you get help

A

Use the “man man” command, or specify the utility replacing the 2nd man

40
Q

What is a reason most people forget of not being able to log in

A

The filesystem is full!

41
Q

What are technically the only 2 chars that cannot be on a filename

A

\ and [NULL]

42
Q

Where is your home directory defined

A

/etc/password

43
Q

What is it called when you use \ to use a special char as its literal char

A

Quoting or escaping

44
Q

When you give Linux a command, how does the shell know what it means

A

It searches the $PATH list of directories that contain programs where the command given might exist as one

45
Q

What state is the shell in while the process of a command is being executed

A

sleep

46
Q

What does the shell do with command arguments and what happens if its wrong

A

The shell only passes them to the utility program, and what happens is up to the code in the program. Sometimes bad arguments are completely ignored and the program runs anyways.

47
Q

How big is a block

A

512 bytes

48
Q
A