Linux Midterm

A detailed illustration of a Linux terminal with command lines, open man pages, and icons representing various Linux commands and tools, with a stylish and tech-savvy background.

Linux Midterm Quiz

Test your knowledge of Linux with this comprehensive midterm quiz designed for students and enthusiasts alike. This quiz covers essential commands, concepts, and licensing that every Linux user should know.

  • 40 questions
  • Multiple choice format
  • Interactive and educational
40 Questions10 MinutesCreated by TypingCat42
To go to the end of an info page, press:
]
N
END
N
To go to the next match of a search on a man page, press:
}
N
N
]
When interpreting the SYNOPSIS of a command found on a man page, the "|" means:
The items it separates cannot be used together
The items it separates can be used together
After performing a search, you can use the ____ key to return to a previously found match.
D
U
N
N
To move a page forward one at a time while viewing a man page, press the following:
A
M
Spacebar
Enter
The ls command without options or arguments...
...generates an error as this command requires arguments
...prompts for a directory to list
...lists the contents of a user's home directory
...lists the contents of the current directory
Which option can be used with the rm command to prompt before deleting?
L
A
-i
-P
The rm command can delete multiple files at once. True or False?
True
False
Which of the following commands can be used to rename a file?
Rn
Mv
Cp
Name
You try to compress a file that is already compressed. Which of the following statements is true?
The file changed while you were compressing it.
The compression algorithm needs to be set to the "current compressed" mode for it to be compressed further.
The file will actually be uncompressed.
The file will be deleted.
The file will not be compressed any further than it already was.
The touch command can be used to: (choose two)
Change a file's name
Create new files
Update the time stamp of existing files
Change ownership of a file
Which of the following commands can be used to compress a file?
Cat
Gzip
Bzip2
Bunzip2
Zip
The three main modes of tar are: (choose three)
List
Copy
Create
Extract
Compress
In the command tar -czf foo.tar.gz bar , what is the purpose of the f flag?
Specifies extra compression is to be used
Tells tar to print the name of each file as it is processed
Tells tar to read from the file that follows the flag
Tells tar to copy files, and not directories
Tells tar to write to the file that follows the flag
Which two commands do the same thing? (choose two)
Tar -c foo | gzip > foo.tar.gz
Tar -tzf foo.tar.gz
Tar -xzf foo.tar.gz
Tar -czf foo.tar.gz foo
Tar -x foo | gzip
Which option for the wc command will print the total number of words in a file?
-C
-L
-w
-l
Which command can be used to print line numbers?
Num
Sort
Nl
Ln
The command echo "text" > file.txt will create file.txt if it does not already exist. True or False?
True
False
The command echo "text" > file.txt will not overwrite file.txt if it already exists. True or False?
True
False
The command echo "text" >> file.txt will not overwrite file.txt if it already exists. True or False?
True
False
Software is backward compatible if:
People still use old versions
If the next version still works the same way
It works access Linux/Mac/Windows
It can be upgraded without downtime
It still supports old file formats or applications
Apple's OS X is: (choose three)
Primarily used to manage network services
Derived from Linux
Able to natively run Windows binaries
Derived from FreeBSD
Only compatible with Apple hardware
Certified as UNIX compatible
Microsoft Windows: (choose three)
Has a Linux compatibility mode
Has powerful scripting capabilities
Has a new desktop version every year
Has a short maintenance cycle
Has built in virtualization
Come in desktop and server variants
Other commercial Unixes: (choose two)
Do not run the GNU tools
Are almost obsolete
Are tied to their vendor's hardware
Use completely different commands than Linux
Are UNIX certified
When choosing a distribution of Linux, you should consider: (choose five)
Whether or not the distribution is under active developement
The maintenance cycle of the distribution
Popularity on social media
Which distributions are supported by the software you need to run
If you need support on the distribution itself
Which management tools are provided by the distribution
The difference between the GPL and LGPL licenses are:
LGPL was made by the OSI while the GPL was made by the FSF
LGPL applies to web services
LGPL allows you to distribute the software in binary-only form
LGPL allows linking of non GPLed software
LGPL is shorter than GPL
Permissive free software licenses: (choose three)
Include the GPLv2 and BSD
Are not approved by the FSF
Are not approved by the OSI
Can allow software to be used inside closed source software
Don't have a copyleft provision
The Creative Commons version of Public Domain licensing is:
No Rights Reserved
Attribution-NonCommercial
Attribution
NoAttribution-ShareAlike
Your company makes a hardware firewall that runs a custom Linux kernel. What are your obligations under GPLv2?
You must make your hardware designs available
You must ensure your custom kernel runs on a regular Intel machine
You must make the source to your custom web interface available
There are no requirements
You must make the source to your kernel available
Participating in open source projects can improve your technical skills, even if it is not your day job. True or False?
True
False
What are tradeoffs of increasing the level of privacy you have in your web browser? (choose two)
Websites may load slower
You may have to explicitly permit some cookies to be saved
Images won't load properly
Sites may not work properly
You may get viruses
Which of the following is a tool that helps you anonymize your Internet browsing?
Web proxy
CookieCleaner
Iptables
The onion router
AnonFirefox
Social network "like" buttons can track your activity across the Internet. True or False?
True
False
Which of the following are properties of a strong password? (choose three)
Based on easy to remember items like your birthday
A mix of upper and lower case
Include symbols
At least 10 characters long
Long so that it can be reused on multiple sites
What can be done to prevent remote people from running programs on your computer?
Turn on a firewall
Use strong passwords on all user accounts
Don't use wireless networks - only wired
Block all cookies
Block third party cookies
The acronym CLI stands for:
Computer Line Interface
Computer Link Interpreter
Command Line Interpreter
Command Line Interface
Traditional UNIX command options used a single dash, like -a; _______ command options use two dashes like --all.
LINUX
GNU
Shell
Kernel
The acronym GNU stands for:
Good News Unix
Gnu;s Nearly Unix
Gnu's Not Unix
Go Next Unit
What one character treats the character that follows it as if it was surrounded by single quotes"
#
/
%
\
The main purpose of using glob characters is to be able to provide a command a list of filenames. True or False?
True
False
{"name":"Linux Midterm", "url":"https://www.quiz-maker.com/QPREVIEW","txt":"Test your knowledge of Linux with this comprehensive midterm quiz designed for students and enthusiasts alike. This quiz covers essential commands, concepts, and licensing that every Linux user should know.40 questionsMultiple choice formatInteractive and educational","img":"https:/images/course3.png"}
Powered by: Quiz Maker