Font size
WorksheetsUnix
Total questions: 36
Worksheet time: 19mins
What is a shell script?
group of commands
a file containing a series of commands
group of functions
a file containing special symbols
Which of the following commands is used to display the directory attributes
cat
ls
mkdir
cp
Which command is used to remove a file?
remove
del
rm
mv
The following command can list out all the current active logins.
A - whoami
B - who am i
C - who
D - None of the above.
The mv command changes
Only the directory entry
Only the directory entry and i-node
Only the i-node number
None of the above
Unix is a
Single User, Single tasking OS
Single User, Multi-tasking OS
Multi-User, Multi- tasking OS
None
Unix operating system is written in
Ada Language
Perl Language
C Language
Pascal Language
Which command is used to create a file
ls
cat
vi
lyrix
To Display line of text/string that are passed as an argument with a command
cat
echo
ls
none of the above
Unix shell command that lists directory contents of files and directories with hidden files.
ls -d
ls -F
ls -a
ls -l
Which command is used to get information about currently logged in user on to system
who am i
who
who i am
None of the above
Date command is used to support format specifier
True
False
Which command in UNIX is used to change the user account passwords.
pwd
password
passwd
none of the above
In Unix, Combining commands are
& %
&& %
; &&
; &
which command is used to see the calendar of any specific month or a complete year
calendar
cal
none of the above
Shell scripts are executed in a separate child shell process.
a) True
b) False
The first line in any shell script begins with a _____
a) &
b) !
c) $
d) #
This is an important OS function
Printing
Resource (Memory, Processor, Device, etc) Management
Video editing
Scanning
Gaming
What year did Unix started?
1969
1981
1979
2015
What are the three types of kernel? Choose all that apply.
Microkernel
Monolithic
Paleolithic
Hybrid
Macrokernel
What is an example of a special character
&
A
:
K
What is Unix?
Unix is a programming language
Unix is a software program
Unix is an operating system
Unix is a text editor
In which language UNIX is written?
C++
C
Java
Python
Which of the following is the first UNIX editor?
vi
emacs
ex
ed
Which of the following is not a part of all the versions of Unix?
System Calls
Graphical user interface
Kernel and Shell
Commands and utilities
Which Unix command is used for changing the current directory?
pwd
rm
cd
cp
Which command is used for displaying the contents of a file in Unix?
mkdir
cat
rm
cp
Which of the following commands is known as stream editor?
grep
tr
sed
td
Which of the following is not a type of shell?
The C Shell
The Korn Shell
The Bourne Shell
The Perl Shell
The prompt issued by the shell is called ______
prompt
command translator
command prompt
command executor
What is the default symbol for command prompt in Bourne shell?
!
#
$
@
The --------------------- is responsible for the management of processes.
Shell
User
Kernel
Administrator
