• +91 9723535972
  • info@interviewmaterial.com

Unix Interview Questions and Answers

Unix Interview Questions and Answers

Question - 41 : - What is the general format of UNIX command syntax?

Answer - 41 : -

In general consideration, UNIX shell commands follow the below pattern:

Command (-argument) (-argument) (-argument) (filename)

Question - 42 : - Describe the usage and functionality of the command “rm –r *” in UNIX?

Answer - 42 : -

The command “rm –r *” is a single line command to erase all files in a directory with its subdirectories.

“rm” – command for deleting files.
“-r”   – command to delete directories and subdirectories with files within.
“*”     – indicates all entries.

Question - 43 : - Describe the term directory in UNIX?

Answer - 43 : -

A specialized form of a file that maintains the list of all files included in it, is called a directory. Each file is assigned to a directory.

Question - 44 : - Specify the difference between absolute path and related path?

Answer - 44 : - Absolute path refers to the exact path as defined from the root directory. Related path refers to the path related to the current location.

Question - 45 : - What is the UNIX command to list files/folders in alphabetical order?

Answer - 45 : - The ‘ls –l’ command is used to list down files and folders in alphabetical order. When you use ‘ls –lt’ command, it lists down files /folders sorted with modified time.

Question - 46 : - Describe links and symbolic links in UNIX?

Answer - 46 : -

The second name for a file is called as Link. It is used to assign more than one name for a file.  It is not valid to assign more than one name to a directory or to link filenames on different computers.

General command: ‘– ln filename1 filename2’

Symbolic links are defined as files that contain only the name of other files included in it. Directed to the files pointed by it is the operation of the symbolic link.

General command: ‘– ln -s filename1 filename2’

Question - 47 : - What is the FIFO?

Answer - 47 : - FIFO (First In First Out) is also called as named pipes and it is a special file for date transient. Data is read-only in the written order. This is used to inter-process communications, where data is written to one end and read from another end of the pipe.

Question - 48 : - Describe fork() system call?

Answer - 48 : - The command used to create a new process from an existing process is called fork(). The main process is called the parent process and the new process id is called the child process. The child process id is returned to the parent process and the child gets 0. The returned values are used to check the process and the code executed.

Question - 49 : - Explain the following sentence?

Answer - 49 : - The root account is very important and it can lead to system damage easily with abusive usage. So, the securities that get normally applied to user accounts are not applicable to the root account.

Question - 50 : - What is mean by Super User?

Answer - 50 : -

The user having access to all files and commands within the system is called a superuser. Generally, the superuser login is to root and the login is secured with the root password.


NCERT Solutions

 

Share your email for latest updates

Name:
Email:

Our partners