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
Q

What does the command “who” return?

A

Who is using the system at that time

26
Q

What does the command “who am i” return?

A

What your personal account information is

27
Q

What does “pwd” do?

A

Prints the current working directory

28
Q

Files in Unix form a what?

A

An upside-down tree

29
Q

When logging into Unix, what directory are you put into?

A

Your personal “home directory”

30
Q

What does the command “ls” return?

A

List what is in your current directory including all files/directories

31
Q

What does the command “cd” do?

A

Changes directory with either an absolute or relative pathname

32
Q

What Unix commands display the contents of a file?

A

“more” , “cat” , and “less”

33
Q

Which of the display commands displays the contents of a file page by page?

A

“more” and “less”

34
Q

What does the command “mkdir” do?

A

Makes a directory in the current directory

35
Q

What does the command “mv” do? What is the syntax?

A

Move files from one directory to another

Syntax: { mv fileToMove destinationDirectory }

36
Q

What does the command “cp” do? What is the syntax?

A

Copy files from one directory to another

Syntax: { cp fileToCopy destination }

37
Q

What does the command “rm” do?

A

Removes files or directories

38
Q

What does the command “rm -i” do?

A

Removes files or directories, but asks for confirmation first

39
Q

What does the command “rmdir” do?

A

Removes a directory

40
Q

What does the command “Ctrl-c” do?

A

Interrupts the current task

41
Q

What does the command “man” do?

A

Shows the manual page of a command

42
Q

What does SFTP stand for and what is it used for?

A

Secure File Transfer Protocol - used to transfer files between your computer and your gaul account

43
Q

What is the difference between a “modal” and “modeless” editor?

A

“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
Q

What are the three modes of vi?

A

Input mode, Command mode, and Colon command mode

45
Q

In vi, what is the Command mode used for versus the Colon command mode?

A

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
Q

What is the difference between Ctrl-c and Ctrl-z?

A

Ctrl + C is used to kill a process. Ctrl + Z is used to suspend a process