Topic 2 - Unix Basics Flashcards
Every machine including computers that is used by human beings can be thought of as two components: (Give the unix version of answer too)
1) the interface (terminal) 2) everything else (host)
A terminal has two jobs:
1) Accepting input
2) Generating output
What’s the name of the super user account in a Unix system?
“root”. In Windows: “Administrator”
In Unix, what happens when you enter a command and hit enter?
Contents of the command line are sent to the shell. The shell searches for an executable program that matches the name of the command - if it is found, it executes the program using the provided options and arguments. Otherwise, it displays an error message
In the command-name, each option and each argument are separated by ____?
At least one or
Options are identified by:
Hyphen followed by a single letter or number
Multiple options can be ______ together using a single ______?
Concatenated, hyphen.
Editors in Unix come in two general flavors:
1) Mode editors 2) Mode-less editors
Input mode allows for___?
Entry of text.
Command mode allows for___?
Positioning within file and allows more sophisticated text modification.
What is “ed” ?
ed is the original line editor, later on extended to “ex”
Describe “ed” and “ex”
- Does not give you a local or screen picture of what is in your file (people dislike it) - Has the ability to make massive changes with one command - May of its capabilities have been incorporated into vi and emacs
What is “sed”?
A stream editor - used to perform basic text transformations on an input stream (input stream can be the output of another program)
Describe “vi” and “vim”
Screen editors. Have 3 modes: 1) Command mode 2) Colon mode 3) Input mode Vi and vim start in the command mode.
Describe Mode-less editors.
have only one mode: WYSIWYG: What you see is what you get. Examples: edit, edit, pico, emacs, xemacs