Unix Shell Progamming
2022 [8x1]
a) UNIX is written in _________ language
b) Which command is used for displaying CALENDER in UNIX?
b) ________ command is used by the user to change their login password in UNIX.
c) _________ comand is used to create a directory.
d) Which command is used for displaying contents of of a file?
e) What is the full form of BASH?
f) To list the invisible files, which command is used?
g) The root directory is repersented by which symbol?
2023
(a) Which of the following is not related to UNIX?
a. UNIX was not written in C language
b. Linux is also a version of UNIX
c. UNIX is not for a window
d. None of these
(b) The "cat" command is an internal Command [True/False].
(c) How many types of permissions a file has in UNIX?
a. 2 b. 3 c. 4 d. 5
(d) What is full form of SUID in File Permission?
a. Select User ID b. Set User ID c. Select Unique ID d. Set Unique ID
(e) Which of the following is not filter in UNIX?
a. cat b. head c. tail d. cd
(f) Which editor is used by the UNIX system to edit files?
a. vi b. sublime c. notepad d. word
(g) Which of the following loops is not available in shell?
a. The for loop b. The until loop c. The select loop d. The for each loop
(h) Which one of the following is the correct syntax for grep command?
a. grep options filename(s)
b. grep options pattern
c. grep pattern filename
d. grep options pattern filename(s)
2024 [8x1]
(a) Which of the following is operating system?
a. Unix b. Microsoft Windows c. Ubuntu d. All of these
(b) Commands of UNIX operating system classified as
a. 2 b. 3 c. 4 d. None of these
(c) ________ command is used to change the permissions of a file.
a. chmed b. chmod c. chown d. chgrm
(d) Group ownership means?
a. group of users who can create the file
b. group of users who can edit the file
c. group of users who can access the file
d. group of users who can delete the file
(e) Which filter can be applied on lines of text for arranging in ascending or descending order?
a. sort b. arrange c. collate d. None of these
(f) A pipe is used to join two or more commands by using a pipe "|" character.
a. True b. False
(g) The ________ loop is not available in shell.
a. while loop b. foreach loop c. until loop d. for loop
(h) ________ statement is used to terminate the execution of the entire loop?
a. end b. terminate c. break d. stop
2022
[8x1.5]
a) What is LINUX?
b) What are pipes?
c) What is aroot user?
d) What is KSH?
e) What are the key features of the Korn Shell?
f) What is inode?
g) What are shell variables?
h) What is piping?
i) What is PID?
j) Which command will change your prompt to USER?
[8x2]
a) What is the difference between UNIX and window operating system?
b) What do you mean by a process?
c) How to copy files from one directory to other in UNIX?
d) What is the diference between cat command and more command
e) What is Shell?
f) What is system varibles in UNIX?
g) Write down the syntax of if then fi.
h) What is filter?
i) How to edit an existing file using vi editor explain it.
j) What is the meaning of /mount ?
2023 [8x1.5]
(a) Define UNIX operating system?
(b) What is system process?
(c) Define external commands of UNIX.
(d) How to create an user in Unix?
(e) What does chmod 744 mean in Unix?
(f) What is file permission?
(g) What is filter in Unix?
(h) Is vi a good editor?
(i) Can shell scripts have functions?
(j) How do I use grep to find patterns?
[8x2]
(a) What is the kernel of unix?
(b) How to create process.
(c) Write any two external commands of Unix
(d) How do you create a user in Unix?
(e) How do you granting right to users in Unix?
(f) What is disk management?
(g) What are the types of pipes in Unix?
(h) What is system calls?
(i) How do you call a function in shell script?
(j) How are the uses of cut and join in utility programs in Unix?
2024 [8x1.5]
(a) Define an operating system.
(b) What is Unix process?
(c) Write two internal commands of UNIX.
(d) What are the different types of users in Unix?
(e) What does chmod 770 mean in Unix?
(f) Define symbolic links.
(g) What is the uses of filter in Unix ?
(h) Define system call.
(i) Can shell scripts have functions?
(j) How do I use grep to find patterns?
[8x2]
(a) Define Unix operating system.
(b) What are Unix external commands?
(c) What is use of fork command?
(d) How to create users in Unix?
(e) What is hard links?
(f) What are various editors present in Unix?
(g) What is shell script?
(h) How to execute shell script?
(i) What are utility programs?
(j) Write the syntax of for loop in shell.
2022 [4x6]
1.(a) Explain in details the architecture of UNIX operating system.
Or
(b) What do you mean by process? Explain the different types of system processes.
2.(a) Explain the different types of permissions in UNIX file system.
Or
(b) Differentiate between hard link and soft link.
3.(a) Explain in details about the Command line Shell and Graphical Shell.
Or
(b) Explain the different modes of operation in vi editor.
4.(a) Write the Shell script to find out the factorialof a number.
Or
(b) Write the Shell script to find the greatest number among the three numbers.
2023
1.(a) Discuss the architecture of Unix operating system.
Or
(b) What is Process? Explain process creation phases.
2.(a) What is file? Briefly describe file permissions in Unix.
Or
(b) Discuss granting right to users in brief.
3.(a) Write a Unix shell script to check a year is leap year or not.
Or
(b) Explain system calls and its uses.
4.(a) Write a Unix shell script to explain if else statement.
Or
(b) Write a shell program to calculate the factorial of a number.
2024
1.(a) Explain features and architecture of Unix operating system.
Or
(b) What is process? Discuss system process in brief.
2.(a) What is file? Discuss file access permissions.
Or
(b) Explain creation of users and granting rights to users.
3.(a) Write a Unix shell script to check a number is prime number or not.
Or
(b) Discuss various editors present in Unix.
4.(a) Discuss different looping statements of Unix shell with examples.
Or
(b) Discuss utility programs of Unix using cut, paste and join.