Font size
WorksheetsLinux Test Prep 2
Total questions: 55
Worksheet time: 30mins
Which of the following does Raspbian Linux run on?
Vehicle entertainment system
Raspberry Pi
Smartphone
AWS cloud
Which of the following programs on a Linux system could you use as a replacement for Microsoft Word?
Nano
Writer
Pico
Pages
Which of the following is the UNIX device name for a physical or virtual terminal connection?
tty
phy
virt
dev
Which of the following is a suite of client-server software for creating and using file hosting services?
ownCloud
DropCloud
FileOwn
ownHost
Which of the following programs on a Linux system could you use as a replacement for Adobe Photoshop?
Keynote
Draw
Gimp
Paint
What directly controls hardware and translates the commands from a piece of software into something the hardware can understand and act upon?
Procmon
Kernel
Explorer
Finder
Which character is known as a root directory?
/
*
&
^
Which command line can be used to search help files that mention the word 'copy'?
info copy
man -k copy
man copy
help copy
What is a set of pages that explain every command available on the system?
Informational pages
Master pages
Help pages
Man pages
The "cd" command is short for _____________.
Check Disk
Change Disk
Change Directory
Check Directory
Which option of the command history can be used to clear the user's history?
$clear
-c
/c
-clr
What is the ls command used for in Linux?
Lists all saved cookies on a system
Lists all users utilizing a file
Lists all shared files on a system
Lists the files within a directory
Which of the following is true about environment variable names by convention?
Contains only symbols
Contains only numbers
Contains all lowercase letters
Contains all uppercase letters
Which command shows if /usr/bin is in the current shell search path?
cat $PATH
echo %PATH%
echo $PATH
cat PATH
Which of the following commands will output all of the lines with the name Fred in upper or lower case but not the word red from the file data_file?
egrep fred data_file
grep '[f]red' data_file
grep -v fred data_file
grep '[Ff]red' data_file
What keyword should be used to fill in the blank in the following segment of the given shell script? for i in *; _____ cat $i done
fi
when
then
do
Which of the following options is used with tar to create a new .tar archive file?
-n
-f
-v
-c
Which option can be used with tail to print the last X bytes of a file to the screen?
-x
-c
-b
-n
Which command would a user type to compress and package several files into a single file?
package
bundle
zip
compress
Which command is used to print the last 10 lines of a file to the display?
less
head
tail
cat
What is the correct statement to be used for comparison in a Linux shell script?
if ( $x -gt $y) if { $x -gt $y }
if $x -gt $y
if [ $x -gt $y ]
Which command is used to print the first 10 lines of a file to the display?
less
head
tail
cat
You have been asked to create a script will present the user with a onboard menu in which they can select 4 different commands to run by entering 1, 2, 3, or 4. Which of the following statements should you use to create the simplest and most effective method of choosing the command to run based on the user's input?
while
for
case
if
Why is the file data.txt empty after executing sort data.txt > data.txt?
Because the file gets executed before sort is truncated
Because the file gets truncated before sort is executed
Because sort detects that both files are the same
Because sort cannot sort text files, only binary files
Which network device serves as the gateway between your internal network and external network?
Hub
Wireless access point
Router
Switch
What is the maximum amount of memory accessible by a 32-bit operating system?
8 GB
4 GB
2 GB
1 GB
Which of the following software packages is a mail server?
GIMP
Postfix
Apache
Thunderbird
Which of the following is used as a virtual or pseudo filesystem used to interface with the kernel and system as a whole but not with individual processes?
/dev
/sys
/proc
/boot
Which of the following commands can be used to resolve a DNS name to an IP address?
iplookup
host
query
dns
Which of the following is a requirement of the GPL license but not the BSD license?
Users who modify and distribute the software under the GPL license must make the modifications they made available to the recipients under the same license
The GPL license requires that any legal disputes be settled with the mediation of the Free Software Foundation
The GPL license contains a disclaimer of warranty requiring users not to hold the software authors liable for any damages
The GPL license forbids the removal of copyright and license notices from source code files that are distributed
Which type of files is an important part of diagnosing problems with daemons?
User files
Configuration files
System files
Log files
Which of the following files contains a mapping of IP addresses to URLs locally on your Linux machine?
/etc/lookup
/etc/dns
/etc/names
/etc/hosts
Which file on a Linux system contains the passwords for each user on the system?
/etc/users
/etc/passwd
/etc/shadow
/etc/password
Which option can be used with useradd to create a new user without a home directory?
-D
-M
-G
-N
Which of the following commands is used to show the information about a directory or a symbolic link?
ln -s
ln -d
ls -s
ls -d
Which file on a Linux system is modified to set the maximum number of days before a password must be changed?
/etc/users
/etc/passwd
/etc/shadow
/etc/groups
Which type of link is used to points to another file like a shortcut in Windows or a Macintosh alias?
Sticky link
Smooth link
Symbolic link
Hard link
What command is used to change the group ownership of a file?
changegroup
chgrp
cgroup
group
What is a special permission bit set on a file or a directory that lets only the owner of the file/directory or the root user delete or rename the file?
Special bit
SUID
Sticky bit
SGID
What is the main difference between Linux and Windows/MAC OS?
You have to install Linux while Windows/MAC OS is pre-installed
Linux is affordable while Windows/MAC OS is expensive
Linux is open source software while the other two are closed source operating systems
There is no real difference
Software that runs on a computing device and manages the hardware and software components that make up the system.
Operating System
Driver
Network Protocol
Database Management System
Which OS is not UNIX based?
Linux
Windows
MacOS
Role
Accessed by one user directly (desktop) or many users remotely (server)?
Function
Does it need to run specific software? What is the skill set of users?
Life Cycle
What is the service lifetime?
Stability
Are OS releases beta (not tested “in the wild”) or stable (tested)?
Compatibility
Is it backwards compatible as in is it compatible with software made for earlier versions?
If support is not an issue, which OS is the most cost effective?
Linux
Windows
Mac OS
Which describe the Windows OS?
Offers desktop and server versions.
Slow release cycle (3-5 years), long maintenance cycle.
Emphasis on backward compatibility
Improved scripting and management abilities are being developed to compete with Linux. (Power Shell)
Runs a Graphical User Interface (GUI)
Which describe the macOS?
Runs only on Apple hardware
UNIX certified
New major releases every 18-24 months
Open source operating system
Partially based on code from the FreeBSD project
Role:
Distributions available for variety of systems; e.g.: commercial for servers and desktop.
Function:
Distributions can be chosen based on purpose of usage or security needed.
Life Cycle:
Most distributions have major and minor update cycles. Some Linux releases have long-term support.
Stability:
Some distributions offer stable, testing, and unstable releases.
Compatibility:
Distributions are zero cost. Depending on need, paying for support may be worthwhile.
What is the most popular Debian distribution?
Red Hat
Red Hat
Ubuntu
CentOS
Which are Red Hat distributions?
Fedora
Ubuntu
CentOS
Debian
Which is derived from SlackWare?
Red Hat
Ubuntu
Windows
SUSE
Which Linux platform is used on cell phones?
iOS
Windows
Ubuntu
Android
What command is used to display the current working directory in Linux?
ls
pwd
cd
dir
Which of the following commands is used to copy files in Linux?
cp
mv
rm
ls
Which command is used to change the owner of a file in Linux?
chmod
chown
chgrp
ls -l
Which file system is primarily used in Linux?
NTFS
FAT32
ext4
HFS+
