• +91 9723535972
  • info@interviewmaterial.com

Linux Interview Questions and Answers

Related Subjects

Linux Interview Questions and Answers

Question - 31 : - What are daemons?

Answer - 31 : - Daemons are services that provide several functions that may not be available under the base operating system. Its main task is to listen for service request and at the same time to act on these requests. After the service is done, it is then disconnected and waits for further requests.

Question - 32 : - How do you switch from one desktop environment to another, such as switching from KDE to Gnome?

Answer - 32 : - Assuming you have these two environments installed, just log out from the graphical interface. Then at the login screen, type your login ID and password and choose which session type you wish to load. This choice will remain your default until you change it to something else.

Question - 33 : - What are the kinds of permissions under Linux?

Answer - 33 : - There are 3 kinds of permissions under Linux:- Read: users may read the files or list the directory- Write: users may write to the file of new files to the directory- Execute: users may run the file or lookup a specific file within a directory

Question - 34 : - How does case sensitivity affect the way you use commands?

Answer - 34 : - When we talk about case sensitivity, commands are considered identical only if every character is encoded as is, including lowercase and uppercase letters. This means that CD, cd, and Cd are three different commands. Entering a command using uppercase letters, where it should be in lowercase, will produce different outputs.

Question - 35 : - What are environmental variables?

Answer - 35 : - Environmental variables are global settings that control the shell's function as well as that of other Linux programs. Another common term for environmental variables is global shell variables.

Question - 36 : - What are the different modes when using vi editor?

Answer - 36 : - There are 3 modes under vi:- Command mode – this is the mode where you start in- Edit mode – this is the mode that allows you to do text editing- Ex mode – this is the mode wherein you interact with vi with instructions to process a file

Question - 37 : - Is it possible to use shortcuts for a long pathname?

Answer - 37 : - Yes, there is. A feature known as filename expansion allows you do this using the TAB key. For example, if you have a path named /home/iceman/assignments directory, you would type as follows: /ho[tab]/ice[tab]/assi[tab] . This, however, assumes that the path is unique and that the shell you're using supports this feature.

Question - 38 : - What is redirection?

Answer - 38 : - Redirection is the process of directing data from one output to another. It can also be used to direct an output as an input to another process.

Question - 39 : - What is grep command?

Answer - 39 : - grep a search command that makes use of pattern-based searching. It makes use of options and parameters that are specified along with the command line and applies this pattern in searching the required file output.

Question - 40 : - What could be the problem when a command that was issued gave a different result from the last time it was used?

Answer - 40 : - One highly possible reason for getting different results from what seems to be the same command has something to do with case sensitivity issues. Since Linux is case sensitive, a command that was previously used might have been entered in a different format from the present one. For example, to lists all files in the directory, you should type the command ls, and not LS. Typing LS will either result in an error message if there is no program by that exact name exist or may produce a different output if there is a program named LS that performs another function.


NCERT Solutions

 

Share your email for latest updates

Name:
Email:

Our partners