NEW
Font size
WorksheetsLINUX 1
Total questions: 80
Worksheet time: 40mins
Which of the following is the on-demand availability of computer system resources, especially data storage and computing power, without direct active management by the user?
Passive Computing
Cloud Computing
On-demand Computing
Remote Computing
Which keyboard shortcut allows copying highlighted text while working in the command line terminal?
CTRL + TAB + C
CTRL + ALT + C
CTRL + SHIFT + C
CTRL + C
Which of the following can be used to represent a single number from 3 to 9?
[9-3]
[three-nine]
[3-9]
[3456789]
Which of the following is a valid option for a typical command to get its built-in usage information?
--help
--manual
help
-?
Your current present working directory is /home/jon/documents/. You just entered cd .. into the command line and then enter pwd. What output do you receive?
/home/jon/documents/..
/home
/home/jon
/home/jon/documents/
Which of the following is true about a recursive directory listing?
It includes details of the users and groups of the directory
It includes details of file system internals such as inodes
It includes the content of sub-directories
It includes the permissions of the directory listed
Typing $ followed by pressing which key twice, in quick succession, will list all of the variables?
TAB
SHIFT
ALT
CTRL
Which of the following are not man page sections?
Return Value
Configuration
Mistakes
Name
Which of the following commands will create a single directory named dir1 dir2?
create directory2
make dir1/dir2
mkdir “dir1 dir2”
mkdir dir1dir2
In order to rename the directory ~
/documents/letters
to
/documents/archive
which of the following commands should be used?
rename ~/documents/letters ~/documents/archive
copy -m ~/documents/letters ~/documents/archive
cp -m ~/documents/letters ~/documents/archive
mv ~/documents/letters ~/documents/archive
What command would a user enter to delete a directory containing no other files or directories within it?
mvdir
cpdir
rmdir
mkdir
Which command is used to print one page of text to the screen at a time?
less
head
tail
cat
Which redirection operator accepts text on the following lines as standard input?
><
<<
>>
<>
What option can be used with cat to display line numbers with the text of a file to the screen?
-1
-n
-x
#
Which command-line tool will create a filename that ends in .gz?
gzip
xz
bzip2
zip
Which of the following commands would be used to display the value of the HOME variable to the terminal's display?
echo "HOME"
echo &HOME
echo HOME
echo $HOME
What option can be used with tail or head to specify the number of lines to display to the screen?
-x
-c
-b
-n
What does the grep command allow a user to do?
Move a file from one folder to another
Repeat the previous command
Search for files that contain a specified string
Rename a file or directory
Which of the following is used to redirect the standard output of a command to a file?
&2
&1
2>
1>
What statement is used to get input from the terminal when a shell script is being run?
in
read
scan
input
Which version of Linux should be installed on a system with a 32-bit processor?
x99
x86
x64
x32
Where is the BIOS located?
Monitor
Hard drive
Motherboard
RAM
Which of the following is used as a virtual or pseudo filesystem used to interface with the kernel and process?
/dev
/sys
/proc
/boot
When the free command is run, what does the Mem: line reveal about the system?
System information
Graphics specifications
RAM statistics
CPU statistics
Which of the following would properly identify the device associated with the second partition on the first hard disk on the first IDE controller of a system?
dev/hdc1a2
/dev/hdc1d2p2
/dev/hd1b2
/dev/hda2
Which of the following is the correct order of a computer's operation?
(1) The computer waits for user input,
(2) The user selects a command and enters it via the keyboard or mouse,
(3) The computer executes the command
(1) The user selects a command and enters it via the keyboard or mouse,
(2) The computer executes the command,
(3) The computer waits for user input
(1) The computer executes the command,
(2) The computer waits for user input,
(3) The user selects a command and enters it via the keyboard or mouse
(1) The computer waits for user input,
(2) The computer executes the command,
(3) The user selects a command and enters it via the keyboard or mouse
What is the command that will show system boot time messages?
display system boot
dmesg
lspci
echo
Which of the following properly identifies the third partition, on the second hard disk, on the first IDE controller on a PC system?
/dev/hdc1a3
/dev/hdc1d2p3
/dev/hd1b3
/dev/hdb3
Where are the passwords stored for users on a Linux system?
/etc/group
/etc/skel
/etc/shadow
/etc/passwd
Which of the following is NOT contained in the /etc/passwd file?
Default login shell
The password of the user's account
Home directory for the user
User Identification Number (UID)
How would you represent rwxr-xr-- in octal notation?
624
724
742
754
Which file contains a list of the user's secondary groups?
/etc/group
/etc/user
/etc/shadow
/etc/passwd
Which of the following commands will display a list of all files in the current directory, including those that may be hidden?
ls -hidden
ls -all
ls -h
ls -a
Which type of link contains the data in the target file?
Smooth link
Sticky link
Symbolic link
Hard link
Which UID is usually used to represent the first regular user on a Linux system?
1000
100
10
1
What is defined by a Free Software license?
The conditions for modifying and distributing the licensed software
Limits on the purposes for which the licensed software may be used
A complete list of libraries required to compile the licensed software
The programming languages which may be used to extend the licensed program
Which of the following is a series of small single-board computers developed to promote the teaching of basic computer science in schools and developing countries?
Raspberry Pi
Blackberry Pi
Blueberry Pi
Strawberry Pi
Which of the following is a Debian-based computer operating system for Raspberry Pi?
Pi
Solaris
Ubuntu
Raspbian
Which is NOT a Linux distribution?
Torvalds
Debian
openSUSE
CentOS
Which of the following can you NOT install Linux on?
Smartcard
Smartphones
Desktops
Cloud servers
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
