answer these with an A,B,C D type. "Time elapsed: 9 seconds
Question 1
Shell variables are case sensitive.
True or False?
True
False
Question 2
Which command can be used to display both local and environment variables?
set
env
export -p
declare -x
Question 3
The command PATH=$PATH:/home/Alice does the following:
Replaces the existing directories in the PATH with the /home/Alice directory
Appends the directory /home/Alice to the existing PATH variable
Does nothing, because anything after the : is discarded
Creates a new PATH variable with only the /home/Alice directory as the value
Question 4
If the HISTIGNORE='ls*' command is placed in the ~/.bash_profile file, which of the following commands would not be placed in the history list?
history
ls -la
cd
cat
Question 5
Typical BASH exit scripts are found in ~/.bash_logout and __________ files.
/etc/profile
~/.bash_profile
/etc/bashrc
/etc/bash_logout
Question 6
The bash script_file command can be used to directly execute a shell script.
True or False?
True
False
Question 7
The __________ statement can be used to gather information from the user running the script.
if
seq
read
for
Question 8
In shell scripts, the conditional statement if must always end with:
fi
False condition
elif
then
Question 9
What will the following statement do?
for name in `cat /root/users`
Assign to the name variable each value in the specified file
Report an error
Run for two values; cat and /root/users
Get into an infinite loop
Question 10
Which of the following file test statement conditions is not correct?
-x filename tests a file to determine if it is executable
-d filename tests if the file is in the current directory
-w filename tests a file to determine if it is writable
-e filename tests if the file exists
Question 11
Which of the following applications can be used to read aloud the text from a file?
Emacspeak
Orca
All choices are valid
Espeak
Question 12
The /etc/passwd file can be modified by which of the following?
Root user
Remote user
Any user
Group account
Question 13
A normal user, joe has the following record in the /etc/passwd file. What does the x indicate?
joe:x:1021:1020:purchase_dept_user:/home/usr/joe:/bin/bash
The joe user has not yet set his password
The encrypted password has been stored in the /etc/shadow file
Password for user joe is x
Password for user joe is locked
Question 14
Which of the following info about users is not present in passwd file record?
The user’s account name
The user’s password
The user’s shell
The user’s home directory
Question 15
A regular user wants a password that never expires. The Maximum field value in the /etc/shadow file should be set to:
99999
No value
*
1
Question 16
In the /etc/shadow file, a user record has !! as the first two characters in the encrypted password field. What does this signify?
The account is locked
The password is about to expire
No significance, it is encrypted text
The password has !! as the first two characters
Question 17
The ___________ command can be used to display group membership for a particular user.
newgrp
groups
showgrp
getent
Question 18
An account on a Linux system has a UID of 50. Which type of account is this?
System account
Regular user account
Temporary account
Group account
Question 19
Which file is used to set the user’s locale permanently?
~/.forward
~/.lang
~/.login
~/.profile
Question 20
Linux systems keep time in ____.
UTC
GMT
UST
IST
Question 21
Which command is used to verify time zone changes?
systime
nls
date
sysdate
Question 22
Which of the following is not a capability of Unicode characters?
Uses separate language packs for each language
Can be used in file names
User applications can display Unicode files
Supports mathematical and technical symbols
Question 23
The ______ mapping method is supported by Unicode.
Universal Formatting Set
Universal Character Set (UCS)
Universal Locale Set (ULS)
Universal Transformation Set (UTS)
Question 24
SMTP is the standard protocol for communication between email server and mail client.
True or False?
True
False
Question 25
Which of the following changes is not possible by modifying various settings in the CUPS configuration file?
Allow access from the specified host
Port to listen for printer information packets
Maximum number of copies that a user can print per job
Maximum number of printers that can be configured
Question 26
Identify the correct command to view the status of all printers:
lpq -a
lpq
lpr
lpq -P hpfloor1
Question 27
Which is the standard port used for HTTP service?
80
25
161
110
Question 28
Which file holds the list of the name servers?
/etc/host.conf
/etc/nameservers.conf
/etc/resolv.conf
/etc/dns.conf
Question 29
Which file is referred to by the Name Service Switch (NSS) resolver?
/etc/hosts
/etc/nssconfig.conf
/etc/resolv.conf
/etc/nsswitch.conf
Question 30
The routing table shows an entry with genmask 0.0.0.0, this indicates the _____.
Default Route
Default Host
Default Name Server
Default Subnet Mask
Question 31
Which command is used to setup broadcast addresses for a network interface?
ip broadcast
route
ifconfig
host
Question 32
System crontab files are generally found in which of the following directories?
/etc and /bin
/root and /etc
/etc/crontab and /etc/cron.d
/var/spool/cron.d and /etc/cron
Question 33
The system administrator wants to create a crontab entry to perform daily backups. Which of the following keywords should be used?
@today
Cannot be done
@daily
@backup
Question 34
A Linux server, configured for the UTC time zone, is accessed by users from other time zones. The cron jobs scheduled on the server will run:
As per the time zone of respective users
As per UTC time zone
As per the time zone of location where the server is kept
As per the TZ environment variable setting in the crontab file
Question 35
After executing the atq command, the following jobs are displayed:
2       2014-11-22 22:00 a test_user
3       2014-11-22 20:00 a root
4       2014-11-22 22:45 a oracle_dba
Which of the following commands will delete job 2?
atrm test_user
atrm 2
test_user should manually delete the entry
at -r 2
Question 36
The default value for load average for running the batch command can be changed using which of the following commands?
It cannot be changed
atd -o
atd -l
atd -n
Question 37
When the system boots, the system clock is set using the value of the hardware clock.
True or False?
True
False
Question 38
Which of the following commands will set the system time to the same time as the hardware clock?
hwclock -r
hwclock -w
hwclock --set --date "current system time"
hwclock -s
Question 39
The reference time used by NTP is:
CMOS clock time
Local time on the primary server
UTC
GMT + 0.5
Question 40
The daemon that provides logging services for applications and programs is:
klogd
SNMP
syslogd
applog
Question 41
Which of the following commands is not used to view log files on a Linux operating system?
tail
echo
grep
less
Question 42
Which of the following files contains general and system related messages?
/var/log/cron.log
/var/log/boot.log
/var/log/rsyslog
/var/log/maillog
Question 43
The ____________ command is used to send messages to the system logging facility.
logger
timer
notice
queue
Question 44
You need to restart the network service and you are not the root user. Which command can you use?
chown
chmod
sudo
usermod
Question 45
What type of information is stored in the /etc/passwd file?
Links to User Account files
User Password information
User Account information
User Password Policy
Question 46
Which files define the user’s password aging policy?
/etc/login.defs and /etc/default/user.defs
/etc/login.defs and /etc/useradd
/etc/login.defs and /etc/default/useradd
/etc/user.defs and /etc/default/useradd
Question 47
Which command makes it possible to ping all the hosts on a given subnet?
nmap -a
ping -A
ping -a
nmap -sP
Question 48
The two files used by TCP Wrappers to control access are _____:
/xinet.d/hosts.allow and /xinet.d/hosts.deny
/etc/xinet.d/hosts.allow and /etc/xinet.d/hosts.deny
/etc/hosts.allow and /etc/hosts.deny
/etc/hosts_tcp.allow and /etc/hosts_tcp.deny
Question 49
The /etc/nologin file is used to prevent all users from logging on to the system.
True or False?
True
False
Question 50
How is the default run level defined in the /etc/inittab file?

id:3:initdefault:

initdefault:3

id:3: defaultinit:

runlevel:3:initdefault:
Question 51
The _____ command is used to generate SSH keys.
ssh-keygen
ssh-genkey
sshkey-gen
sshgen-key
Question 52
The ssh-add utility can be used to add only RSA keys.
True or False?
True
False
Question 53
Which command is used to verify the signature of a package?
gpg -v pkg.sig
gpg -V pkg.sig
gpg --verify pkg.sig
gpg verify pkg.sig
Question 54
The CLI is one of the ways of issuing commands to the operating system. CLI stands for:
Current Level Interaction
Common Language Interface
Complex Linear Instructions
Command Line Interface
Question 55
Which of the following statements is not true regarding X Window:
It specifies how windows and buttons should look
It provides an easy way to interact graphically with the operating system
It uses X11 protocol for communication
X Server and X Client are its important components
Question 56
The ___________ file is used to set the default display manager and desktop environment on RedHat systems.
/etc/sysconfig/desktop.conf
/etc/desktop
/etc/sysconfig/desktop
/etc/sysconfig/display
Question 57
The _____ command is used to do reverse IP address lookups.
hostname
host
uname
netstat
Question 58
The kernel’s routing table can be viewed using the commands ______.
route and ifconfig
netstat and route
netstat and traceroute
netstat and ifconfig
Question 59
The ____________ package is a meta-package containing the full suite of GNOME applications and components.
session-gnome
gnome-session
garden-session
garden-gnome
Question 60
The __________ is the default Desktop Environment on Debian distributions.
Xfce
Gnome
VNC
KDE"