Unix Interview Question and Answers
16. |
What difference between cmp and diff commands? |
|
- cmp - Compares two files byte by byte and displays the first mismatch.
- diff - tells the changes to be made to make the files identical.
|
17. |
How many prompts are available in a UNIX system? |
|
Two prompts, PS1 (Primary Prompt), PS2 (Secondary Prompt). |
18. |
What are shell variables? |
|
Shell variables are special variables, a name-value pair created and maintained by the shell. |
19. |
What is Block Started by Symbol? |
|
A data representation at the machine level, that has initial values when a program starts and tells about how much space the kernel allocates for the un-initialized data. Kernel initializes it to zero at run-time. |
20. |
What is the command to find out today’s date? |
|
date |