The command ls | more displays a list of :
all the files in the current directory. 0.0%
all the files in the current directory one line at a time. 0.0%
all the files in the current directory one screen at a time. 85.0%
all the files in the current directory and then waits for the next command. 0.0%
all the files in all the directories. 14.0%
A single command which lists all files in a directory, distinguishing between a directory, executable and symbolic link files is:
ls -l 81.0%
ls -F 18.0%
ls -o 0.0%
ls -r 0.0%
ls -h 0.0%
By which command a user can add a password for his login name?
passwd 100.0%
pass 0.0%
chpass 0.0%
password 0.0%
setpass 0.0%
By which screen manipulation command can you specify the coordinates for the cursor position ?
tput cup 100.0%
tput smso 0.0%
tput rmso 0.0%
tput blink 0.0%
tput reverse 0.0%
Consider the following command cat re* Which of the following files will not be displayed by this command ?
reminder 0.0%
receipt 0.0%
Receipt 100.0%
recipe-cake 0.0%
re.c 0.0%
Consider the following file listing of file abc1 for a user abc -rw------- 1 abc student 10 jan 10:39 abc1 What inference would you make r...
The group have full permissions. 0.0%
Only the owner has full permissions. 0.0%
Only the owner has read and write but no execute permissions. 100.0%
The group has read and write permissions. 0.0%
Others have read and write permissions. 0.0%
Highlight the incorrect statement regarding the uniq command :
uniq is a filter. 0.0%
It compares adjacent lines in a sorted file. 0.0%
It can display lines that are unique. 0.0%
It can display lines that are repeated. 87.0%
It automatically sorts the file that is specified. 12.0%
How can a root user find the password of a user who has forgotten his password?
By looking in the etc/passwd 0.0%
By using passwd command 0.0%
It is not possible 100.0%
None of the above 0.0%
In UNIX , shell is a program which :
reads a command line from the standard input and interprets it according to a fixed set of rules. 0.0%
is a framework into which functions or utilities can be added when required. 0.0%
is the interface between the user and the kernel. 0.0%
a and b. 11.0%
a and c. 88.0%
In which of the following high level languages most of the UNIX is written?
C++ 0.0%
JAVA 0.0%
PASCAL 0.0%
FORTRAN 0.0%
C 100.0%
Mounting a file system means :
Preparing it for backup. 0.0%
Copying all the files from one filesystem to another. 0.0%
Moving all the files from one filesystem to another. 0.0%
Loading a filesystem from backup medium like tape. 0.0%
Providing a link to the filesystem to be mounted so that it appears as a local subdirectory. 100.0%
Pipes is/are :
special programs that prevent the system from crashing. 0.0%
disk management utilities. 0.0%
memory management utilities. 0.0%
a special feature by which the standard output of a command or user program can be sent as the standard input to another command or user program 100.0%
special channels for high speed data transfer. 0.0%
Point out the incorrect statement regarding standard input , output and error :
The terminal is the standard source for input and the standard output and standard error destination for most UNIX commands. 0.0%
All data sources and destinations are treated as files in UNIX. 0.0%
The three standard files have a file descriptor 0 - standard output file 1 - standard input file 2 - standard error file 16.0%
The input , output and error output can be redirected to a file other than the standard file using file descriptors and the > or < symbol. 83.0%
The output and error can be redirected in the append mode to add the redirected output or error to an existing file using the >> symbol. 0.0%
Study the following statements and select the incorrect one :
UNIX files assume all data to be consisting of streams of bytes. 20.0%
UNIX commands use the system calls for their operations. 0.0%
UNIX adopts a priority based scheduling strategy. 0.0%
UNIX process priorities cannot be changed by the user. 80.0%
The UNIX system call signal is used to handle interrupts. 0.0%
Suppose you have a file named trans and you want to display fields two to four. Which of the following commands will you use ?
cut -f4-2 trans 0.0%
cut -f2,3,4 trans 0.0%
cut -f2-4 trans 0.0%
a or b. 0.0%
b or c. 100.0%
The chmod command :
changes the current execution status from the user mode to the kernel mode. 0.0%
makes a file hidden so that it cannot be seen using the ls command. 0.0%
switches the screen from character to graphical mode. 0.0%
changes the access permissions of a file or directory. 100.0%
changes the password of a user. 0.0%
The command rm -r project
deletes the file project from the current directory. 0.0%
deletes all the files from the directory project. 0.0%
recursively deletes the directory project and all its subdirectories. 100.0%
deletes the file project found in all directories. 0.0%
is invalid. 0.0%
The command rmdir c-prog will not work if :
c-prog is not empty. 57.0%
c-prog is the current working directory. 0.0%
full pathname is specified with rmdir. 0.0%
a and b. 42.0%
a and c. 0.0%
The executable file name for the Bourne shell is :
bsh 0.0%
sh 100.0%
csh 0.0%
ksh 0.0%
lsh 0.0%
The file oldies-goldies has the details of the sale of books.The records are sorted on the names of the authors and are as follows Alexandre Dumas Alexandre Dumas Alexandre...
Gerald Durrell 0.0%
James Herriot 0.0%
Gerald Durrell James Herriot 75.0%
Alexandre Dumas Gerald Durrell Giovanni Guareschi James Herriot Louisa May Alcott 25.0%
Louisa May Alcott 0.0%
The find command :
searches for specific patterns of characters in file. 0.0%
is used for locating words in a file. 0.0%
Is used to locate files in a directory and in all subdirectories of that directory. 100.0%
can only be used by the administrator. 0.0%
is used for locating users in a network. 0.0%
The main objective of a time-sharing operating System like UNIX is to :
Minimize the net execution time. 0.0%
Maximize the processor utilization. 0.0%
Minimize the user response time. 100.0%
Minimize the number of instructions required for a process. 0.0%
Minimize the end user's involvement required for a task. 0.0%
The mv command :
changes the name of a file 0.0%
changes the name of a directory 0.0%
moves a file from one location to another 0.0%
a and b 0.0%
a,b and c 100.0%
The number of arguments can be known by which variable ?
$- 0.0%
$? 0.0%
$! 0.0%
$# 100.0%
$$ 0.0%
The shell variable that defines internal field separator is.
PS1 0.0%
PATH 0.0%
HOME 0.0%
LOGNAME 0.0%
IFS 100.0%
The user passwords are kept in which file on most Unix systems?
/etc/passwd 100.0%
/etc/password 0.0%
/usr/password 0.0%
/bin/passwd 0.0%
/system/password 0.0%
The wc filter :
counts the number of words in a disk file or in the standard input 33.0%
counts the number of characters in a disk file or in the standard input 33.0%
counts the number of lines in a disk file or in the standard input 33.0%
can only be used with one file at a time 0.0%
UNIX is an example of :
Batch processing operating system. 0.0%
Time sharing operating system. 100.0%
Real time sharing system. 0.0%
Single user operating system. 0.0%
Assembly language. 0.0%
UNIX offers the following benefits :
Time-sharing 0.0%
Multi-tasking 0.0%
Multi-programming 0.0%
a and b. 0.0%
a,b and c. 100.0%
Using which command can you move to a different directory?
pwd 0.0%
cd 100.0%
ls 0.0%
mv 0.0%
rm 0.0%
What communication command allows a user to communicate with another user logged on by splitting the screen and providing two way communication ?
talk 66.0%
write 33.0%
chat 0.0%
talkto 0.0%
transmit 0.0%
What control character signals the end of the file ?
Ctrl+a 0.0%
Ctrl+b 0.0%
Ctrl+c 0.0%
Ctrl+d 100.0%
Ctrl+e 0.0%
What information does the who am i command display?
The user's name. 35.0%
The user's terminal file name. 7.0%
The day the user logged in. 14.0%
The time the user logged in. 21.0%
The day the user logged in the last time. 21.0%
What is the command that can print lines of 1st file matching with 2nd file ?
printline 0.0%
cmp 0.0%
com 0.0%
comm 100.0%
prncomm 0.0%
What is the correct command to delete all files with two character file-names from the directory /user/group2 ?
rm /user/group2/.. 0.0%
rm /user/group2/?? 100.0%
rm /user/group2/** 0.0%
rm /user/group2/-- 0.0%
rm /user/group2/;; 0.0%
What is the default standard error file ?
err 0.0%
error 0.0%
stderr 100.0%
errfile 0.0%
errdev 0.0%
What is the default UNIX prompt?
> 0.0%
! 20.0%
# 0.0%
@ 0.0%
$ 80.0%
What is the exit code of a successful command ?
0 100.0%
1 0.0%
-1 0.0%
100 0.0%
10 0.0%
What is the file descriptor for the standard error file ?
0 0.0%
1 0.0%
2 100.0%
3 0.0%
4 0.0%
What is the file descriptor for the standard output file ?
0 0.0%
1 100.0%
2 0.0%
3 0.0%
4 0.0%
What is the number of standard file pointers in UNIX?
3 100.0%
4 0.0%
5 0.0%
6 0.0%
7 0.0%
What is the user id of a root user?
0 100.0%
1 0.0%
2 0.0%
3 0.0%
What will be the result of command '' rm -r directory/* ''?
It will remove the directory and all the files present in that directory 0.0%
It will remove all the files but not the directory 80.0%
It will show an error message 20.0%
None of the above 0.0%
What would be displayed on the screen if the pwd command is entered when the user is in /usr directory?
/ 0.0%
home 0.0%
/home/username 33.0%
usr/ 66.0%
usr> 0.0%
usr/username 0.0%
Which character of the grep filter specifies that the pattern preceding it must occur at the end of each line ?
[] 0.0%
^ 0.0%
$ 80.0%
. 0.0%
20.0%
Which character would be used in the grep filter to specify a pattern which consists of any one of a set of characters?
[] 0.0%
^ 0.0%
$ 0.0%
. 100.0%
0.0%
Which command compresses a file?
compress 50.0%
zip 50.0%
pack 0.0%
comp 0.0%
size 0.0%
Which command gives all differences between two files ?
filecmp 0.0%
filecompare 0.0%
filediff 0.0%
diff 100.0%
Which command gives information about space being used by files and directories ?
sp 0.0%
mem 0.0%
hd 0.0%
du 100.0%
rm 0.0%
Which command identifies the current working directory ?
pwd 100.0%
cd 0.0%
dir 0.0%
ls 0.0%
cur 0.0%
Which command invokes a text editor ?
write 0.0%
edit 0.0%
editor 0.0%
pad 0.0%
vi 100.0%
Which command is used by a user to define a printer for their session?
Using lpdest environmental variable 28.0%
Using spooler command 0.0%
Using lpadmin command 71.0%
Using printf command 0.0%
Which command is used for splitting a file horizontally?
cut 0.0%
head 0.0%
tail 0.0%
b and c 83.0%
a, b and c 16.0%
Which command is used to run a command at a specified time ?
timer 0.0%
at 100.0%
time 0.0%
atq 0.0%
dd 0.0%
Which command will delete a directory only if it is empty ?
rmdir 100.0%
rmdir -r 0.0%
rmdir -e 0.0%
rmdir -t 0.0%
rmdir -u 0.0%
Which command will symbolically link two files in a directory?
link f1 f2 0.0%
link -s f1 f2 0.0%
ln f1 f2 0.0%
ln -s f1 f2 100.0%
ln -l f1 f2 0.0%
Which command will you use to count the number of words in a file?
count 0.0%
grep 0.0%
wc 100.0%
word count 0.0%
Which command will you use to see the available routes and their status?
show route 0.0%
route status 0.0%
netstat -rn 100.0%
None of the above 0.0%
Which command will you use to see your current group?
who am i 0.0%
show group 0.0%
group 0.0%
id 100.0%
Which command would make the scope of a shell variable global to the subshells ?
global 0.0%
export 100.0%
scope 0.0%
grant 0.0%
extend 0.0%
Which command would you use if you want to display selective fields from a file ?
pg 20.0%
wc 0.0%
tr 0.0%
cut 80.0%
tee 0.0%
Which error will you see when an NFS client can no longer access mounted file system?
File Not Found 0.0%
Stale File Handle 100.0%
Invalid Command 0.0%
File Inaccessible 0.0%
Which file contains the commands run by all users at login?
/usr/init 40.0%
/usr/profile 0.0%
/usr/startup 0.0%
/etc/startup 0.0%
/etc/profile 60.0%
Which file contains the commands that the system executes when a user logs in?
$HOME/startup 0.0%
user/init 0.0%
$HOME/.profile 100.0%
etc/startup 0.0%
Which filter is used to copy the standard input to the standard output and also to a disk file ?
grep 0.0%
cut 0.0%
tr 0.0%
wc 0.0%
tee 100.0%
Which filter will you use to translate a set of charaters to another ?
grep 0.0%
cut 0.0%
tr 100.0%
wc 0.0%
tee 0.0%
Which keystroke combination sends or signals an interrupt request to a process ?
Ctrl+c 100.0%
Ctrl+d 0.0%
Ctrl+u 0.0%
Ctrl+s 0.0%
Ctrl+q 0.0%
Which of the following characters can be used to run multiple commands on a single line?
/ 0.0%
: 0.0%
, 0.0%
; 100.0%
Which of the following commands can be used to add the read and write permissions to the user and group classes of a file named abc?
chmod ugo +rw abc 0.0%
chomd abc ug -rw 0.0%
chmod ug -rw abc 0.0%
chmod ug+rw abc 100.0%
Which of the following commands can be used to change group ownership of a file/directory?
chmod 0.0%
chgroup 0.0%
chgrp 100.0%
grpch 0.0%
Which of the following commands can be used to communicate directly with other users by sending messages?
$ msg 0.0%
$ talk 100.0%
$ send 0.0%
$ call 0.0%
Which of the following commands can be used to view the calendar of April 2007?
$ cal april 2007 50.0%
$ cal april 07 0.0%
$ calendar 4 07 0.0%
$ cal 4 2007 50.0%
Which of the following files is configured for login name, login directory and login shell variables?
/etc/profile 0.0%
/etc/home 0.0%
/etc/passwd 100.0%
/etc/conf 0.0%
Which of the following is a responsibility of the system administrator?
Setting permissions for files and directories 0.0%
Creation of users and group-ids 0.0%
Providing security through the use of passwords 0.0%
a and c 0.0%
a,b and c 100.0%
Which of the following is incorrect about the restrictions imposed by the restricted shell ?
The user cannot move out of the current working directory. 50.0%
The user cannot change the path; execution of programs in directories other than those authorised by the system is prevented. 50.0%
The user cannot specify absolute path-names beginning at the root. 0.0%
The user cannot redirect input or output. 0.0%
The user is not allowed to see the listing of files in his working directory. 0.0%
Which of the following is not a filter ?
sort 0.0%
grep 0.0%
uniq 0.0%
pg 0.0%
echo 100.0%
Which of the following is not a valid file command ?
ls 0.0%
cat 0.0%
mv 0.0%
cp 0.0%
break 100.0%
Which of the following is the only filter?
echo 0.0%
wc 100.0%
mv 0.0%
rm 0.0%
Which of the following locations store the information about the currently installed Software on a local system?
/var/adm/sw/install 25.0%
/var/adm/sw/software 25.0%
/var/adm/sw/recent 0.0%
/var/adm/sw/products 50.0%
Which of the following shells is typically used for guest logins and in secure systems ?
sh 83.0%
csh 0.0%
ksh 16.0%
rsh 0.0%
lsh 0.0%
Which of the following statements is incorrect ?
UNIX operating system is available on machines with a wide range of computing power, from microcomputers to mainframes. 25.0%
UNIX is a multi-user system designed to support a group of users simultaneously. 0.0%
UNIX uses a hierarchical file structure to store information. 0.0%
At the core of UNIX is the shell, a program controlling the computer's resources. 75.0%
UNIX has facilities called pipes and filters which permit the user to create complex programs from simpler programs. 0.0%
Which of the following statements is incorrect regarding positional parameters ?
They are used to create generalised scripts. 0.0%
There can be a maximum number of 9 variables. 0.0%
The shift command is used when the number of parameters exceeds 9 to shift the values of variables. 0.0%
Depending upon the number of arguments specified in the command line, the shell will assign values to some or all of the positional parameters. 0.0%
The command name is put into the variable $1. 100.0%
Which of the following statements is incorrect regarding the UNIX environment?
It has the provision of security through the login and passwd programs. 0.0%
In it the file names are not case insensitive. 0.0%
It has the provision of various commands and utilities for file and directory manipulation. 0.0%
It does not allow relative path names. 50.0%
It allows the use of wild-card characters for file-name expansion. 50.0%
Which of the following statements is incorrect regarding variables?
Variables have no data type. 0.0%
Variables can be local or global. 0.0%
Variables can be created at the $ prompt or within a shell script. 0.0%
Global variables are created by the global command. 0.0%
Environment variables are created by the shell. 100.0%
Which of the following statements is not true regarding the grep filter?
It is used to seach a file for a particular pattern of characters and displays all lines that contain that pattern. 0.0%
The pattern that is searched for in the file is referred to as the regular expression. 0.0%
grep can be used without specifying a regular expression. 100.0%
The filenames are optional.In this case grep expects standard input. 0.0%
The -c option prints only a count of the lines that match the pattern. 0.0%
Which of the following statements regarding file naming is incorrect? File names :
should not have a blank, or a tab. 33.0%
can contain digits, a dot, the hyphen or the underscore anywhere. 0.0%
can contain both upper-case and lower-case alphabets. 0.0%
are not case sensitive. 66.0%
Which option of the grep filter prints out all those lines that do not match the pattern specified by the regular expression ?
-n 66.0%
-c 0.0%
-d 0.0%
-l 0.0%
-v 33.0%
Which option of the sort filter changes the output to reverse order ?
-r 100.0%
-f 0.0%
-n 0.0%
-t 0.0%
-o 0.0%
Which option of the sort filter folds lower case characters to upper case ?
-r 0.0%
-f 100.0%
-n 0.0%
-t 0.0%
-o 0.0%
Which option of the sort filter performs a numeric sort ?
-r 20.0%
-f 0.0%
-n 80.0%
-t 0.0%
-o 0.0%
Which option of the uniq command would you use to display lines with only one occurence?
-u 33.0%
-d 0.0%
-c 66.0%
-l 0.0%
-r 0.0%
Which option of the uniq command would you use to display only those lines which have a multiple occurrence ?
-u 0.0%
-d 25.0%
-c 75.0%
-l 0.0%
-r 0.0%
Which option used along with find prompts the user for confirmation before any operation is performed on a file ?
-name 33.0%
-type 0.0%
-ok 66.0%
-exec 0.0%
-mtime 0.0%
Which option used along with the find command allows one to perform operations on the files that are located by the find command ?
-name 0.0%
-type 33.0%
-ok 0.0%
-exec 0.0%
c or d. 66.0%
Which screen manipulation command sets the screen back to normal?
tput cup 0.0%
tput smso 100.0%
tput rmso 0.0%
tput blink 0.0%
tput reverse 0.0%
Which screen manipulation command sets the screen to reverse video?
tput cup 0.0%
tput smso 0.0%
tput rmso 0.0%
tput blink 0.0%
tput rev 100.0%
Which special variable will display the exit status of the last executed command in Bourne or Korn shell?
$# 0.0%
$- 0.0%
$? 100.0%
$$ 0.0%
$! 0.0%
Which type of users can be associated with each file in UNIX ?
The file owner. 100.0%
The group owner of the file. 0.0%
Other users who are not part of the group. 0.0%
a and b. 0.0%
a,b and c. 0.0%
Which UNIX command provides the type of information contained in a particular file ?
more filename 33.0%
type filename 0.0%
file filename 66.0%
info filename 0.0%
list filename 0.0%
Which variable contains the system prompt ?
PS1 100.0%
PATH 0.0%
PROMPT 0.0%
HOME 0.0%
LOGNAME 0.0%
Which variable will display the list of the positional parameters?
$# 0.0%
$* 100.0%
$? 0.0%
$$ 0.0%
$! 0.0%
Which wild-card matches one character ?
* 0.0%
- 0.0%
# 0.0%
? 100.0%
@ 0.0%
Who can change the password of a user account?
Administrator 0.0%
The root user 50.0%
All the members of the Administrator group 0.0%
Account owner 50.0%
With regard to UNIX, a process is :
the name of a command. 0.0%
the name of the administrator. 0.0%
the name of the UNIX server. 0.0%
a program in a state of execution. 100.0%
another name for a file. 0.0%
You are writing a shell script.For a given condition, you want to terminate a loop. Which command will you use ?
terminate 0.0%
end 0.0%
break 100.0%
stop 0.0%
exit 0.0%
You have two variables, v1 and v2. You want to assign the value of v2 to v1.Which of the following declarations is correct ?
v1=v2 33.0%
v1=$v2 33.0%
v1=${v2} 0.0%
a or b. 0.0%
b or c. 33.0%
You want to declare a variable vs with the value hello. Which of the following declarations is correct ?
vs = 'hello' 0.0%
vs='hello' 0.0%
vs=hello 0.0%
a or b 0.0%
b or c 100.0%
You want to make a new directory.What command will you use ?
md 0.0%
makedir 0.0%
mkdir 100.0%
dirmake 0.0%
newdir 0.0%
You want to read through the reference manual.What command will you use ?
assist 0.0%
help 0.0%
reference 0.0%
aid 0.0%
man 100.0%
You want to search for the pattern "Newa" or "Newb" or "Newc". Which regular expression will you use with the grep command ?
"New[abc]" 0.0%
"New[a-c]" 0.0%
"New[^abc]" 0.0%
a or b. 100.0%
b or c. 0.0%
You want to specifically search for the character [ . What character(s) would you use in the expression to achieve this ?
[] 0.0%
^ 0.0%
. 0.0%
100.0%
$ 0.0%