Linux Interview Questions and Answers
Question - 81 : - How to exit from vi editors?
Answer - 81 : -
We can use two commands to exit from the vi editor. They are
- Wq: wq command saves the current work and exits from the vi editor.
- q!: q! The command does not save the current work, but it exits from the vi editor.
Question - 82 : - How to delete information from a file in vi?
Answer - 82 : -
The following commands are used to delete information from a file in vi editors.
- Command x deletes the current character.
- Command dd deletes the current line.
Question - 83 : - Enlist some Linux to file content commands?
Answer - 83 : -
File content commands
- head: Display top lines of the file.
- tail: Display the last lines of the file.
- cat: Concatenate more than 2 files.
- more: Displays the content in pager form to view in the terminal.
Question - 84 : - Explain the work of the Ctrl+Alt+Del key combination on the Linux operating system?
Answer - 84 : -
In Linux, the Ctrl+Alt+Del key is used to restart the computer, and it does not display any confirmation message before rebooting the system.
Question - 85 : - What is Zombie Process?
Answer - 85 : -
It is a process whose execution is completed but even the information exists in the process table. It occurs for the child process because the parent process needs to read the child process status. Once it is completed using the wait system call, then the zombie process is removed from the process table. This is known as Zombie Process.
Question - 86 : - Explain the features of Stateless Linux Server?
Answer - 86 : -
Features of Stateless Linux Server
- Stores the prototype of every system.
- Stores the snapshot was taken.
- Stores the home directories.
- Uses LDAP, which contains the information about which snapshot should run on which system.
Question - 87 : - What is a Stateless Linux Server?
Answer - 87 : -
It is a centralized server that does not have any exists states on the working station. It may have scenarios when a state of a particular system takes a snapshot then, the user wants all other machines to be in that particular state.
Question - 88 : - Describe how a parent and child process communicates with each other?
Answer - 88 : -
The parent process communicates with the child process by using pipes, sockets, messages queues, and more.
Question - 89 : - What is meant by PIPE in Linux?
Answer - 89 : -
It is a form of redirection that is used in Linux, it is used to combine more than two commands and the output of one command can take as input to the next command.
Syntax:
command_1 | command_2 | command_3 | .... | command_N
Question - 90 : - What is meant by internal commands and external commands?
Answer - 90 : -
- Internal Commands: Commands directly run by the shell are known as internal commands and there is no separate process to run the commands.
- External Commands: Commands which are run by the kernel are known as external commands and every single command has its own unique process id.