0% found this document useful (0 votes)
54 views5 pages

Unix - 2021-22

Uploaded by

NIKHIL SINGH
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF or read online on Scribd
0% found this document useful (0 votes)
54 views5 pages

Unix - 2021-22

Uploaded by

NIKHIL SINGH
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF or read online on Scribd
You are on page 1/ 5
P-478 SET/IT/BT/C-701 B. Tech. (IT) (Seventh Semester) EXAMINATION, 2021-22 UNIX AND SHELL PROGRAMMING Time : Two Hours s [ Maximum Marks : 70 Note : (i) Attempt any five questions from Section A and any three questions from Section B. (ii) Answer each question of Section A within 50 words. (iii) Limit your answers within the given answer book. Additional answer book (B-Answer book) should not be provided or used. Section—A Note: Attempt any five questions. Each question carries 5 marks. 1. Explain the architecture of UNIX system. P.T.O. [2] P-478 2. Differentiate between Hardlink and Sofflink in Unix. Be Explain any two of following commands : @ 6) © @ ©) be passwd who script find What are the different types of files in UNIX ? Explain different modes of operations used in vi editor. Write down few commands used in each mode. Explain different types of permissions that can be set for a file in UNIX. Write commands for any two of following : @ Gi) Gi) (iv) w) To know process id of current shell To display processes associated with current user at the terminal To display all processes including user and system To display processes running by particular user Sjohin’ To display processes by current user and their parent process id 13] P-478 Section—B : Note : Attempt any three questions. Each question carries tr 15 marks. (a) Write commands for any two of following : (i) To know present working directory of user (ii) To know values of $PATH variable (6) Differentiate between internal and external commands of UNIX. (©) Differentiate between whatis and apropos command. 2. (@ How can the following be performed in vi editor ? (@) Delete a single character (ii) Copy 5 lines from source and placing these lines from source and placing these lines below selected line (b) Explain what will be the effect of the following commands in vi command mode : (i) /UNIX (ii) /print\> \us © @ ) © (b) [4] p-478 How can be the following performed in VI editor : (i) Insert content of a file to current cursor location (ii) Replace “message” with “msg” in current file Explain the contents of/bin,/usr/bin, /etc, /dev and var in UNIX file system. Differentiate between absolute and relative paths in UNIX. Explain following commands with appropriate example : (i) mkdir Gi) mv Write commands for the following : (i) List all files in current directory including ‘hidden files (ii) To list file sorted by modification time in reverse order Explain the output of the following commands : (@ chmod u+x note note 1 a (ii) find . — name “*.1st” -print © [5] Write commands for the following : P-478 (i) To list all files whose name starts with “chap” (ii) To display message on prompt “The new life character is \n” 5. (a) Explain outputs of the following commands : (cmp group! group! GB somt—t“|? +2 shortlist **Assume data of files from your side. (b) @ Explain ‘tr’ command with example. © Gi) Explain ‘uniq’ command with example. (Explain use of nohup. (ii) Explain use of nice. @ Write short note on the following : () () © @ © P-478 grep sed make utility redirection positional parameters in shell script 50

You might also like