How are Devices Represented in UNIX? | SolveZone
whatssapp

Product Detail

How are Devices Represented in UNIX?

University  Amity blog
Service Type Assignment
Course
Semester
Short Name or Subject Code Basics of OS (UNIX LINUX and Shell Programming)
Product of Assignment (Amity blog)
Pattern Section A,B,C Wise
Price
Click to view price


Basics of OS (UNIX LINUX and Shell Programming)

Assignment A

1.    How are devices represented in UNIX?

    
2.    Brief about the directory representation in UNIX.

    
3.    What is the Unix system calls for I/O?

    
4.    What are the links and symbolic links in the UNIX file system?

    
5.    How do you create special files like named pipes and device files?    


6.    Discuss in brief the mount and unmount system calls.

    
7.    How does the inode map to the data block of a file?


    
8.    Brief about the initial process sequence while the system boots up.


Assignment B

Case Detail:  

1.    Explain how the buffer cache is used by the file system.

2.    What is the difference between Swapping and Paging?

3.    What is IPC? What are the various schemes available?


Assignment C

Question No.  1    Marks – 10 Solve by www.solvezone.in contact for more details at - 8882309876
How many layers are there in Unix architecture    
 
Options    
1    
4    
6    
5  

Question No.  2    Marks - 10
Which is the correct sequence of Unix Architecture      
 
Options    
Hardware  Applications   Shell Kernel    
Applications Hardware  Shell Kernel    
Hardware  Shell Applications   Kernel    
Hardware Kernel Shell Application  

Question No.  3    Marks - 10
In Unix name the layer that interacts with hardware    
 
Options    
Shell    
Kernel    
Application    
Software

Question No.  4    Marks - 10
Where douser issue a command in Unix    
 
Options    
kernel    
shell    
monitor    
application

Question No.  5    Marks - 10
Which command will print the name of logged-in user?    
 
Options    
echo user    
echo USER    
echo $user    
echo $USER

Question No.  6    Marks - 10
Which among the following is a valid Unix command?    
 
Options    
LS    
ls    
Ls    
lS

Question No.  7    Marks - 10
Which type of variable HOME is?    
 
Options    
Environment variable    
system variable    
local variable    
kernel variable

Question No.  8    Marks - 10
Which command will print the current directory the user is into?    
 
Options    
CWD    
PWD    
led    
SWD

Question No.  9    Marks - 10
Which variable stores the home directory of the user    
 
Options    
HUSER    
HOME    
USER    
Home

Question No.  10    Marks - 10
How can we find out the User's login shell?    
 
Options    
echo $Shell    
echo $login    
echo SHELL    
echo $SHELL    

Question No.  11    Marks - 10
Which command will print the calendar of the current month?    
 
Options    
cal cur    
cal month    
cal    
calender

Question No.  12    Marks - 10
which command will print the calender of March 2010    
 
Options    
cal 201003    
cal 2010 03    
cal 03 2010    
CAL 2010 03

Question No.  13    Marks - 10
How can we display the today's date in Unix?    
 
Options    
today    
TODAY    
DATE    
date

Question No.  14    Marks - 10
which option is used to display only the current month number in date command?    
 
Options    
%m    
%h    
%month    
%mm
Question No.  15    Marks - 10
which option is used to display only the current month name in date command?    
 
Options    
%m    
%h    
%month    
%mm

Question No.  16    Marks - 10
If the current month is august then which of the following will correctly output the month details in the format

Aug 08    
 
Options    
date +"%m %h"    
date +"%h %m"    
date +"hm"    
date +"mh"

Question No.  17    Marks - 10
Which command is used to display a simple string on command prompt    
 
Options    
echo    
print    
display    
cat    

Question No.  18    Marks - 10
Which command is used to display the information of the all logged in users?    
 
Options    
WHO    
who    
ALL    
all

Question No.  19    Marks - 10
Which command will change the current directory?    
 
Options    
cd    
PD    
pwd    
ld

Question No.  20    Marks - 10
If the directory structur is as below:
  D1 has D2 and D3
  D2 has D4
  D3 has D5

If you are in D2 directory, how will you reach to D1?
     
Options    
cd ..    
cd /    
cd .    
cd ./

Question No.  21    Marks - 10
If the directory structur is as below:
  D1 has D2 and D3
  D2 has D4
  D3 has D5

If you are in D1 directory, how will you reach to D5?    
 
Options    
cd /D3/D5    
cd ./D3/D5    
cd ../D3/D5    
cd /../D3/D5

Question No.  22    Marks - 10
If the directory structur is as below:
  D1 has D2 and D3
  D2 has D4
  D3 has D5

If you are in D4 directory, how will you reach to D1?
     
Options    
cd ./..    
cd ../.    
cd ../..    
cd /../..

Question No.  23    Marks - 10
If the directory structur is as below:
  D1 has D2 and D3
  D2 has D4
  D3 has D5

If you are in D2 directory, how will you reach to D5?
     
 
Options    
cd ../D5/D3    
cd ../D3/D5    
cd D3/D5    
cd D5/D3

Question No.  24    Marks - 10
If the directory structur is as below:
  D1 has D2 and D3
  D2 has D4
  D3 has D5

If you are in D3 directory, how will you reach to D41?    
 
Options    
cd D3/D2/D4    
cd D2/D4    
cd ../D2/D4    
cd ./D2/D5

Question No.  25    Marks - 10
Which command will create a directory?    
 
Options    
cdir    
mkdir    
make    
create

Question No.  26    Marks - 10
Which command will create a direcory with name Test in current directory?    
 
Options    
make Test    
mkdir Test    
create Test    
cdir Test

Question No.  27    Marks - 10
Which command will remove a directory?    
 
Options    
remove    
rename    
move    
rmdir    

Question No.  28    Marks - 10
Why do we us ls commad?    
 
Options    
To display list of users    
to display list of files    
to display list of processes    
To display variables

Question No.  29    Marks - 10
Which command will print a detailed listing of file?    
 
Options    
ls -d    
ls -f    
ls -l    
ls -k

Question No.  30    Marks - 10
How ls is used to display the files in reverse order?    
 
Options    
ls -r    
ls -R    
ls -d    
ls -l

Question No.  31    Marks - 10
How file listing can be sorted by modification time?    
 
Options    
ls -d    
ls -l    
ls -t    
ls -u

Question No.  32    Marks - 10
Which of the following commands is used to copy a file wb from the programs directory into a file called wbx in the misc directory?    
 
Options    
copy programs/wb misc/wbx    
cp programs/wb misc/wbx    
mv programs/wb misc/wbx    
put programs/wb misc/wbx

Question No.  33    Marks - 10
Which command is used to create a dupliacte of an existing file?    
 
Options    
cp    
copy    
mv programs/wb misc/wbx    
duplicate

Question No.  34    Marks - 10
How can we create a copy of file Test which is in current diretory? The new file should be created in source directory    
 
Options    
cp Test Source/Test    
copy Test Source/Test    
cp  Source/Test  Test    
copy  Source/Test  Test

Question No.  35    Marks - 10
How a file can be removed in unix?    
 
Options    
remove filename    
rm filename    
filename rm    
filename remove    

Question No.  36    Marks - 10
How can we rename a file Test as Testbk    
 
Options    
rename Test Testbk    
rm Test Testbk    
mv Test Testbk    
cp Test Testbk

Question No.  37    Marks - 10
How can we print the content of a file Test on screen?    
 
Options    
display Test    
echo Test    
cat Test    
con Test

Question No.  38    Marks - 10
how can a file named as Test be created by taking data from screen?    
 
Options    
cat  >>Test    
cat  Test    
cr Test    
cr >> Test

Question No.  39    Marks - 10
How can the content of file Test can be appended into the file Testbk?    
 
Options    
cat Test>Test1    
cat Test>>Test1    
cat Test1>Test    
cat Tes1t>>Test

Question No.  40    Marks - 10
Which of the following options will print the no of characters in a file?    
 
Options    
count filename    
wc -c filename    
count -c filename    
wc -l filename