Week 1: Intro / Unix Basics / Editors Flashcards

1
Q

What is a “system”

A

What is controlling the computer, in most cases the operating system

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

What is programming?

A

Giving the computer instructions, what to do

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

What is a computer? What is it aware of?

A

A computer is simply an electronic device that is aware of only the presence and absence of a charge

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

What is machine language?

A

Series of 1’s and 0’s that the computer understands

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

What is a computer at its core?

A

An IPOS (Input Processing Output Storage)

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

What does IPOS stand for

A

Input Processing Output Storage

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

Without an OS what is a computer?

A

A computer is simply a program and hardware where the program handles everything

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

What does memory store?

A

The presence or absence of a charge in a specific place in the computer

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

What can computers do in essence?

A

Add numbers together

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

What is an Operating System?

A

The operating system is a buffer between the program and the hardware

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

What are the benefits of an OS?

A
  • Manages the computer so programming and using it is easier
  • “Hides” the hardware (hides how the hardware is utilized)
  • The OS facilitates resource sharing so multiple people can use the same computer at once
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

What is time sharing?

A

Different processes are run for some small amount of time in turns in the computer. Facilitated by the OS.

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

With time sharing, each program believes what?

A

That it has the whole computer to itself

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

What does SVR4 stand for?

A

System V Release 4 (UNIX)

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

Was Unix designed to be user-friendly or user-helpful?

A

User-helpful

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

In Unix, more complex tasks can be accomplished by…

A

Combining tools together

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

What are Unix utilities?

A

Standard tools/applications that are used so often that they become a part of Unix

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

What is a Shell?

A

An interface between users and the kernel

A command line interpreter (CLI)

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

What is a Kernel?

A

Manages the processes and resources

Controls and hides the hardware

20
Q

Who was the original Unix writer and when?

A

Linus Torvalds in 1991

21
Q

What is the command to login to Unix?

A

ssh compute.gaul.csd.uwo.ca

22
Q

What is the name for the super user account?

A

“root”

23
Q

The “root” user has

A

Absolute control over the system

24
Q

What are the two commands to logout of Unix?

A

“exit” or “logout”

25
What does the command "who" return?
Who is using the system at that time
26
What does the command "who am i" return?
What your personal account information is
27
What does "pwd" do?
Prints the current working directory
28
Files in Unix form a what?
An upside-down tree
29
When logging into Unix, what directory are you put into?
Your personal "home directory"
30
What does the command "ls" return?
List what is in your current directory including all files/directories
31
What does the command "cd" do?
Changes directory with either an absolute or relative pathname
32
What Unix commands display the contents of a file?
"more" , "cat" , and "less"
33
Which of the display commands displays the contents of a file page by page?
"more" and "less"
34
What does the command "mkdir" do?
Makes a directory in the current directory
35
What does the command "mv" do? What is the syntax?
Move files from one directory to another | Syntax: { mv fileToMove destinationDirectory }
36
What does the command "cp" do? What is the syntax?
Copy files from one directory to another | Syntax: { cp fileToCopy destination }
37
What does the command "rm" do?
Removes files or directories
38
What does the command "rm -i" do?
Removes files or directories, but asks for confirmation first
39
What does the command "rmdir" do?
Removes a directory
40
What does the command "Ctrl-c" do?
Interrupts the current task
41
What does the command "man" do?
Shows the manual page of a command
42
What does SFTP stand for and what is it used for?
Secure File Transfer Protocol - used to transfer files between your computer and your gaul account
43
What is the difference between a "modal" and "modeless" editor?
"modal" editors have modes which are generally input mode and command mode (examples: vi and ed) "modeless" editors have only one mode where positioning and text manipulation have special key sequences (examples: emacs or pico)
44
What are the three modes of vi?
Input mode, Command mode, and Colon command mode
45
In vi, what is the Command mode used for versus the Colon command mode?
The command mode is used for editing, cursor placement, deleting multiple lines etc., and Colon command mode is used for saving, exiting, and quitting
46
What is the difference between Ctrl-c and Ctrl-z?
Ctrl + C is used to kill a process. Ctrl + Z is used to suspend a process