Professional Documents
Culture Documents
Unit-1 Question Bank
Unit-1 Question Bank
The UNIX Operating System, The UNIX Architecture, Features of UNIX, Locating Commands,
Internal and External Commands, The File System: The File, The Parent – Child Relationship, The
HOME variable, Absolute Pathnames and Relative Pathnames, The UNIX File S ystem, ls –l: Listing
File Attributes, The –d Option, Listing Directory Attributes, File Ownership, File Permissions,
chmod: Changing File Permissions, Changing File Ownership.
4 Explain absolute path name and relative path name each with an example.
OR
With suitable example, bring out the differences between absolute and relative path name.
7 Mention the different categories of files that exist in UNIX. Discuss each one of them
briefly.
OR
What is a file? Explain the different types of files as available in UNIX operating system.
OR
Define file. With examples, explain the three categories of files supported by UNIX.
OR
Name the two types of ordinary files and explain the difference between them. Provide
three examples of each type of file.
What is file permission? What are the different ways of setting file permission? Explain.
OR
What is file permission? Explain how to use chmod command to set the permissions in a
relative manner with an example.
OR
Explain the different types of permissions changes supported by the unix operating
system.
OR
Explain the use of chmod command to change file permission using both absolute and
Relative methods.
OR
Which command is used to change the file permission in Unix? Explain with an example.
OR
Explain the command which is available in Unix file system to change the permission of a
file.
8 What do you mean by dot (.) and dot dot (..). Discuss with suitable examples.
10 With the help of a diagram, explain the parent –child relationship in UNIX file system.
OR
What is a parent child relationship? with the help of neat diagram explain the unix file
system.
OR
Explain the Unix directory hierarchy.
11 Name the command used for creating, deleting and changing the directory. Explain with
the syntax and example.
12 Files current permissions are rw- -w- r—write the chmod expression required to change
them for the following.
i) r—r-- --x
ii) rwx rwx –x
iii) r-x r-x r-x
iv) rwx rwx r—
Using both relative and absolute methods of assigning permissions.
13 What are the system calls, and what role do they play in the system? How is C
programming to different and powerful in the UNIX environment compared to windows?
OR
Describe system calls.
14 What is the use of the following directories? Explain
i) /bin ii) /usr/bin iii) /tmp iv) /etc v) /usr
15 What is user and group in Unix? Explain the related commands for changing ownership
and group
17 Write a shell script to get current date, time, user name and current working directory.
18 Display only the names of all users who are logged in also store the results in user.txt.
21 Operating systems like Unix provide services both for programs and users. Explain.
22 Explain briefly the significance of a Unix file and the relation it has to a process. Why do
Unix systems predominantly use text files?
28 Explain the following general purpose utilities with the help of suitable examples.
1) wc
2) who am i
3) tee