NEW
Font size
Worksheetsshell programing
Total questions: 49
Worksheet time: 25mins
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
What is the default symbol for command prompt in Bourne shell?
!
#
$
@
Which of the following is not a feature of Unix?
A) multiuser
B) easy to use
C) multitasking
D) portability
Which part of the Unix operating system interacts with the hardware?
A) Application program
B) Vi editor
C) Kernel
D) Shell
Which command is used to compress files?
A) Zip
B) Zipc
C) gunzip
D) gzip
echo command is used for _________
A) displaying operating system details
B) displaying errors
C) displaying date and time
D) displaying diagnostic messages
Which of the following commands is used to list contents of directories?
Which command is used to remove a file?
The cat command is used to
(A) Capture a file
(B) Display a file
(C) Print a file
(D) Copy a file
Which of the following commands is used to assign executable permission to the owner of the file named "note"?
(A) chmod g+x note
(B) chmod u+w note
(C) chmod u+x note
(D) chmod ugo+x note
Which command will be used with vi editor to append text at end of line?
(A) A
(B) a
(C) i
(D) l
Which command is used to list all the files with extension .lst?
(A) ls -l *.lst
(B) ls lst*
(C) ls .
(D) ls *[lst]
Which shell programming construct would be best for writing a menu driven shell script?
case
if
test
for
UNIX Shell is designed for the:
Developer
Programmer
End user
None of the above
What is the core of a Linux Operating System?
Kernel
Shell
Command
GUI
The following command can list out all the current active logins.
A - whoami
B - who am i
C - who
D - None of the above.
Unix is a
Single User, Single tasking OS
Single User, Multi-tasking OS
Multi-User, Multi- tasking OS
None
To Display line of text/string that are passed as an argument with a command
cat
echo
ls
none of the above
Which command in UNIX is used to change the user account passwords.
pwd
password
passwd
none of the above
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
What is a shell script?
group of commands
a file containing special symbols
a file containing a series of commands
group of functions
Which command is used for making the scripts interactive?
a) ip
b) input
c) read
d) write
The first argument is read by the shell into the parameter ___
a) 1$
b) $3
c) $$
d) $1
The complete set of positional parameters is stored in ______ as a single string.
a) $n
b) $#
c) $*
d) $$
Which command is used to display the top of the file?
A cat
B.head
C.more
D.grep
E.None of the above
What command was NOT discussed?
AWK
SED
DD
GREP
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 display the top of the file?
A cat
B.head
C.more
D.grep
E.None of the above
which commands gives the no of recently logged in users?
who
who | wc -w
whoami | wc -l
who | wc -l
delete all file starting with d and ending with t?
rm dt*
rm d*t
rm td*
rm t*
change permission of a file to rw-r--r-x?
chmod 546 file
chmod 642 file
chmod 645 file
chmod 655 file
Which command is used for printing the current working directory?
HOME
cd
pwd
dir
cd command cannot be used without any argument.
True
False
Which command is used for creating directories?
rmdir
mkdir
cd
cp
We can create multiple directories by single invocation of mkdir command.
True
False
Which command is used for removing an empty directory?
mkdir
rmdir
del
remove
Which of the following is true about the date command?
Without arguments it displays the current date only
Without arguments it displays both current date and time
The standard tree structure starts at which directory?
home
user
root
bin
The --------------------- is responsible for the management of processes.
Shell
User
Kernel
Administrator
On a Unix system, the ______________ refers to a privileged account with unrestricted access to all files and commands
root user
home user
unknown user
super user
What term is used to describe a running program on Linux?
Application
Process
Runtime
Project
An Operating System is an interface between
user and software
user and hardware
user, software and hardware
None of the above
Unix operating system is written in
Ada Language
Perl Language
C Language
Pascal Language
ksh means
Korn Shell
Kornn Shell
Shell
C shell
