Академический Документы
Профессиональный Документы
Культура Документы
Top
A: C. The system startup file for the /etc/profile shell is invoked when a user logs into
the system.
A: C.
A: B.
A: A.
A: C. Any user having user ID 0 is a superuser. Creating more than one user with the
same user ID is another way of giving the same rights to multiple users in a system.
A: C.
A: C. This command can be used for both creating and displaying a file.
A: A. Words enclosed in quotation marks are considered as one string. The find
command can't be used to find text within a file.
5: Consider a directory with five files in it. The file names are pg.c, pg1.c, pg2.c,
pg3.cpp, and pg10.c. We use the command ls pg?.?. The files displayed are:
6: How can you tell the number of user accounts on a UNIX system?
A: D. Each user name is listed in one line in the /etc/passwd file. There is no number
command in HP-UX.
7: You are currently in the /home/bootadirectory. Which command will bring you the
to /etc directory?
A: D. Option A is not correct as it will move you to /home/boota/etc (if this exists).
Option B is correct as you will go back two steps to the root directory and then go to
etc directory. Option C is also correct as you have specified an absolute path.
1: Just after login, you issue the command echo HOME. What will be the output of this
command?
A: C. Option A is not correct because to display the value of a variable you have to use a
dollar sign with the variable name. Option B is not correct because the HOME variable is
set when you log in. Since you have not used a dollar sign, the command will simply
display the word "HOME", so option C is correct.
A: A. The PATH variable does not show anything about the current directory.
3: You have a variable "ABC" with value "Alphabets". You use the following command to
change its value.
ABC='All $ABC'
A: A. Any string specified with single quotation marks is taken as-is by HP-UX
commands.
A: D.
5: The value of the PS2 variable on your system is ">" (greater-than symbol). You issue
an incomplete command. What will be the shell's response?
A: D. The shell displays the value of the PS2 variable as prompt when you issue an
incomplete command.
A: C.
2: The symbol used to append to a file when redirecting stdout to that file is:
A: B. Option A overwrites the existing file. Option C is used for input redirection. Option
D is used for stderr redirection.
3: When you redirect both stdout and stderr to the same location, you use:
A: C.
A: A.
1: You have made changes to a file and want to quit vi without saving these changes.
What command will you use?
A: C. Option A will save the changes and then quit. Option B will save the file and then
quit. Option D will force saving the file.
2: You want to replace cat with dog in your file at all locations in the vi editor. You use:
A: C.
A: B.
A: D.
A: C.
A: A.
A: A.
A: D.
2: You are logged in as user jim and create a file myfile and want to give it to a user
mark by changing its ownership. The command for this is:
A: B.
A: C.
4: You want to change your group ID temporarily. Which command will you use?
A: A. The chgrp command changes the group ownership of a file. The id command is
used to display the user and group IDs.
A: A.
6: A file myfile already exists. You use command touch myfile. What will be the effect
of this command?
A: C.
7: You are logged in as user boota belonging to group users. When you list files using
the ll command, you see the following list.
A: C. You are neither the owner of the file nor a group member of the owner.
A: D.
A: B.
A: D.
A: B.
A: B.
A: A.
A: D.
A: C.
2: You are in a directory having three files, file1, file2, and afile. You type a
command ls f and then press the key followed by the key. What
happens?
A: D.
3: You use the date command to see the current system time. Just after that, you press
the key followed by the key. What happens?
A: D. This key combination is used to go to the next command in the command history.
Since there is no next command, nothing will happen.
A: D.
6: Your home directory is /home/boota. You moved from your home directory to
the /etc directory. How can you go back to your home directory?
A: B. Choices A and C seem to be correct but the $ symbol is missing in the variable
name with both of the choices.
1: You create a shell program and save it into a file with name "more". Your current
directory name is included in the PATH variable at the end. When you run this
program by typing "more", nothing happens and the cursor just stops at the next
line. What may be the problem?
A: C. The more command is a standard UNIX command that expects an input from
stdin. Since your current directory is at the end of the PATH variable, the standard
more command gets executed instead of your own program. Choice A is incorrect
because, in the case of an unrecognized command, you will get an error message.
Choice B is incorrect because you will get an error message if the program is not
executable.
A: D.
3: You use the echo $? command. The result is 2. What do you conclude from this?
A: B. The command prints the return code of the last command. Any return code other
than 0 shows that the execution of the last command was not successful.
4: You used shift 3 in your shell program. What will be its effect?
A: C. The shift command shifts all command line arguments to the left.
7: A shell script with the name myscript does not have the execution bit set. How can
you execute it?
A: B.
A: A.
10: You have a shell script as shown here. What will be the result when it is executed?
#!/usr/bin/sh
ABC=aac
case $ABC in
a) echo "First"
;;
[aa]c) echo "Second"
;;
a*) echo "Third"
;;
*) echo "Last"
;;
esac
1: Which command will you use to add the values of two variables VAR1 and VAR2, and
store the result in VAR3?
A: D.
2: You want to wait for 10 seconds at the end of the loop in each loop cycle. Which
command will you use?
A: A. There is no pause command. The wait command is used to wait for a child process
to terminate.
3: Consider the following code segment. How many times does the loop execute?
A=1
until [ $A < 10 ]
do
echo $A
(( $A=$A+1))
done
A: A.
#!/usr/bin/sh
A=1
while [ $A -lt 10 ]
do
B=1
while [ $B -lt 10 ]
do
break 2
echo "Inner loop"
done
echo "Outer Loop"
done
5: While writing a program, you meet a situation where you want to break the normal
execution and shift control to the beginning of the loop, skipping the remaining
commands in the loop. Which command will you use?
A: B.
Top
A: B.
A: C.
A: C.
A: A.
A: D.
A: C.
A: B.
A: B.
6: Which command do you use in PDC to find the device name for a CD-ROM drive?
A: C.
7: You use the search command, and a list of devices is displayed as shown below.
Which command will you use to boot from the CD-ROM?
A: D.
1: All HP-9000 systems have processor dependent code (PDC). What is true about it?
A: D.
A: D.
A: C.
A: B.
A: D.
A: B.
A: B.
A: D.
A: A.
A: C.
11: What happens if the runlevel for a program is not specified in the /etc/inittab file?
A: B.
A: D.
A: B.
A: A.
A: D.
4: When using the swinstall command in the text menu, you can activate the menus
using the:
A: A.
A: B.
A: B.
A: A.
A: C.
9: Every patch is a shar file when you download it from the Hewlett-Packard Internet
site. How many files are created when you unshar it?
A: A.
A: C.
A: A.
A: B. The only implication on not saving the old kernel is that you may not recover from
a bad new kernel.
A: B.
5: For a proper memory dump, the size of the swap space must be larger than:
A: B.
A: B.
7: The maxswapchunks kernel parameter shows the value of maximum swap space:
A: A.
A: C.
A: B.
3: What is the device file name for disk 7/3.4.0 attached to a card having instance
number 1?
A: B.
A: B.
A: B.
A: A.
7: What information is necessary for the mknod command on the command line?
A: D.
A: C.
A: A.
A: A.
A: B.
A: B.
A: C.
8: Which command would you use to create a logical volume of 200-MByte size with the
name myvol in volume group vg02?
A: C.
A: C.
A: C.
11: You use the pvcreate, vgextend, lvextend, and extendfs commands to increase
the size of a file system. In which sequence would you use these?
A: C.
12: Which command can you use to list the mounted file systems?
A: C.
A: B.
A: A.
A: C.
4: In which directory are stored the default configuration files for a user?
A: B.
boota:OV81GT8LCiRO.:1225:20::/home/boota:/sbin/sh:
A: B.
A: C.
A: D.
1: Which kernel tunable parameter determines the maximum size of a process table?
A: B.
A: C.
3: The default nice level is 20. You start a new process in the background using the "&"
symbol. What will be its nice level?
4: A process is in a sleep state while waiting for a resource that is currently busy. It
receives a stop signal (SIGSTOP) and goes into a stopped state. After some time it
receives a continue signal (SIGCONT). To which state will it go?
A: B. After receiving the SIGCONT signal, the process goes into its previous state.
5: You are logged in as user boota and want to change the nice level of the init process
to 15. Which of the following commands will you use? Remember the PID for the init
process is 1.
A: D. The root user can change the nice value for the init process.
A: C.
A: B.
3: How can the print priority of a job be increased when this job is waiting in the print
queue?
A: B.
4: What do you need to do to set up a remote printer, assuming DNS or NIS is not used?
A: D.
A: B.
lpfence laserjet3 5
A: A.
A: A.
A: D.
3: You have three identical disk drives. How would you like to use these for swap and file
systems for the best swap performance?
A: A.
/dev/vg03/lvol2
/dev/vg03/lvol8
/dev/vg03/lvol9
You want to stop using /dev/vg03/lvol2 as swap space. How can you do it?
A: C.
A: D.
1: You are using incremental backup in two levels. The levels used are 1 and 5. When
restoring data, in what order will you restore the backup?
A: A.
2: You used the tar command to back up your system. Which command will you use to
restore it?
A: A.
3: You are using files larger than 2 GBytes on your system. Which utility will you prefer
to use to back up the system?
A: A.
4: While creating incremental backup at level 2, you used the following command.
The next day you performed backup at level 3 using the following command.
A: A. Since you did not use the -u option with the first backup, the new backup will
contain all files listed in the graph file.
5: Which backup level is always a full backup, no matter how the previous backup has
been performed?
A: A.
A: A.
A: C.
A: B.
A: B.
A: B.
2: On your system, file cron.allow exists and is empty. File cron.deny is also present
and contains the login name of user boota. Who is allowed to use cron?
A: C.
3: A crontab entry is shown below. At what time will the trimlog command be
executed?
0 * 1,6 1 * /home/root/trimlog
A: C.
4: It is exactly 12:00 noon. You want to execute a command at the same time the next
day. Which of the following commands will you use?
A: D.
Top
1: The order of the top four OSI layers from top to bottom is:
A: B.
A: A.
A: C.
4: Which OSI layer is divided into Logical Link Control (LLC) and Medium Access Control
(MAC)?
A: D.
A: C.
A: D.
A: B.
A: D.
A: A.
A: D.
A: C.
7: What is the maximum number of repeaters that can be used in an Ethernet network?
A: B.
A: C.
1: The application layer of the OSI model covers which three layers?
A: B.
A: D.
A: C.
A: C.
5: Given a netmask of 255.255.255.240, how many hosts can be placed in the network?
A: A.
6: In an IP network, 18 bits are used in the network address. What is the value of the
netmask?
A: A.
A: A.
A: B.
A: B.
1: Which command is used to list network drivers configured into the kernel?
A: D.
A: D.
A: B.
A: B.
A: B.
6: When creating a default route, you see a network unreachable message. What may
be the cause?
A: B.
A: C.
A: A.
2: The telnet service is invoked using inetd. The configuration entry for this service
contains the keyword nowait. What does it mean?
A: D.
A: A.
A: B.
A: A.
7: You want to allow a user jeff at host myhp to access your account using the rlogin
command. What should be present in the .rhosts file in your home directory?
A: C.
192.168.2.1 hp01
192.168.4.5 hp01
You use the ping hp01 command to send an ICMP packet to host hp01. To which IP
address will these packets be sent?
2: Which file determines the order in which different services try to resolve a host name?
A: C.
A: B.
A: D.
A: A.
6: Which file on a client machine is used for listing available name servers?
A: B.
A: B.
8: You have your own domain name and want to create zones and delegate authority of
these zones to a departmental name server. Which name server will delegate this
authority?
A: B.
9: For what purpose is the NS resource record used in DNS data files?
A: A.
A: A.
A: A.
A: B.
A: D.
A: A.
A: D.
7: Which command is used to display the name of an NIS server bound to a host?
A: C.
A: D.
2: Which HP-UX command can be used on an NFS server to list remotely mounted file
systems by NFS clients?
A: D.
A: B.
A: B.
A: C.
A: D.
7: Which command is used to manually export file systems for remote mount?
A: B.
A: A.
A: B.
A: A.
3: What is the default interval of time after which Automounter unmounts a directory if
no reference is made to a mounted file system?
A: D.
4: The master automount map contains the following indirect map entry.
/home /etc/auto_home
boota hp0:/home/boota
Where will the directory /home/boota on an NFS server hp0 be mounted on the local
system?
A: D.
A: A.
A: B.
3: Which command is used to synchronize time with one or more NTP servers on the
Internet?
A: A.
A: A.
Top