• +91 9723535972
  • info@interviewmaterial.com

Linux Interview Questions and Answers

Related Subjects

Linux Interview Questions and Answers

Question - 91 : - What are the features of the Linux operating system?

Answer - 91 : -

Following are the features of the Linux Operating System

  • Portable: Software can work on different types of hardware in the same way. It can carry easily in pen drives and memory cards.
  • Open Source: Source code available for free, and its community-based development project. 
  • Multi-User: Multiple users can use ram, applications and run programs at the same time. 
  • Multiprogramming: Multiple programs or applications can run at the same time. 
  • Shell: It has a special interpreter program where you can execute programs and commands of the system. 
  • Security: It provides authentication, authorization, and encryption to provide security to the data. 

Question - 92 : - Enlist some Linux distributors (Distros) along with their usage?

Answer - 92 : -

We have so many Linux Distributors, among them, we discuss a few important ones.

  • Linux Mint: It is stable and robust. Linux Mint uses mate desktop and cinnamon. 
  • Debian: It stands for robustness, stability, and a well-oiled release cycle. It is user-friendly. Debian version 8 will be replaced by version 9.
  • Ubuntu: It is available for both desktop and server editions and is based on Debian.  
  • openSUSE: It is a good choice for new users and existing users.
  • Manjaro: It gives a pleasant experience for new and experienced users.

Question - 93 : -
Why is Linux considered more secure than other operating systems?

Answer - 93 : -

Linux is an open-source operating system, nowadays it is rapidly growing in the technology market. We have a few reasons why Linux is more secure than other OS.

  • The perk of accounts: Linux allows only a few users to access the system. Thus, the virus cannot attack the whole system, it may cause only a few files in the system. 
  • Strong Community: Linux users first accomplished the files before they open. So they can save their systems from vulnerabilities. 
  • Iptables: Iptables used by the Linux because it checks the security circle of the system. 
  • Different Working Environment: Linux system has different working environments like Linux Mint, Debian, Arch, and many more, these working environments protect from the virus.
  • Recording in Linux: It maintains log history because later it can view the details of the system files easily. 
  • Few User: Linux users are less compared to others, due to this security will be more.

Question - 94 : - What is the cat command in Linux?

Answer - 94 : -

In Linux cat command concatenates and prints files. Users might issue cat to check the contents of your dependencies file or to confirm the version of the application that you have already built locally.

cat Example:

$ cat requirements.txt
flask
flask_pymongo

Question - 95 : - What is the grep command in Linux?

Answer - 95 : -

grep searches file patterns. If you are looking for a specific pattern in the output of another command, grep highlights the relevant lines. Use this grep command for searching log files, specific processes, and more.

grep Example: 

$ cat tomcat.log | grep org.apache.catalina.startup.Catalina.start
12-Jan-2018 17:08:35.542 INFO [main] org.apache.catalina.startup.Catalina.start Server startup in 681 ms

Question - 96 : - What is the env command in Linux?

Answer - 96 : -

env command allows users to set or print the environment variables. During troubleshooting, users can find it useful for checking if the wrong environment variable prevents your application from starting.

env Command Example:

$ env
PYTHON_PIP_VERSION=9.0.1
HOME=/root
DB_NAME=test
PATH=/usr/local/bin:/usr/local/sbin
LANG=C.UTF-8
PYTHON_VERSION=3.4.6
PWD=/
DB_URI=mongodb://database:27017/test

Question - 97 : - What is the netstat command in Linux?

Answer - 97 : -

netstat command in Linux shows the network status. This netstat command shows network ports in use and their incoming connections.

Question - 98 : - What is the lsof command in Linux?

Answer - 98 : -

ls of command lists the open files associated with your application.

Question - 99 : - What is the df command in Linux?

Answer - 99 : -

Users can use the df command to troubleshoot disk space issues. Here df stands for display free disk space.

df Command Example:

df -h

Question - 100 : - What is a du command in Linux?

Answer - 100 : -

du command in Linux is used to retrieve more detailed information about which files use the disk space in a directory.

du Command Example:

$ du -sh /var/log/*
1.8M  /var/log/anaconda
384K  /var/log/audit
4.0K  /var/log/boot.log
0 /var/log/chrony
4.0K  /var/log/cron
4.0K  /var/log/maillog
64K /var/log/messages


NCERT Solutions

 

Share your email for latest updates

Name:
Email:

Our partners