WorksheetsLinux 010-160 Exam Study Guide
Total questions: 121
Worksheet time: 2hrs 22mins
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
Most commands on Linux can display information on their usage. How can this information typically be displayed? Select two.
By running the command info ls
By running the command with the option /? or /??
By running the command with the option -h or --help
By running the command with the option /doc or /documentation
By running the command with the option -m or --manpage
What command lists running processes?
pwd
ps
top
uname
uptime
What is the purpose of the kernel?
Boots the system
Implements the command line terminal
Manages system resources
Acts as the command interpreter
What does the command last output? Select two.
Root tty4 Thurs Aug 19 22:12 -22:12 (00:00)
Shows last command used by defined user
Last login: Mon Aug 19 10:57:29
Shows previous commands
What command would root use to change the ownership of a file?
chmod
chage
chusr
chown
What is the login for the system administrator?
root
admin
administrator
suzie
The superuser account is root. Root always has UID of what?
1
-1
-255
9994
0
What basic information is stored in /etc/passwd? Select three.
UID
username
user's default shell
password
User passwords are stored in etc/shadow. What else is true regarding Linux passwords?
Passwords are only stored in hashed form for security.
Can only be 6 characters long
Users cannot change original passwords
What command displays manual pages?
man
help
info
manual
What command displays improved manual pages?
man
help
info
manual
Which command can add a new user and creates the user’s home directory?
adduser -n
useradd -m
uname- m
useradd default
The tar program manages compression and decompression. What are the most commonly used options with tar? Select all that apply.
-bz
-J
-j
-z
Which of the following tar commands creates an archive file?
-xf
-create
–new
-cf
Since the Raspberry Pi does not contain a hard disk, where is the operating system stored?
a removable SD memory card
on a read only partition, next to BIOS
on the master IDE bus
What is a bundling of the Linux kernel, system utilities and other software?
Linux distribution
Linux kernel source code
Linux file system
All Red Hat based distributions use the package format ______________.
rpm
dpka
apt-get
prm
Linux is usually offered as a part of Infrastructure as a Service (IaaS). Which of the following are typical services offered by cloud providers? Select all that apply
PaaS
IaaS
GaaS
SaaS
Pick the true statement below.
Inkspace is a graphical editor for vector graphics.
ImageMagick is an audio editor.
GIMP is a command line tool.
Blender is an image editor, compared to Adobe Photoshop.
In a Linux OS, there is a preferred source for installation of new applications. What is the storage location called?
CD-ROM disk
the distribution’s package repository
the vendor’s website
vendor’s management system
Free software can mean the following:
It may be modified by anyone using it.
It only runs on Linux
It must always be available free of charge.
Linux is usually a part of an Infrastructure as a Service, IaaS. IaaS are virtual machines which are provisioned within minutes in the cloud. Which of the following statements are true about provisioning IaaS cloud?
The installation has to be prepared in a local virtual machine, which is then copied to the cloud.
The cloud hosting organization provides images of popular Linux distros.
A provider- specific configuration file describing the desired installation is uploaded to the cloud provider.
Which tar option extracts the contents of a compressed archive file?
-czf
-xzf
-extract
ztar
Which of the following commands finds all lines in the file regardless of the case?
igrep
less -i
grep -i
cut
What key would you used to exit the command less?
I
U
x
e
q
The Free Software license defines many items, but overall it defines:
Conditions for modifying and distributing the licensed software.
Limits on the purposes for which the software can be used
Details of technical documentation
Programming languages and libraries.
The command for listing recursively, Ls- R , includes all of what?
directory contents, including sub-directories
directory contents, not including sub-directories
True or False: Recursive directory listings include the contents of sub-directories.
True
False
What character indicates the shell is running with root priviledges?
#
!
*
$
&
You need to remove the directory Documents. Which of the following commands can be used to remove Documents? Select two.
rmdir Documents
remove Documents
rm -r Documents
rem Documents
What single character can be used to split a command across multiples lines when typing a long command in a shell?
/
\
&
?
What single character represents a directory?
/
\
&
?
Which protocol is used for IP address configuration?
DHCP
DNS
NFS
SMTP
The command passwd can perform the following tasks: (select all that apply)
change a user’s password
passwd -l locks a user account
creates a new user group
changes a user’s username
The substitute or switch user command su can do the following: (select the true statement)
it can only be used by the user root.
it locks the account
changes the name of the admin account
it runs a shell or command as another user
What command shows the current working directory’s and the absolute path to that directory?
who
pwd
cd ..
ls- l
Which option for the command list will list contents of hidden, files names only, and no additional information?
ls -lh
ls -l
ls -a
ls- nl
Using the copy command, which option will copy the content of the directory /documents, including all sub- directories?
copy /documents
cp -v /documents
cp -r /documents
cp -R /documents
rcp /documents
Which command will put the lines of a file in alphabetical order?
abc
wc
grep
sort
a….z
Which of the following operators in a regular expression will match preceding characters one or zero times?
*
+
%%
$
?
Which of the following operators in a regular expression will match preceding characters more than one time or multiples characters?
*
+
%%
$
?
Which of the following is an example of embedded Linux?
Android
Red Hat Linux
Fedora
Linux Mint
Which Linux distribution is used as a basis for the creation of Ubuntu Linux?
Arch
SUSE
Gentoo
Debian
Which of the following programs on a Linux system could you use as a replacement for Microsoft Word?
Pages
Pico
Writer
Nano
Which of the following programs on a Linux system could you use instead of Windows Media Player?
VLC
QuickTime
iTunes
Winamp
Which of the following is TRUE about open source software?
Open source software is always free
Open source software is a prominent example of open collaboration
Open source software is more secure than closed source software
Open source software does not have any support
What does GUI stand for?
General User Interface
Great User Interface
Generic Unique Interlink
Graphical User Interface
Which of the following is NOT a Linux desktop environment?
KDE
XFCE
Dwarf
Gnome
The output of the program date should be saved in the variable datenow. What is the correct statement to enter into the shell to set this variable?
set datenow='date'
date | datenow
datenow='date'
date > $datenow
Which of the following is NOT a valid rule for naming a variable?
Variable names must start with a letter
Variable names must start with numbers
Underscores are used instead of embedded spaces
Punctuation marks are not allowed
To see all the variables that are in the user's environment, use the ____ command.
printer
ping
printenv
processvar
What could provide a set of electronic pages that explains a specific command available on the system?
Man pages
Help pages
Master pages
Informational pages
Which of the following are not man page sections?
Name
Mistakes
Configuration
Return Value
How can the current directory and its subdirectories be searched for the file named MyFile.xml?
find . -name MyFile.xml
grep MyFile.xml | find
grep -r MyFile.xml
find -P MyFile.xml | grep
The "cd" command is short for ____.
Check Directory
Change Directory
Change Disk
Check Disk
Which command is used to copy files from one directory to another?
mv
copy
cp
rm
What does the "rm -rf" command do in Linux?
Remove all files from the directory and subdirectories
Remove all the files in the current directory
Rename all the files in the directory and subdirectories
Rename all the files in the current directory
Which of the following commands will create an archive file, named backup.tar, containing all the files from the directory /home?
tar -cf backup.tar /home
tar -cf /home backup.tar
tar -xf /home backup.tar
tar -xf backup.tar /home
Which of the following commands creates an archive file work.tar from the contents of the directory ./work/?
tar --new work.tar ./work/
tar -cf work.tar ./work/
tar --create work.tgz --content ./work/
tar work.tar < ./work/
How can the normal output of a command be written to a file while discarding the error output?
command < output > /dev/null
command > discard-error > file
command > /dev/null 2&> 1 output
command > file 2> /dev/null
Which command will display the last line of the file document.txt?
head -n 1 document.txt
tail -n 1 document.txt
tail document.txt
last -n 1 document.txt
Why is the file data.txt empty after executing sort data.txt > data.txt?
Because sort cannot sort text files, only binary files
Because sort detects that both files are the same
Because the file gets truncated before sort is executed
Because the file gets executed before sort is truncated
What is the output of the following command?
anbncn
abc
$token$token$token
{a}{b}{c}
Which of the following statements may be used to access the second command line argument to a script?
$arg2
$2
$1
$var2
What keyword should be used to fill in the blank in the following segment of the given shell script?
do
then
when
fi
How is it possible to determine if an executable file is a shell script which is read by Bash?
The file must end with .sh
The first line starts with #!/bin/bash
/bin/bash has to be run in debug mode
Only if you are logged in as root
Which of the following is NOT TRUE about the Linux Distribution Life Cycle?
Linux distros are always short term releases
Most of the release schedules are publicly announced months or years in advance
Some developers come up with catchy names for versions
The final-release version is considered to be the stable version
What does HCL mean?
Hindustan Computer Limited
Hardware Compatibility List
Hardware Computer License
House Computer Linux
Which of the following properly identifies the third partition, on the second hard disk, on the first IDE controller on a PC system?
/dev/hdb3
/dev/hd1b3
/dev/hdc1d2p3
/dev/hdc1a3
After installing a new package, in which directory are you most likely to find its configuration file?
/lib
/etc
/conf
/usr
Which of the following directories is often used to store log files?
/var
/temp
/dev/hdc1d2p3
/usr
What is the command that will show system boot time messages?
echo
lspci
dmesg
display system boot
Which network interface always exists in a Linux system?
lo
eth0
wlan0
vlan0
Which of the following displays network connections for Transmission Control Protocol, routing tables, and a number of network interface and network protocol statistics?
net
ping
netstat
traceroute
Which of the following commands can determine the time of the last login of a given user?
showlog
recent
last
history
Which command shows who is logged in and what they are doing in the system?
who
w
whoami
id
Which of the following files holds the definition of the local user accounts?
c/users
/etc/passwd
c/id
c/home
Which command adds the new user tux and creates the user's home directory with default configuration files?
usercreate tux
useradd -o default tux
useradd -m tux
passwd -a tux
Which of the following commands will display a list of all files in the current directory, including those that may be hidden?
ls -a
ls -h
ls -all
ls -hidden
What does the letter t at the end of drwxrwxrwt indicate within the following directory permissions? drwxrwxrwt 14 root root 36864 2012-03-02 11:17 /tmp
The t is used to show that the directory is globally writable, but only the owner can delete their own files within the directory
The directory is accessible by everyone
The directory contains only temporary files that can be deleted by the system when more space is needed
The files contained in this directory can only be accessed by the root user
What command would you use to create a symbolic link in Linux?
ln -d
ln -s
link -d
link -s
