Unix & Vim Flashcards

1
Q

What is Unix?

A

UNIX is a command line based multi-user multitasking operating system.

It is the core of various operating systems (Mac OS, iOS, Ubuntu/Mint/Red Hat Linux, ChromeOS, AndroidOS, OrbisOS [PlayStation], etc.) that allows the user to communicate with the system to perform various tasks.

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

What is the UNIX Shell?

A

The program that is running when you log into the system and acts as the interface between the user and the core of the system.

It is the middleman between the user and the machine.

The user types in commands at the Shell Prompt and the Shell will hand the command off to the system to be executed.

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

What is a UNIX Machine?

A

A computer that is running UNIX or a version of UNIX as its operating system, e.g. the physical computer.

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

What is the Default Shell of linprog?

A

TC-Shell

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

True or False: Users can only interact with the Shell or the other user-level programs in a UNIX system.

A

True

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

What is the UNIX Kernel?

A

The ‘core’ of the operating system. It is the main program that controls the operation of all the individual users, their processes, and the system processes.

It is the “brain” or command center of the computer.

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

What are the two wildcard characters used in UNIX commands?

A

? and *

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

How is the ? wildcard used?

A

It can be substituted in a filename and it will represent any character in that position.

mv prog?.cpp ./temp

In the above command, any .cpp file in the current directory that starts with ‘prog’ and ends with any single character (prog1.cpp, prog2.cpp, progA.cpp, etc.) will be moved to the temp folder in this directory.

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

How is the * wildcard used?

A

It’s a more powerful version of the ? wildcard. It represents any number of characters following the *, rather than just a single character.

mv temp/prog* .

The above command will move any file beginning with ‘prog’ to the temp folder, no matter what it is is (prog1.cpp, program.cpp, programming.pdf, programs.csv, etc.)

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