0% found this document useful (0 votes)
3K views2 pages

LP Imp Questions

The document contains 20 questions across 4 units related to Linux programming. The questions cover topics such as Linux commands like head, tail, ps and grep; file handling utilities; differences between internal and external commands; awk and sed with examples; different shells; pipes and I/O redirection; single and double quotes; writing a shell script to find a factorial; meta characters; stream errors; stat functions; differences between getc(), fgetc(), stat(), fstat(), printf(), fprintf(), scanf() and fscanf(); Linux library functions; file system structure; process identifiers; reliable signals; exit(); zombie processes; and signal functions like sleep, abort, kill and alarm.

Uploaded by

7killers4u
Copyright
© Attribution Non-Commercial (BY-NC)
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
3K views2 pages

LP Imp Questions

The document contains 20 questions across 4 units related to Linux programming. The questions cover topics such as Linux commands like head, tail, ps and grep; file handling utilities; differences between internal and external commands; awk and sed with examples; different shells; pipes and I/O redirection; single and double quotes; writing a shell script to find a factorial; meta characters; stream errors; stat functions; differences between getc(), fgetc(), stat(), fstat(), printf(), fprintf(), scanf() and fscanf(); Linux library functions; file system structure; process identifiers; reliable signals; exit(); zombie processes; and signal functions like sleep, abort, kill and alarm.

Uploaded by

7killers4u
Copyright
© Attribution Non-Commercial (BY-NC)
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 2

Linux Programming Important questions

Unit-I 1. Explain the following commands with syntax, options and examples: (a) head (b) tail (c)ps d) grep

2. Discuss about various file handling utilities available in LINUX. Quote various options and examples for each. 3. Give the reason why Linux commands are divided into internal and external commands. 4. Explain awk with suitable examples. 5. Explain sed with suitable examples. Unit-II 6. Differentiate between different types of shells available in UNIX. 7. Write a short note on pipes and I/O Redirection operators. 8. Explain the significance of single quote and double quote. 9. Write a shell script to find the factorial of a number. 10. What does the shell do with the meta characters if it finds in the command line? Unit-III 11. Briefly explain about stream errors. 12. Differentiate between the three stat functions with examples. 13. Differentiate between the following terms: (a) getc( ) Vs fgetc( ) (b) stat( ) Vs fsat( ) (c) printf( ) Vs fprint( ) (d) scanf( ) Vs fscanf( ).

14.Explain the various Library functions in C 15. Explain file system structure in LINUX Unit-IV 16. What are process identifiers? Mention the commands for getting different IDs of calling process. 17. What are reliable signals? Explain about the primary features of reliable functions. Illustrate an example program for handling reliable signals.

18. Write a program that demonstrates the use of exit( ). 19. Explain the Zombie process 20. Explain the following signal functions with examples a) Sleep b) abort c) kill d) alarm

You might also like