Basic C
Simple Linux Commands
vim basics
Bash (a sh shell)
???
100

The C compilation system on Linux.

What is gcc?

100

A simple command that will print the contents of each file argument on the terminal.

what is cat?

100

In order to write text using vim, you must be in this mode.

What is insert mode?

100

This powerful Unix shell and command language is the default on most Linux distributions. 

What is bash? I bet your command line interpretter is also bash. Type "$ echo $SHELL" in the terminal to check.

100

A request from a program to the OS to do something on its behalf.

What is a system call?

200

What will be displayed after executing ./a.out?

what is false?

200

The phrase displayed in the terminal upon executing the 4th command (cat goodbyeWorld.txt)

What is "Hello, World!"?

200

In this mode, you can select text using the movement keys.

What is visual mode? To enter this mode, press v. 

200

Executing the following bash command will display what?

$ echo $(( (2*25)**0 ))

what is 1?

200

The Linux kernel was developed as a free and open source alternative to this operating system.

What is UNIX?

300

Executing the third command (./a.out) dispays this.

what is h?

300

After executing chmod, someone with group access has permission to do this to newFile.

What is read?

300

We all make mistakes. Pressing this key will undo your last change.

What is u? What if pressing u was a mistake? You can redo the change by pressing ctrl+r.

300

Assume bash reads a five word command typed by the user. Bash will assume the first word in the command is this.

What is the program to be executed?

300

A computer architecture design consisting of a control unit, arithmetic and logic unit, memory unit, registers and inputs/outputs.

What is Von Neumann architecture?

400

What will be displayed after executing ./a.out in the following example?

What is 10 5?

400

This command will identify the location of a program.

What is which?

400

To save changes and quit, press these keys.

What is :wq? This is very important to commit to memory.

400

The output from executing the ex.sh file.

What is 6?

400

A compiler is a program. Its job is primarily to translate source code (written in a language like C) into this.

What is other programs? 

By programs, I mean machine code that can be executed.

500

What will be displayed after executing ./a.out in the following sequence?

What is 10 8 8?

500

Assume that the current directory you are in has a grandparent, parent, and child directory. After executing the following command, you will be in this directory.

$ cd ../../parent/current/child/./../

What is the current directory?

500

Pressing this key in normal mode moves your cursor to the end of the file.

What is G? Also, pressing gg will move your cursor to the top of the file.

500

This environment variable consists of a sequence of directory names separated by colons. It is of special importance to bash as it tells bash where to look for a program that you have requested.

What is PATH?

500

A core component of an operating system that facilitates interactions between hardware and software.

What is a kernel?