InterviewSolution
This section includes InterviewSolutions, each offering curated multiple-choice questions to sharpen your knowledge and support exam preparation. Choose a topic below to get started.
| 1. |
What is the login name of the administrator? |
|
Answer» root |
|
| 2. |
What is the default working directory of administrator? |
|
Answer» /root |
|
| 3. |
In which directory by default user home directories are created? |
|
Answer» /home |
|
| 4. |
Name three looping constructs provided by shell. |
|
Answer» while, until & for. |
|
| 5. |
How can you display nth line of a file? |
|
Answer» head −<n> file.txt | tail −1 |
|
| 6. |
Who designed linux OS? |
|
Answer» Linus Torvalds |
|
| 7. |
Expand JFS in context of file system? |
|
Answer» Journal File System |
|
| 8. |
Expand UFS in context of file system? |
|
Answer» UNIX File system. |
|
| 9. |
What is the default value of UMASK? |
|
Answer» 022 |
|
| 10. |
What is UMASK? |
|
Answer» UMASK is a Unix environment variable, which automatically sets file permissions created files. |
|
| 11. |
Which command can be used to write onto other currently logged in user’s console output terminal. |
|
Answer» write |
|
| 12. |
Which command can be used by the administrator to bring the system into single user mode? |
|
Answer» init s |
|
| 13. |
What is an internal command? |
|
Answer» Shell built in commands are called as internal commands. |
|
| 14. |
Which command can be used to know the terminal type? |
|
Answer» tty |
|
| 15. |
How can we list out all currently executing background processes? |
|
Answer» ps −e |
|
| 16. |
Which operator can be used to throw a process into background? |
|
Answer» Ampersand (&) |
|
| 17. |
What are the respective octal value for the permission bits r, w & x? |
|
Answer» 4, 2 & 1 respectively for r, w & x. |
|
| 18. |
Which command can be used to rename a file/directory? |
|
Answer» mv |
|
| 19. |
Which command can be used to change file access permission bits? |
|
Answer» chmod |
|
| 20. |
Which command can be used to execute a command/s repeatedly for the given schedule? |
|
Answer» Crontab |
|
| 21. |
What is inode? |
|
Answer» A file is given a unique number by OS and is called as inode. |
|
| 22. |
Explain the purpose of nohup command. |
|
Answer» To keep the command running even after the user who issues the command has logged out. |
|
| 23. |
How can you count for a particular pattern occurrences in a file? |
|
Answer» grep −c “pattern” <file> |
|
| 24. |
Which command can be used to display basic information about your server? |
|
Answer» uname |
|
| 25. |
How can you list all the directories using ls command? |
|
Answer» ls −l|grep “^d” |
|
| 26. |
What is the recommended size of swap space for a typical OS installation? |
|
Answer» Double the RAM size. |
|
| 27. |
What is LILO w.r.t linux? |
|
Answer» LILO means linux loader, which loads the kernel into memory and starts the OS. |
|
| 28. |
If you are not logged in and the scheduled command produces a displayable output, how would you see it? |
|
Answer» Will receive the mail of the same. |
|
| 29. |
What is the purpose of ‘at’ command? |
|
Answer» To execute a command/commands at a specific time. |
|
| 30. |
Which command you can use to find the remaining disk free space? |
|
Answer» df |
|
| 31. |
How can you list hidden files too with ls command? |
|
Answer» ls −a |
|
| 32. |
Which is the environment variable which holds your home directory information? |
|
Answer» HOME. |
|
| 33. |
What is a mount point? |
|
Answer» It the directory through which date I/O happen on to/from a device. |
|
| 34. |
What is the effect of ‘cd ..’ if your current working directory is root (/) ? |
|
Answer» Still the current working directory would be / |
|
| 35. |
How can we redirect the output of one command to the another command? |
|
Answer» Place the commands connected with pipes (|). |
|
| 36. |
Distinguish between cmp and diff commands? |
|
Answer» ‘diff’ shows all the differences from two file whereas ‘cmp’ shows the only the first occurring difference. The said is applicable only if differences between the files do exist. |
|
| 37. |
How can you suppress trailing new line for echo command? |
|
Answer» echo −e “text”. Option –e places the cursor on the same line |
|
| 38. |
Which command can be used to create alternate name for an existing command? |
|
Answer» alias |
|
| 39. |
What is the role of book block? |
|
Answer» It contains a program called MBR (Master boot record) which load the kernel as the part of the system booting. |
|
| 40. |
Are arrays supported in shell scripts? |
|
Answer» Yes |
|
| 41. |
Explain the use of SUID permission bit on a file. |
|
Answer» It give the process to have the privileges of the owner of the file during the instance of the program. |
|
| 42. |
What is the first operating system designed using a high level programming language? |
|
Answer» UNIX |
|
| 43. |
Which filter can be used to display first 10 lines of a file? |
|
Answer» head. |
|
| 44. |
What is the basic purpose of ‘find’ command? |
|
Answer» To search for a file/files. |
|
| 45. |
Which command can be used to stop the current executing process in the background? |
|
Answer» kill |
|
| 46. |
Command ‘telnet’ is used for ___ |
|
Answer» To connect to remote UNIX/Linux machine. |
|
| 47. |
Which is the command used to create a new user on the system? |
|
Answer» useradd |
|
| 48. |
What is a process id? |
|
Answer» OS assigns an unique process identification number for the currently executing processes is called as process-id (PID). |
|
| 49. |
Command ‘cat’ basically does ___ |
|
Answer» Concatenation of files text. |
|
| 50. |
Which filter can be used to extract a/specific/range of character from the lines of text? |
|
Answer» cut |
|