Beruflich Dokumente
Kultur Dokumente
which single character in a regular expression denotes zero or more occurances of the
previous?
a. $ b. ? c. * d. [..]
2. Your current working directory is /home/user1. Which two commands puts you into the
/home/user2/test
a.Managing CPU resources b.Translating user requests c.Interrupting user keyboard entries
d.Interpreting commands from scripts
4. ------- is the first program that is loaded into the memory of a computer, after the BIOS
7. In the following output, identify the file type lrwxrwxrwx 1 root root 22 Jul 21
17:56 grub.conf -> ../boot/grub/grub.conf
8. Your umask value is set to 022 and you create a file. Which set of permissions are
associated with this file?
removes files by force, even if not owned by user remove home directory and mail spool
display this help message and exit removes entry from the /etc/passwd file only
11. When a user is logged in to the bash shell, which is the first file that is read?
13. What does the following command do? $ grep i 'john' /etc/passwd
Inserts the word john into the /etc/passwd file
Searches for the word john in the file /etc/passwd and ignores case
14. Which file is used to redirect output of a command to the users current terminal?
16. Which command in vi is used to copy three lines of text into memory and paste these
lines above the current line?
-c -x -f -v
20. The file that contains the ssh key of known hosts for a user is
23. Which utility is used to check the syntax of Samba configuration file?
25. What is the command used to see the network configuration of eth0
True False
20 22 25 27
ypbind and ypserv https and httpc names and namec rnds and rndc
66 68 67 65
Checks if the device is enabled or not(IN THE NETWORK) Adds a device to the
netwok
Removes a device from the network Specifies a default gateway to the internet
41. Which of the following command will show all interfaces and their ip addresses?
entstat -d netstat -a ipconfig -l ifconfig -a
True False
47. Which command displays the file and directory names starting with the characters a, b
or c and ends with l?
used to report the file size, file ownership and access permissions
Used to search binary data streams for references to readable ASCII files
50. You have logged in as root. Now you change to user1 by giving su user1. What will the
commands who am I and whoami display?
who am I shows root and whoami shows user1 who am I shows user1 and whoami shows root
who am I shows user1 and whoami shows user1 who am I shows root and whoami shows root
51. The default boot loader in RHEL releases
55. Which option in the useradd command tells that a home dir should be created for the
user?
-h -d -m -b
Sets the value of variable dir to the command output Sets dir as an alias for the command ls laF
57. What is the default delimiter used for the cut command?
59. /proc filesystem resides in the first partition of the first hard drive.
TRUE FALSE
% : ~ ?
at 7:pm task at 1900 at>task at 7:00 pm at> task at> ctrl d at 1900 at> ctrl-d task
The init process takes over the parentage of a process run with nohup.
65. Which command is used to extract the file install.log from backup.tar file which is in tar
format?
File Transport Process Filesystem Transfer Protocol File Transfer Protocol File Transfer Process
Move all print requests from X to Y Move all root printing requests from X to Y
Move printing request X to printer Y Move printing requests X & Y to the default printer
70. Where are the configuration files for Apache stored? (Choose 2)
71. What is the file used to enter the information about the DNS Servers in a client
72. The service used for adding linux machines to a windows domain is
-r --remove -e --delete-package
75. The switch used in the kernel line of GRUB to go single user mode is
78. The following file contains the realtime messages from the system
Dynamic Host Configuration Process Dynamic Host Configuration Protocol Dynamic Host Control
Process Dynamic Host Control Protocol
85. Where are the port options for firewall specified in NFS?
87. Which of the following commands will find all the rc files in /etc and display them?
88. The /bin and /sbin folders can be mounted on a separate filesystem than / ( root )
fileystem .
True False
89. The command to switch users is
90. Output of a command can be viewed page by page with the ------- command
It creates three directories dir1, dir2 and dir3 under the current working directory
It attempts to create dir1/dir2/dir3 but reports an error if the parent directory of dir2 or dir3 does not
exist
Returns an error
ls -l ls -a ls -h ls -t
94. ---------- forms the user interface between a user and the kernel
To hold deleted files To hold orphaned files To hold the inode table To contain the VTOC table
Owner, Other, Group Other, Group, Owner Owner, Group, Other Group, Other, Owner
-o -d -m -l
101. The list of terminals from which root can log in is listed in
105. /proc filesystem resides in the first partition of the first hard drive.
True False
106. Which three characters can be entered from command mode in vi to change the last
line mode?(choose 3)
^ $ / ? :
108. Which of these can be used to run jobs in the background? (Choose two)
$ & nohup ?
-o -n -v -p
To backup files To compress files To copy files between locations To print a file
23 20 21 22
117. The statement A Linux machine can added as a client to windows ADS is
True False
build the initrd files build the RPM files update the inittab restart the init process
123. The following service is used to create and manage the logs
50 49 52 53
128. What are the services for NIS?
ypbind and ypserv https and httpc names and namec rnds and rndc
130. NFS is handled mainly by two daemons ----- and -----. (Choose 2)
True False
135. Which mode in vi allows cursor movement, cutting and pasting text and changes
137. Which information is provided when executing the following command? #who r
A list of logged in remote users is returned A reboot is performed after signaling logged in users
139. A Bootloader is the first program that loads into the memory of a computer
True False
140. Which command is used to search for files and their full paths?
143. The /etc/passwd file has the following permissions.Provide write permission for the
group (Choose two)
r f n u
147. See the following output of an ls command in /dev directory. crw------- 1 vcsa tty
7, 133 Aug 23 22:22 vcsa5 . what does 7 denote here ? chk
file size file permission Device Major number Device Minor number
148. ----------- file gives information about the processors in a linux system.
Cron schedules to run many times and at schedules to run only once
Executes only once Put a file at a location Schedules jobs Executes at regular intervals
153. What is the output of the ps f command?
Displays a full listing of all processes Displays the process ancestry in the form of a tree
-v -f -x -c
/etc/net-eth0 /etc/net-config0
/etc/sysconfig/network-scripts/ifcfg-eth0 /usr/config/eth0
164. The id field should be --------------- for each line in the inittab file
common unique
165. The line that contains information about the kernel in the grub.conf starts with
Yes. The statement is true No. Only manual log maintenance is possible
168. The following command is handy to enable or disable a serviec for the current
runlevel
named didnt start httpd didnt start Portmap didnt start Samba didnt start
65 68 67 64
chmod -R 775 /tough chmod -h 002 /tough chmod -R 577 /tough chmod ug+rwx, o+rx /tough
183. You want to create the subdirectory "projects" with the parent directories "docs"
and "work". The final tree will be /work/docs/projects.Choose the correct command
to do this.
185. To change the runlevel at the booting time the key used to edit the grub config is
e g I h
187. When a user is created, an entry is added in which of the following files?
All files and directories under /export/home/user1 are owned by user1, including /export/home/user1
a particular module to use how the value returned by the module is used
192. Which is the startup script executed when a user logs in?
193. $ wc story.txt 39 237 1901 story.txt What does 237 indicate in the output?
194. How do you refer to the first IDE hard disk in Linux ?
ed vi emacs ex
-u -r -m -z
201. What is the use of the get command under FTP client?
Read the contents of a file Receive a file from the remote host Open a file Close the file
df df-k du du -k
206. The Command that is used stop and restart the network service is
True False
213. The following command command is used to see the kernel messages
starts the kernel Kills the kernel Starts a service Stops a service
217. What is the directory in which DNS zone files are located?
named didnt start httpd didnt start Portmap didnt start samba didnt start
222. What does the following command do? $mv file1 file2
Moves file1 and file2 to the user's home folder Makes a copy of the files in the user's home
:wq :q! :q :w
226. What does the following command do? #find -ctime -10
Finds the files that were modified less than 10 days ago
file3 is created as a symbolic link to file1 file3 is created as a hard link to file1
228. Which single character in a regular expression denotes zero or more occurances of
the previous ?
$ ? * [..]
230. Which command will display users who are currently logged into the system?
(Choose two)
231. How many lines will the commands head or tail display by default?
20 12 10 25
232. ------- is the first program that is loaded into the memory of a computer, after the
BIOS
Searches for the word john in the file /etc/passwd and ignores case
239. How do you refer to the first IDE hard disk in Linux ?
242. In the following crontab entry, when will the command echo Process started
execute?
Lists all jobs belonging to user Lists all process belonging to user.
Used as a backup utility Used to copy files to and from a backup device
247. The command that is used to start ssh service is
Dual boot systems require only a single partition for different operating systems
250. Which are the daemons used for Samba services? (Choose 2)
252. A Linux machine can be configured to get user database from an LDAP server using
Starting the acpid service Killing all the processes by the name acpid
257. The following the file contains the boot time log information
start , stop , restart , delete start, stop, restart start, stop, restart, reload start , stop
0 5 * * 6 /usr/myscript 0 5 6 * * /usr/myscript
267. All the configuration information is stored in a Unix Registry and updated regularly
True False
268. Which file contains users who dont have access to cron?
creates three files fle1 file3 and file5 creates a single file file135
Returns an error creates 3 files file1, file3 and file 5 under the user's home dir
270. STDERR (Standard error) is not forwarded across pipes
True False
-f -d -x -z