Jared Sherrick
Quiz by , created more than 1 year ago

This quiz covers the basic Unix environment commands, as well as how to compile and run a C/C++ program.

12
1
0
Jared Sherrick
Created by Jared Sherrick over 7 years ago
Close

Unix Environment

Question 1 of 12

1

Select from the dropdown list to complete the text.

The ( cat, cd, pwd, ls ) command reads one or more files and prints their contents to standard output.

Explanation

Question 2 of 12

1

Select from the dropdown list to complete the text.

The ( cd, ls, pwd, cat ) command is built into the system shell and changes the current working directory.

Explanation

Question 3 of 12

1

Select from the dropdown list to complete the text.

The ( pwd, cat, ls, cd ) command displays the full pathname of the current directory.

Explanation

Question 4 of 12

1

Select from the dropdown list to complete the text.

The ( ls, cat, cd, pwd ) command lists all files in the directory that match the name. If name is left blank, it will list all of the files in the directory.

Explanation

Question 5 of 12

1

Select from the dropdown list to complete the text.

The ( more, mkdir, rm, cat ) command displays the file called name in the screen. The RETURN key displays the next line of the file. The spacebar displays the next screen of the file.

Explanation

Question 6 of 12

1

Select from the dropdown list to complete the text.

The ( mv, rm, mkdir, cd ) command allows you to move and rename files.

Explanation

Question 7 of 12

1

Select from the dropdown list to complete the text.

The ( rm, cd, mkdir, more ) command allows you to delete files.

Explanation

Question 8 of 12

1

Select from the dropdown list to complete the text.

The ( rmdir, mkdir, rm, more ) allows you to delete any directory from your computer's pathway.

Explanation

Question 9 of 12

1

Select from the dropdown list to complete the text.

The ( man, more, rmdir, cp ) command displays the online manual pages.

Explanation

Question 10 of 12

1

Select from the dropdown list to complete the text.

The ( cp, cd, man, ls ) command allows you to copy any file, and even rename it, if you so wish.

Explanation

Question 11 of 12

1

Is the following Unix command for compiling a file correct?

g++ -o APP_example.out APP_example.cpp

Select one of the following:

  • True
  • False

Explanation

Question 12 of 12

1

Assuming you have already compiled this .out file, will the following Unix command execute the .out file?

/APP_example.out

Select one of the following:

  • True
  • False

Explanation