Unix Interview Questions and Answers
Question - 121 : - Enumerate some of the most commonly used network commands in UNIX
Answer - 121 : -
- telnet – used for remote login
- ping – an echo request for testing connectivity
- su – user switching command
- ftp – file transfer protocol used for copying files
- finger – information gathering command
Question - 122 : - Differentiate cmp command from diff command.
Answer - 122 : -
The cmp command is used mainly to compare two files byte by byte, after which the first encountered mismatch is shown. On the other hand, the diff command is used to indicate the changes that is to be made in order to make the two files identical to each other.
Question - 123 : - What is the use of -l when listing a directory?
Answer - 123 : -
-l, which is normally used in listing command like ls, is used to show files in a long format, one file per line. Long format refers to additional information that is associated with the file, such as ownership, permissions, data, and filesize.
Question - 124 : - What is piping?
Answer - 124 : -
Piping, represented by the pipe character “|”, is used to combine two or more commands together. The output of the first command serves as input the next command, and so on.
Question - 125 : - What is a superuser?
Answer - 125 : -
A superuser is a special type user who has open access to all files and commands on a system. Note that the superuser’s login is usually root, and is protected by a so-called root password.