NOTE: Each correct answer will give you 5 points
- Which command would you use to check the path of mv command?
where mv
findout mv
path mv
which mv
- Which command would you use to edit events 56 to 60 using text editor emacs?
!! emacs
emacs -e 56 61
fc -e emacs
fc -e emacs 56 61
- What is the syntax for the command you use to re-execute a specific even or command?
fc !!
fc !s
fc -e texteditor command
fc -s command
- What command do you use to view the range of commands from event 23 to 33?
fc -l 23 33
fc -l 23 to 33
fc -r 23 33
history 23 33
- Which command would you use to restrict the CPU time usage for a user's session?
edquota
logcheck
ps -aux | grep getty
ulimit
- Which component of the Pluggable Authentication Modules (PAM) facility performs the authentication operation?
Configuration file procedure
Module
Service
Session
- Which command would you use to set full permission for the owner and group and no permission to other users on the files /home/projects/database?
chmod 660 /home/projects/database
chmod 440 /home/projects/database
chmod 550 /home/projects/database
chmod 770 /home/projects/database
- What does the command fsck /dev/sda1 does?
fsck resets the file permissions on the file system /dev/sda1
fsck repairs the msdos filesystem on /dev/sda1
fsck repairs the UNIX file system on /dev/sda1
fsck unmounts the filesystem and then repairs /dev/sda1
- What is the main purpose of mounting the file system?
To change permission of the filesystem
To change the ownership of the filesystem
To check and repair the filesystem
To connect the filesystem to the UNIX root filesystem
- Which command will display date and time?
echo date
echo $DATE
echo "date"
echo date
- Which command will take you to the Documents directory inside your home directory?
cd /home/Documents
cd ~/Documents
cd /Documents
cd /root/Documents
- Which command clones the content of one device to another?
cp
dd
mv
clone
- Which cp command option enables you to copy the contents of a directory and its subdirectories?
-r
-m
-b
-s
- Which wc command option returns number of characters in a file?
-l
-m
-c
-r
- Which command would you use to send a kill signal to all the processes that are running kpoker command?
kill -6 poker
kill -HUP poker
killall -KILL poker
kill poker
- Which command can you use to cause the automatic compilation of source files?
configure
make
ldconfig
make install
- Which file is generated by the configure command?
make.conf
Makefile
config.log
make_install
- Which runlevel indicates that the system is in multiuser mode running the graphical login program?
3
4
5
6
- Which of the below file can be used to add a banner in your Linux machine?
/etc/banner
/etc/logininfo
/etc/issue
/etc/info
- How many KILL signal are there by default in a Linux system?
61
62
63
64
- Which UNIX service requires TCP wrappers to perform IP based access control?
cron
inetd
syslog
xinetd
- Which command do you use to access /var/log/messages file?
last
first
stat
lastlog
- Which command can you use to make /var/log/errors utilize less space in the directory?
compress
copytruncate
create
truncate
- Which option would you use to force the logrotate program to rotate the log files?
logrotate -d
logrorate -f
logrotate -r
logrotate -s
- Which command tells the logrotate program to retain logs for a month?
compress 4
create 4
rotate 4
weekly
