Unix Environment

Description

This quiz covers the basic Unix environment commands, as well as how to compile and run a C/C++ program.
Jared Sherrick
Quiz by Jared Sherrick, updated more than 1 year ago
Jared Sherrick
Created by Jared Sherrick over 7 years ago
12
1

Resource summary

Question 1

Question
The [blank_start]cat[blank_end] command reads one or more files and prints their contents to standard output.
Answer
  • cat
  • cd
  • pwd
  • ls

Question 2

Question
The [blank_start]cd[blank_end] command is built into the system shell and changes the current working directory.
Answer
  • cd
  • ls
  • pwd
  • cat

Question 3

Question
The [blank_start]pwd[blank_end] command displays the full pathname of the current directory.
Answer
  • pwd
  • cat
  • ls
  • cd

Question 4

Question
The [blank_start]ls[blank_end] 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.
Answer
  • ls
  • cat
  • cd
  • pwd

Question 5

Question
The [blank_start]more[blank_end] 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.
Answer
  • more
  • mkdir
  • rm
  • cat

Question 6

Question
The [blank_start]mv[blank_end] command allows you to move and rename files.
Answer
  • mv
  • rm
  • mkdir
  • cd

Question 7

Question
The [blank_start]rm[blank_end] command allows you to delete files.
Answer
  • rm
  • cd
  • mkdir
  • more

Question 8

Question
The [blank_start]rmdir[blank_end] allows you to delete any directory from your computer's pathway.
Answer
  • rmdir
  • mkdir
  • rm
  • more

Question 9

Question
The [blank_start]man[blank_end] command displays the online manual pages.
Answer
  • man
  • more
  • rmdir
  • cp

Question 10

Question
The [blank_start]cp[blank_end] command allows you to copy any file, and even rename it, if you so wish.
Answer
  • cp
  • cd
  • man
  • ls

Question 11

Question
Is the following Unix command for compiling a file correct? g++ -o APP_example.out APP_example.cpp
Answer
  • True
  • False

Question 12

Question
Assuming you have already compiled this .out file, will the following Unix command execute the .out file? /APP_example.out
Answer
  • True
  • False
Show full summary Hide full summary

Similar

Orbital Mechanics
Luke Hansford
Software Processes
Nurul Aiman Abdu
Module 1: Introduction to Engineering Materials
Kyan Clay
Mathematics
rhiannonsian
AOCS - Attitude and orbit control systems
Luke Hansford
Ordinary Differential Equations
rhiannonsian
audio electronics
Lillian Mehler
Building Structures
Niat Habtemariam
communication system
Lillian Mehler
Advanced Propulsion
Luke Hansford