2. Unix Flashcards

1
Q

T/F Commands are case sensitive

A

T

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

Describe the flow of information between functioning units of a computer

A
  1. Input accepts info (from user or other machines)
  2. info passed to memory then the CPU where information is transformed
  3. Processed output is returned to the user
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

What are the two main divisions in memory and the Processing unit?

A

Memory:

  1. primary/main storage: program storage during execution
  2. secondary storage

CPU:

  1. arithmetic logic unit: location of arithmetic & logic operations
  2. Control unit: controls operation order; accesses, interprets and directs instructions
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

What are the 3 parts of the unix operating system?

A
  1. kernel : control
  2. shell: interface
  3. programs: things executed thru shell, via kernel to logic unit

The OS is the suite of programs that make a computer work

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

What is RAM?

A

The memory that a computer uses when executing a program

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

What is the Kernel & what does it do?

A

Is the control hub of the OS

  1. allocates time and memory to programs
  2. Handles the filestore & communications in response to system calls
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

What is the Shell and what does it do?

A

Is the interface between the user & kernel

It interprets cmd lines from the user and arranges for their execution. The commands themselves are programs

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

What previous shells does the bash shell combine?

A
  • bourne shell (sh)
  • C shell (csh)
  • Korn shell (ksh)
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

What are some useful features of the Bash shell

A
  1. TAB completion

2. History of commands

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

T/F Everything in UNIZ is either a file or a process

A

T

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

What is a process?

A

an executing program identified by a unique process identifier (PID)

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

What is a file and give examples

A

Is a collection of data created by users via text editors, running compliers etc.

ex. script, directory, machine readable file

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

Describe the process from standard in to out

A

standard inputs are passed to the program and executed. The processed data is returned through standard out or standard error is something went wrong

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

What is stream in and out

A

The process of passing an output as the next input and so on

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

What is ssh?

A

A cryptographic network protocol for secure data communication, remote cmd-line login & cmd execution, other secure network services between 2 networked computers
A private key is used to encrypt and decrypt

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

What does this cmd do:

$scp file1 mhirst@orca1.bcgsc.ca:/home/mhirst/ [enter]

A

Copies a local file named file1 onto the server and into /home/mhirst dir

17
Q

mhirst@micb405 /]$ ls [enter]

[mhirst@micb405 /]$ ls -a [enter]

A

list contents in working dir

-a shows everything including hidden files

18
Q

what does mkdir do?

A

Makes a directory

19
Q

what does “.” and “..” refer to?

A

”.” current directory (relative path)

“..” parent of the current dir

20
Q

What does the 10 character string next to a file indicate?

A
file system security 
1. if a dir or not
2 -4: user permissions
5-7: group permissions
8-10: all other permissions
21
Q

In a file security system was does r, w, x, or - mean?

A

r: can list files in the dir
w: can delete files in the dir
x: can access files in the fir and read if u have permissions on individual files
- : no permission set