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. |
Write A Command That Will Display Files In The Current Directory, In A Colored, Long Format. |
|
Answer» ls -l –color |
|
| 2. |
What Would Be The Effect Of Changing The Value Of Path To: .:/usr/della/bin: /bin: /usr/bin |
|
Answer» This would cause the shell to look in the /usr/della/BIN DIRECTORY after LOOKING in the CURRENT directory and before looking in the /bin directory when SEARCHING for a command file. This would cause the shell to look in the /usr/della/bin directory after looking in the current directory and before looking in the /bin directory when searching for a command file. |
|
| 3. |
How Do You Switch From Any User Type To A Super User Type? |
|
Answer» In ORDER to switch from any user type to a superuser, you use the su command. However, you will be asked to key in the CORRECT superuser password before FULL ACCESS privileges are granted to you. In order to switch from any user type to a superuser, you use the su command. However, you will be asked to key in the correct superuser password before full access privileges are granted to you. |
|
| 4. |
What Is The Output Of This Command? $who | Sort –logfile > Newfile? |
|
Answer» In this command, the output from the command “who” becomes the input to the “sort” command. At the same TIME, “sort” OPENS logfile, arranges it TOGETHER with the output from the command “who”, and PLACES the final sorted output to the file newfile. In this command, the output from the command “who” becomes the input to the “sort” command. At the same time, “sort” opens logfile, arranges it together with the output from the command “who”, and places the final sorted output to the file newfile. |
|
| 5. |
What Is Wild-card Interpretation? |
|
Answer» When a command line contains wild-card characters such as ‘*’ or ‘?’, these are replaced by the shell with a sorted list of files WHOSE pattern MATCHES the input command. Wild-card characters are used to setup a list of files for processing, instead of having it specified ONE at a TIME. When a command line contains wild-card characters such as ‘*’ or ‘?’, these are replaced by the shell with a sorted list of files whose pattern matches the input command. Wild-card characters are used to setup a list of files for processing, instead of having it specified one at a time. |
|
| 6. |
How Does The System Know Where One Command Ends And Another Begins? |
|
Answer» Normally, the newline character, which is GENERATED by the ENTER or RETURN key, acts as the signpost. However, the SEMICOLON and the ampersand characters can ALSO SERVE as command terminators. Normally, the newline character, which is generated by the ENTER or RETURN key, acts as the signpost. However, the semicolon and the ampersand characters can also serve as command terminators. |
|
| 7. |
Differentiate Cat Command From More Command? |
|
Answer» When using the cat command to display FILE contents, large data that does not FIT on the screen WOULD SCROLL off without pausing, therefore making it difficult to view. On the other hand, using the more command is more appropriate in such cases because it will display file contents one screen page at a TIME. When using the cat command to display file contents, large data that does not fit on the screen would scroll off without pausing, therefore making it difficult to view. On the other hand, using the more command is more appropriate in such cases because it will display file contents one screen page at a time. |
|
| 8. |
Why Is It That It Is Not Advisable To Use Root As The Default Login? |
|
Answer» The ROOT account is very important, and with abusive usage, can EASILY lead to system damage. That’s because safeguards that normally apply to USER accounts are not APPLICABLE to the root account. The root account is very important, and with abusive usage, can easily lead to system damage. That’s because safeguards that normally apply to user accounts are not applicable to the root account. |
|
| 9. |
You Have A File Called Tonky In The Directory Honky. Later You Add New Material To Tonky. What Changes Take Place In The Directory, Inode, And File? |
|
Answer» The DIRECTORY ENTRY is unchanged, since the name and INODE number REMAIN unchanged. In the inode file, the file size, time of last access, and time of last modification are updated. In the file itself, the new material is added. The directory entry is unchanged, since the name and inode number remain unchanged. In the inode file, the file size, time of last access, and time of last modification are updated. In the file itself, the new material is added. |
|
| 10. |
What Are Some Common Shells And What Are Their Indicators? |
|
Answer» SH – Bourne shell sh – Bourne shell |
|
| 11. |
What Are The Key Features Of The Korn Shell? |
Answer»
|
|
| 12. |
What Is A Typical Syntax Being Followed When Issuing Commands In Shell? |
|
Answer» TYPICAL COMMAND syntax under the UNIX SHELL FOLLOWS the format: Command [-argument] [-argument] [–argument] [file] Typical command syntax under the UNIX shell follows the format: Command [-argument] [-argument] [–argument] [file] |
|