Professional Documents
Culture Documents
Unit I
Chapter – 1 Linux Basics
1) What are environment variables? What is the purpose of environment variables in Linux
System? (RB Page No 123)
2) What are the types of Environment Variables? (RB Page No- 123)
3) What are Global Environment variables? (RB Page No-124)
4) How to Display Global Environment Variables in Linux System?
Give Command? (RB Page No-124)
5) Explain the following Environment Variables? In Linux System:-
1) HOME 5) PS1 9) PWD
2) LOGNAME 6)PS2 10) PATH
3) TERM 7)MAILCHECK
4) SHELL 8) MAIL (SD Page No )
6) How to set Environment Variables? Explain two methods. (RB Page No-127 -129)
(-> setting local environment variables)
(-> setting local environment variables as global environment variables)
7) How to Remove Environment variables? (RB Page No129 – 130)
8) How to set the path environment Variable in Linux system? What does it do?
Explain with Example? (RB Page No-134 – 135)
9) List and explain the startup files in Linux System? (RB Page No-135 – 141)
10) How to use arrays in environment variables in Linux System? (RB Page No 142–143)
11) How to create command aliases in Linux system? (RB Page No 143)
**********************************************************************************
Unit II
Chapter – 6 Understanding Linux File Permissions
1) Explain the different types of structured commands used in script file with examples?
(RB Page No 229 – 233 )
2) Explain test command and its use in script file with examples?
(RB Page No 233 – 236)
3) Explain test numeric comparison commands with examples?
(RB Page No 234 – 236)
4) Explain test commands for string comparisons with examples?
(RB Page No 236 – 240)
5) Explain test commands for file comparison with examples?
(RB Page No 241 – 249)
6) Explain compound condition testing used in script file with examples?
(RB Page No 249 – 250)
7) How to use double parentheses and double brackets in advanced if - then command in
script file? (RB Page No 250 – 251 )
8) Explain case command with example? (RB Page No 252 – 253 )
11) Give Examples of looping on file data? (RB Page No 273 – 274 )
12) How to control the loop in shell scripting?
(break and continue ) (RB Page No 274 – 280)
13) How to process output of the loop? ( >, |) ) (RB Page No 281 – 282 )
**********************************************************************************
Unit III
Chapter 12 Presenting Data
1) How to display the output from scripts in Linux System? (RB Page No 313 )
2) List and explain standard file descriptors with example? (RB Page No 314 – 318)
3) How to redirect output in the script? Explain two methods. (RB Page No 318 – 320 )
4) How to redirect input in the script? (RB Page No 321 – 325 )
OR
How to create output file descriptors with example? (RB Page No 321 – 322 )
How to redirect file descriptors? (RB Page No 322 )
How to Create input file descriptors? (RB Page No 322 )
How to create a read / write file descriptors? (RB Page No 3233 – 324 )
How to close file descriptors? (RB Page No 324 – 325 )
5) How to suppress command output in Linux System? (RB Page No 328 )
6) How to list open file descriptors in Linux System? (RB Page No 326 – 327 )
7) How to handle creation of temporally files and directories in Linux System?
(RB Page No 328 – 332)
8) Write a short note on logging messages?
OR
How to send output both to the monitor and to a file for logging?
(RB Page No 332 – 333)
5) How to trap a script on exit in Linux System? (RB Page No 340 – 341 )
6) How to remove a trap in Linux System? (RB Page No 340 – 341 )
7) How to run :-
i) Single job in the background mode?
ii) Multiple jobs in the background mode?
8) How to run Script without a console? (RB Page No 343 – 344 )
9) How to view job in Linux System? (RB Page No 345 )
10) How to restart jobs in Linux system? (RB Page No 347 )
11) How to set scheduling priority of a command in Linux System? (RB Page No 348 – 349 )
12) How to run script at preselected time in Linux System using at, batch and crontable
commands? (RB Page No 349 – 354 )
13) How to start script at boot time?
OR
Explain boot processes in Linux System? (RB Page No – 355 – 357)
1) What is sed editor? Explain its general syntax. (RB Page No –420)
2) How to give single instruction/an editor command in command line in sed?
(RB Page No – 421)
3) How to give multiple instruction/multiple editor commands in command line in sed? (RB
Page No – 422)
4) How to read editor commands from file in sed? (RB Page No – 422)
5) Explain string substitution commands/flags in sed editor? (SD, RB Page No 431-432)
6) Explain different types of addressing used in sed editor? (SD 260 -262, RB Page No 432-
434)
7) Explain line addressing commands in sed editor? (SD 256 - 257)
8) Explain the commands to delete lines in sed? (RB Page No 434-436)
9) Explain text editing commands in sed editor? (SD, RB Page No 436-440)
10) Give commands for printing information in sed? (RB Page No 440-442)
11) Explain the commands to write data into file and read data from file in sed editor? (SD,
RB Page No 442-445)
12) How to transform data in file in sed editor?
13) What is awk/gawk and its purpose? Explain its general syntax.
(RB Page No – 423)
14) How to represent data fields in awk/gawk? (RB Page No – 425)
15) How to read program or script from file in awk/gawk? (RB Page No 426-427)
16) How to run scripts before and after processing data in awk/gawk? (RB Page No 427-429)
17) Explain awk built in variables with examples? (SD 390 - 391)
18) Explain awk built in functions with examples? (SD 393 - 394)
19) Explain the options –f and –F in awk? (SD 382 - , RB )
**********************************************************************************
Unit IV
Chapter 3 Linux Firewall
(Give only commands along with description for all questions)
References:-