You are on page 1of 3

.

As root, what command would you type to initiate a password change for user
“lanka”?
A. passwd lanka
B. password lanka
C. user lanka

2. DNS provides ________ to IP address mappings.


A. NETBIOS name
B. host name
C. MAC address

4. What option is used with the useradd command to specify the user's user id?

5. What file does init processes use as its control file?


A. /etc/inittab
B. /etc/proc
C. /etc/init
D. /etc/initproc

6. What option is used with the useradd command to specify the user's login shell?

7. What run level represents a power down / multiuser / reboot?

Note : be ready for above run levels

9. Which of the following will copy file1.txt to file2.txt? Choose Two.


A. cat file1.txt | file2.txt
B. cp file1.txt > file2.txt
C. cp file1.txt file2.txt
D. cpio < file1.txt > file2.txt

11. You want to move all files in /dir1 to /dir2 that begin with a and end with v.
What is the correct command to do this?

A. mv /dir1/a*v /dir2
B. mv -r /dir1/a.v /dir2
C. move /dir1/a?v /dir2
D. ls a*v | cp /dir2
E. mv /dir1/[a-v] /dir2
E. ps

. What command will show the last 10 lines of a file by default?


A. tail
B. head
C. cat
D. prstat
12. Which directory is used to store undelivered user email by default?
A. /var/spool/sendmail/usermail
B. /var/spool/mail
C. /var/spool/mailqueue
D. /var/spool/sendmail/username
E. /var/mail/sendmail/username

With a Linux 2.2 Kernel-based machine configuration of 133 MHZ, 32 MB RAM


and a 1 GB HD, how much swap should be configured?

What command can find the program file "bar" and it's associated man pages and
any existing source files, but not return all files that have "bar" in the command
name or path?

A. whereis
B. find
C. locate
D. apropos
E. whatis

Which of the following modems cannot be used on linux systems


A. ISDN TA
B. Cable modems
C. Analogue modems
D. PCI modems
E. Win modems

What is the correct format for a proper command in the shell?

A. Option Argument Command


B. Command Argument Option
C. Command Option Argument

What option can be used with the shutdown command to reboot the system?
A. shutdown -r
B. shutdown -y
C. shutdown -c
D. shutdown –b

What option is used with the useradd command to specify the user's login shell?
A. -u
B. -s
C. -ui
D. –id
1. Describe the following things with Examples
a. MTA
b. LDA
c. MUA
d. Mailscanner
e.

2. What is the different between Packet filtering firewall and


Application level firewall
3. What is the DNS server using for Linux? And write the types of
DNS severs
4. What is the repository list file for use APT? ( full path)
5. Assume you need to install postfix, write the command to install
postfix.
6. You need to use your Linux box as proxy server. How to use
Linux box as proxy server
7. What is the main configuration file for squid?
8. What is the use SWAP partition?
9. How to change the host name of your Linux box? (File name
with full path)
10. How to change the IP address of your Linux box in command
prompt?

You might also like