Which of the following commands can be used to go to the 25th line of a file in vi?
A -
25G
B -
G25
C -
.25
D -
g25
2-
A system is going to have its memory and CPU upgraded. This information will be created in Linux in which of the following?
A -
The /dev/hwinfo.conf file
B -
The /etc/hwinfo.conf file
C -
The /usr/src/linux/devices directory
D -
The /proc directory
3-
A user wants the script name1 to process the contents of the file "name2", then redirect the output to the program name3. Which if the following shell commands will do this?
A -
name1 > name2 | name 3
B -
name1 | name2 < name3
C -
name1 < name2 | name3
D -
name1 | name2 > name3
4-
A Linux system is planned to have both an Ethernet card and a modem. On each of these networks the IP addresses are dynamically assigned. Which if the following services should be considered for installation?
A -
Pump
B -
Rounted
C -
SNMP
D -
DNS
5-
Which of the following commands can be used to create new directories?
A -
ls
B -
rm
C -
mkdir
D -
mv
6-
The system administrator needs to create two new groups, 'develop' and 'admin'. Which of the following should be done to accomplish this?
A -
Enter the group data in the /etc/group.conf file.
B -
Use the groupadd command.
C -
Use the newgrp command.
D -
Use the creategroup command.
7-
Which of the following commands is used to set default file permissions for any newly created file?
A -
fmask
B -
umask
C -
createMask
D -
mask
8-
A customer wants to backup her entire Website into a file. Which if the following commands would best accomplish this?
A -
tar –cvf /dev/st0/web.tar /home/httpd/
B -
tar –cvf www.tar /home/httpd/
C -
tar –cvf /home/httpd /dev/st0
D -
tar cvf /home/httpd/ webbackup.tar
9-
What does the lpq command do?
A -
Removes a print job.
B -
Prints a file.
C -
Sets up a printer on the system.
D -
Shows status of the print queue.
10-
What command, when issued from a non-root user, will remove all files from the /tmp directory by prompting the user for the root password?