Basic Linux Interview Questions

1- What is the Difference between CLI and GUI?

CLI – Command Line Interface ( Users working on Terminal )

GUI – Graphical User Interface ( Users working on Graphical Mode )

2- What is Linux?

  • Linux is a UNIX based operating system.
  • It was first introduced by Linus Torvalds.
  • It is an open source operating system
  • It is  free and a low cost operating system for the computer users

3- Is it legal to edit Linux Kernel?

Yes. we/anyone can edit Linux Kernel because it is released under General Public License (GPL). And GPL comes under the category of free and open source software.

4-  What are the basic components of Linux?

Linux has all components like

  • kernel
  • shells
  • GUIs
  • system utilities and application programs.

5-  What is IMAP?

Internet Message Access Protocol (IMAP) is an Internet standard protocol used by e-mail clients.

  • It is protocol to retrieve email messages from a mail server over a TCP/IP connection. IMAP is defined by RFC 3501.
  • IMAP is an application layer Internet Protocol using the underlying transport layer protocols.
  • Its establish host-to-host communication services for applications.
  • IMAP uses port 143 , but SSL/TLS encrypted IMAP uses port 993.

6- Whats is POP?

  • POP uses port 110 , but SSL/TLS encrypted POP uses port 995.
  • Post Office Protocol version 3 (POP3) is a standard mail protocol .
  • It is used to receive emails from a remote server to a local email client.
  • POP3 allows you to download email messages on your local computer.
  • And read them even when you are offline.

7- What is SMTP?

  • SMTP uses port 25 , but SSL/TLS encrypted SMTP uses port 465 .
  • Simple Mail Transfer Protocol (SMTP) is an Internet standard for electronic mail (email) transmission.
  • SMTP (Simple Mail Transfer Protocol) is a TCP/IP protocol.
  • It is used in sending and receiving email from Servers and local.

8-  Basic commands for user management?

  • useradd
  • userdel
  • chmod
  • chown
  • last
  • chage
  • lsof
  • /home ( user home directory )
  • passwd

9- What is the maximum length for a filename in Linux?

  • 255

10- What are the file permissions in Linux?

  • Read    – r  – 4
  • Write   – w  – 2
  • Execute  – x – 1

11- How many modes are used in VI editor?

  • command mode
  • Edit mode
  • Ex mode

12- How you can create the directory in linux?

  • mkdir  directory name
  • mkdir -p  directory name/directory name ( create nested directory )
  • rmdir  ( delete blank directory )
  • rm -rf directory name ( delete all kind of directory )

Post Author: Rohit

Leave a Reply

Your email address will not be published. Required fields are marked *