Unix & Vim Flashcards
What is Unix?
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.
What is the UNIX Shell?
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.
What is a UNIX Machine?
A computer that is running UNIX or a version of UNIX as its operating system, e.g. the physical computer.
What is the Default Shell of linprog?
TC-Shell
True or False: Users can only interact with the Shell or the other user-level programs in a UNIX system.
True
What is the UNIX Kernel?
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.
What are the two wildcard characters used in UNIX commands?
? and *
How is the ? wildcard used?
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 is the * wildcard used?
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.)