10 Linux Interview Questions and Answers for Linux Beginners – Part 3

Continuing the Interview Questions series, with a big thanks for the nice feedback on last two articles of this series, we are here presenting 10 questions again for interactive learning.

  1. 11 Basic Linux Interview Questions and Answers – Part 1
  2. 10 Basic Linux Interview Questions and Answers – Part II
Linux Interview Questions

Linux Interview Questions Part – 3

1. How will you add a new user (say, tux) to your system.?
  1. useradd command
  2. adduser command
  3. linuxconf command
  4. All of the above
  5. None of the above
Answer : All of the above commands i.e., useradd, adduser and linuxconf will add an user to the Linux system.
2. How many primary partition is possible on one drive?
  1. 1
  2. 2
  3. 4
  4. 16
Answer : There are a maximum of ‘4‘ primary partition possible on a drive.
3. The default port for Apache/Http is?
  1. 8080
  2. 80
  3. 8443
  4. 91
  5. None of the above.
Answer : By default Apache/Http is configured on port 80.
4. What does GNU stand for?
  1. GNU’s not Unix
  2. General Unix
  3. General Noble Unix
  4. Greek Needed Unix
  5. None of the above
Answer : GNU stands for ‘GNU‘s not Unix‘.
5. You typed at shell prompt “mysql” and what you got in return was “can’t connect to local MySQL server through socket ‘/var/mysql/mysql.sock’”, what would you check first.
Answer : Seeing the error message, I will first check if mysql is running or not using commands service mysql status or service mysqld status. If mysql service is not running, starting of the service is required.

Note:The above error message can be the result of ill configured my.cnf or mysql user permission. If mysql service starting doesn’t help, you need to see into the above said issues.

6. How to Mount a windows ntfs partition on Linux?
Answer : First install ntfs­3g pack on the system using apt or yum tool and then use “mount sudo mount ­t ntfs­3g /dev/<Windows­partition>/<Mount­point>” command to mount Windows partition on Linux.
7. From the following which is not an RPM based OS.?
  1. RedHat Linux
  2. Centos
  3. Scientific Linux
  4. Debian
  5. Fedora
Answer : The ‘Debian‘ operating system is not an RPM based and all listed above are ‘RPM‘ based except Debian.
8. Which command can be used to rename a file in Linux.?
  1. mv
  2. ren
  3. rename
  4. change
  5. None of the Above
Answer : The mv command is used to rename a file in Linux. For example, mv /path_to_File/original_file_name.extension /Path_to_File/New_name.extension.
9. Which command is used to create and display file in Linux?
  1. ed
  2. vi
  3. cat
  4. nano
  5. None of the above
Answer : The ‘cat‘ command can be used to create and display file in Linux.
10. What layer protocol is responsible for user and the application program support such as passwords, resource sharing, file transfer and network management?
  1. Layer 4 protocols
  2. Layer 5 protocols
  3. Layer 6 protocols
  4. Layer 7 protocols
  5. None of the above
Answer : The ‘Layer 7 Protocol‘ is responsible for user and the application program support such as passwords, resource sharing, file transfer and network management.

That’s all for now. I will be writing on another useful topic soon, Till then stay tuned and connected to Tecmint. Don’t forget to provide us with your valuable comment.

If You Appreciate What We Do Here On TecMint, You Should Consider:

TecMint is the fastest growing and most trusted community site for any kind of Linux Articles, Guides and Books on the web. Millions of people visit TecMint! to search or browse the thousands of published articles available FREELY to all.

If you like what you are reading, please consider buying us a coffee ( or 2 ) as a token of appreciation.

Support Us

We are thankful for your never ending support.

RedHat RHCE and RHCSA Certification Book
Linux Foundation LFCS and LFCE Certification Preparation Guide
The Complete Linux System Administrator Bundle
Become an Ethical Hacker Bonus Bundle

You may also like...

19 Responses

  1. Jak says:

    Brother I have problem installing Linux in virtual box always error , you know why?
    3 weeks has been stuck installing Linux even i try on VMware error too . help please ………thank you

    • Ravi Saive says:

      Could you please post the error here, that you getting during Linux installation in Virtualbox. So, that we can help you out..

  2. ayush pratap singh says:

    Dear Tecmint,

    please post interview question and answer related to server/data center operation and red hat backup-plus please.

  3. ashis says:


    I want interview questions asked from a 3-3.5 yrs experience linux guy. plz send me the links or give that lavel questions

  4. gunasekar says:

    Thank you very much jii….

  5. Vasanth says:

    Hi Avishek,

    Cheers for your work!!! Its one of the best website I found until now. Really helpfull articles. I got many info going through on this site. Saved as top in my fav list:-). Thanks again looking for more updates!!
    Facebook link?

  6. mubac says:

    Hi tecmint!

    In question 9. Which command is used to create and display file in Linux?

    I think vi is a selection. Can create and view a new file by vim example_file

    What do you think about that idea?

    Thank you very much!

  7. sharique says:

    could you please upload the details questions about Load balancing ??

  8. champ007 says:

    Good one bro waiting for next article (NO.4)

    Doing a Good Job Bro, Your Articles are Really Helpfull to Me and Others

  9. Kalyan says:

    BTW your posts are highly appreciated. You can even mail me @ [email protected] so I can reply ASAP.


  10. Kalyan says:

    Hi Avishek,

    I have few questions which might be useful for me and others. If you can let me know your email address, I will forward you the questions.


Got something to say? Join the discussion.

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

This site uses Akismet to reduce spam. Learn how your comment data is processed.