Week Two Flashcards

1
Q

What is UNIX?

A

Unix is an operating System.

  • Controls Hardware
  • Everything is a file
  • Unix is also a specification
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

Explain the Unix Philosophy

A
  • Make each program do ONE thing well
  • Expect output of one program to be the input of another program
  • Design + build software to be tried EARLY
  • Use tools to lighten a programming task
  • No output is GOOD. Output means an error.
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

Standard Components found in an operating system?

A

Kernel, System Call interface, User Interface.

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

Default standard Input/Output

A

stdin (keyboard, standard input) stdout (screen, standard output) sterr (screen, standard error)

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

Does unix have segmented directories?

A

Unix has no segmented directories, for example, in a Windows environment, you might have C, D drive. Linux is a tree-based system.

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

What is a ‘here’ document?

A

A ‘here’ document is used to redirect output. This ‘<

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

What is a ‘hard’ link?

A

Every document has at least one hard link and that is to itself. Hard links refer to the physical location of a file.

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

What is a ‘soft’ link?

A

A soft link is similar to a shortcut in windows. It is a ‘symbolic link’.

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

What kind of systems can Linux run on?

A

Linux can run on a wide variety of hardware, including arm systems, raspberry pi & Desktop computers.

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

Acronyms GUI / CLI?

A

Graphical User Interface | Command Line Interface

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

Is Linux a Unix?

A

Technically, no. Opengroup oversees licensing for Unix. Posix is the standard to which it must adhere to be ‘unix’ compliant. So while Linux is Posix compliant, it is not to be ‘unix’ licensed.

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

What is POSIXs?

A

POSIX is the standard used to specify if something is unix compliant.

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

What is the Unix kernel?

A

The unix kernel is loaded into memory during the booting process and is always residing in physical memory. It is a process that must always be running. It is responsible for:

  • CPU scheduling
  • Memory for processes
  • Managing file systems
  • Interacting with devices
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
14
Q

What is dev/null

A

It is a void - black hole

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

When should cat be used?

A

If cat is not necessary, do not use it. It takes up extra resoucres.

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

What is a pipe?

A

Pipes are used to chain commands together.

ls -1a | wc -1

17
Q

What does a dot before a file indicate in the linux system?

A

A dot indicates a hidden file, these are often configuration files.

18
Q

What is a shell?

A

A shell is a command interpreter. It is a layer between system function calls and the user. It is an application that gives the user the capacity to give commands to the operating system.

19
Q

What is bash?

A

Bash is a unix shell. A command-line interface for interacting with the operating system. Bash is -not- your terminal, but it does run inside your terminal.

20
Q

ls -a

A

The -a option will show you additional hidden files (dot files).

21
Q

Piping - ‘>’

A

This will redirect the output of a command to a file on disk. This will OVERWRITE if the file already exists so be careful.

22
Q

Piping - ‘»’

A

This will append to an existing file on disk.

23
Q

Piping - ‘

A

This will read the input from a disk file rather than the user.

24
Q

Piping - ‘|’

A

This will pass the output of one command to the next for further processing.

25
Q

What are the permission triads?

A

The first group represents the owner, the second group represents the group and the third represents everyone else. In each group, you can set permissions for read, write and execute. In octol, 0000 represents no permissions at all.