WorksheetsUNIX Commands
Total questions: 10
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.
In a system, if 5 people are currently using the vi editor. then the number of corresponding processes will be
1
5
2
0
If the command cat x is executed after successfully executing the command time sort filename > x, then
only the time details will be displayed
only the sorted contents of the file filename will be displayed
an error message will be displayed
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
