TechBeamersTechBeamers
  • Learn ProgrammingLearn Programming
    • Python Programming
      • Python Basic
      • Python OOP
      • Python Pandas
      • Python PIP
      • Python Advanced
      • Python Selenium
    • Python Examples
    • Selenium Tutorials
      • Selenium with Java
      • Selenium with Python
    • Software Testing Tutorials
    • Java Programming
      • Java Basic
      • Java Flow Control
      • Java OOP
    • C Programming
    • Linux Commands
    • MySQL Commands
    • Agile in Software
    • AngularJS Guides
    • Android Tutorials
  • Interview PrepInterview Prep
    • SQL Interview Questions
    • Testing Interview Q&A
    • Python Interview Q&A
    • Selenium Interview Q&A
    • C Sharp Interview Q&A
    • PHP Interview Questions
    • Java Interview Questions
    • Web Development Q&A
  • Self AssessmentSelf Assessment
    • Python Test
    • Java Online Test
    • Selenium Quiz
    • Testing Quiz
    • HTML CSS Quiz
    • Shell Script Test
    • C/C++ Coding Test
Search
  • Python Multiline String
  • Python Multiline Comment
  • Python Iterate String
  • Python Dictionary
  • Python Lists
  • Python List Contains
  • Page Object Model
  • TestNG Annotations
  • Python Function Quiz
  • Python String Quiz
  • Python OOP Test
  • Java Spring Test
  • Java Collection Quiz
  • JavaScript Skill Test
  • Selenium Skill Test
  • Selenium Python Quiz
  • Shell Scripting Test
  • Latest Python Q&A
  • CSharp Coding Q&A
  • SQL Query Question
  • Top Selenium Q&A
  • Top QA Questions
  • Latest Testing Q&A
  • REST API Questions
  • Linux Interview Q&A
  • Shell Script Questions
© 2024 TechBeamers. All Rights Reserved.
Reading: 30 Linux Basic Questions And Answers
Font ResizerAa
TechBeamersTechBeamers
Font ResizerAa
  • Python
  • SQL
  • C
  • Java
  • Testing
  • Selenium
  • Agile Concepts Simplified
  • Linux
  • MySQL
  • Python Quizzes
  • Java Quiz
  • Testing Quiz
  • Shell Script Quiz
  • WebDev Interview
  • Python Basic
  • Python Examples
  • Python Advanced
  • Python OOP
  • Python Selenium
  • General Tech
Search
  • Programming Tutorials
    • Python Tutorial
    • Python Examples
    • Java Tutorial
    • C Tutorial
    • MySQL Tutorial
    • Selenium Tutorial
    • Testing Tutorial
  • Top Interview Q&A
    • SQL Interview
    • Web Dev Interview
  • Best Coding Quiz
    • Python Quizzes
    • Java Quiz
    • Testing Quiz
    • ShellScript Quiz
Follow US
© 2024 TechBeamers. All Rights Reserved.
Linux Tutorials

30 Linux Basic Questions And Answers

Last updated: Feb 27, 2024 11:42 pm
By Meenakshi Agarwal
Share
10 Min Read
Linux Basic Questions And Answers for Beginners
Linux Basic Questions And Answers for Beginners.
SHARE

Are you ready to put your Linux skills to the test? This tutorial contains 30 Linux basic questions and answers that will challenge your understanding.

Contents
Set-1 of Linux Basic Questions and AnswersQ-1. Which of the following introduced the flavor of UNIX named Solaris?Q-2. Which of the following is not a variant of UNIX?Q-3. In which language are the system calls implemented in Unix?Q-4. Which of the following processes is given the name “super daemon” in Unix?Q-5. What is the name of the method that the kernel uses to minimize the frequency of disk access?Q-6. What do the files wtmp and utmp maintain?Q-7. What approach does an application use to communicate with the kernel?Q-8. What is the purpose of <dmesg> command?Q-9. What does the following command mknod myfifo b 4 16 do?Q-10. Which of the following commands is used to set terminal IO characteristics?Set-2 of Linux Basic Questions and AnswersQ-11. Which of the following options of the ls command displays the file inode number?Q-12. Which of the following actions is performed by find / -name ‘*’ command?Q-13. Which of the following commands is used to display the octal value of the text?Q-14. Which of the following commands displays the contents of a compressed text file?Q-15. What is the command to change the group ownership of a file?Q-16. Which command is used to extract the intermediate result in a pipeline?Q-17. Which command is used to extract a column from a text file?Q-18. Which of the following command display the disk consumption of any directory?Q-19. Which command is used to take the backup in Unix?Q-20. Which command creates an empty file if it does not exist?Set-3 of Linux Basic Questions and AnswersQ-21. Which option of the rm command removes a directory including all its subdirectories?Q-22. Which command is used to identify the file type?Q-23. What is the command to determine the path of an executable file?Q-24. What is the command to count the number of characters in a file?Q-25. Which of the following commands displays one page of output at a time?Q-26. Which of the following commands displays the user id in its output?Q-27. Which command displays all the files in your current directory and its subdirectories including the hidden files?Q-28. Which command changes default permissions for files and directories at the time of creation?Q-29. Which of the tar options displays the list of files in a tape archive format?Q-30. Which of the following commands displays the current date in the format dd/mm/yyyy?Quick Reference for You

It is important to realize that Linux is a powerhouse and drives many of the world’s most powerful systems, from supercomputers to Internet servers, and even your Android device.

That’s why it is even more important to explore various Linux commands and techniques. We’ll certainly focus on the most common commands that system admin and end-users use for their day-to-day work.

By going through this tutorial, you’ll gain a deeper understanding of Linux fundamentals and the skills needed to succeed in any technical interview.

So what are you waiting for? Let’s dive in and see how much you know about Linux!

30 Linux Basic Questions You Should Know.

Linux Basic Questions And Answers for Beginners
Linux Basic Questions for Sys Admins.

Set-1 of Linux Basic Questions and Answers

Firstly, let’s begin with the 10 Linux questions around the most basic commands.

Q-1. Which of the following introduced the flavor of UNIX named Solaris?

A. HP
B. IBM
C. Digital Equipment Corp
D. Sun Microsystems

Hover here to view the answer!
Answer. D

Q-2. Which of the following is not a variant of UNIX?

A. Solaris
B. AIX
C. IRIX
D. AS400

Hover here to view the answer!
Answer. D

Q-3. In which language are the system calls implemented in Unix?

A. C
B. C++
C. Assembly Language
D. Fortran

Hover here to view the answer!
Answer. D

Q-4. Which of the following processes is given the name “super daemon” in Unix?

A. sysinit
B. init
C. inetd
D. proc

Hover here to view the answer!
Answer. B

Q-5. What is the name of the method that the kernel uses to minimize the frequency of disk access?

A. Pooling
B. Spooling
C. Buffer cache
D. Swapping

Hover here to view the answer!
Answer. C

Q-6. What do the files wtmp and utmp maintain?

A. Temporary system data
B. User login-logout log
C. The user’s command execution log
D. The user’s su and sudo attempts

Hover here to view the answer!
Answer. B

Q-7. What approach does an application use to communicate with the kernel?

A. System Calls
B. C Programs
C. Shell Script
D. Shell

Hover here to view the answer!
Answer. A

Q-8. What is the purpose of <dmesg> command?

A. Shows user login logoff attempts
B. Shows the Syslog file for info messages
C. kernel log messages
D. Shows the daemon log messages

Hover here to view the answer!
Answer. C

Q-9. What does the following command mknod myfifo b 4 16 do?

A. Will create a block device if the user is a root
B. Will create a block device for all users
C. Will create a FIFO if a user is not the root
D. None of the above

Hover here to view the answer!
Answer. A

Q-10. Which of the following commands is used to set terminal IO characteristics?

A. tty
B. ctty
C. ptty
D. stty

Hover here to view the answer!
Answer. D

Set-2 of Linux Basic Questions and Answers

Secondly, let’s cover the next set of 10 Linux questions around the intermediate-level commands.

Q-11. Which of the following options of the ls command displays the file inode number?

A. –l
B. -o
C. –a
D. –i

Hover here to view the answer!
Answer. D

Q-12. Which of the following actions is performed by find / -name ‘*’ command?

A. List all files and directories recursively starting from /
B. Print a file with name * in /
C. List all files in / directory
D. List all files and directories in / directory

Hover here to view the answer!
Answer. A

Q-13. Which of the following commands is used to display the octal value of the text?

A. octal
B. text_oct
C. oct
D. od

Hover here to view the answer!
Answer. D

Q-14. Which of the following commands displays the contents of a compressed text file?

A. cat
B. type
C. zcat
D. print

Hover here to view the answer!
Answer. C

Q-15. What is the command to change the group ownership of a file?

A. cgrp
B. chgrp
C. change
D. group

Hover here to view the answer!
Answer. B

Q-16. Which command is used to extract the intermediate result in a pipeline?

A. tee
B. extract
C. exec
D. none of the above

Hover here to view the answer!
Answer. A

Q-17. Which command is used to extract a column from a text file?

A. paste
B. get
C. cut
D. tar

Hover here to view the answer!
Answer. C

Q-18. Which of the following command display the disk consumption of any directory?

A. du
B. ds
C. dd
D. dds

Hover here to view the answer!
Answer. A

Q-19. Which command is used to take the backup in Unix?

A. backup
B. cpio
C. zip
D. gzip

Hover here to view the answer!
Answer. B

Q-20. Which command creates an empty file if it does not exist?

A. cat
B. touch
C. ed
D. read

Hover here to view the answer!
Answer. B

Set-3 of Linux Basic Questions and Answers

Thirdly, let’s finalize this tutorial with the 10 Linux questions around the most essential Linux commands.

Q-21. Which option of the rm command removes a directory including all its subdirectories?

A. –b
B. –o
C. –p
D. –r

Hover here to view the answer!
Answer. D

Q-22. Which command is used to identify the file type?

A. Type
B. File
C. Finfo
D. Info

Hover here to view the answer!
Answer. B

Q-23. What is the command to determine the path of an executable file?

A. which
B. where
C. wexec
D. what

Hover here to view the answer!
Answer. A

Q-24. What is the command to count the number of characters in a file?

A. grep
B. wc
C. count
D. cut

Hover here to view the answer!
Answer. B

Q-25. Which of the following commands displays one page of output at a time?

A. less
B. sed
C. pause
D. grep

Hover here to view the answer!
Answer. A

Q-26. Which of the following commands displays the user id in its output?

A. ls
B. help
C. date
D. ls –l

Hover here to view the answer!
Answer. D

Q-27. Which command displays all the files in your current directory and its subdirectories including the hidden files?

A. ls –aR
B. ls –a
C. ls –R
D. ls –l

Hover here to view the answer!
Answer. A

Q-28. Which command changes default permissions for files and directories at the time of creation?

A. chmod
B. chown
C. umask
D. chgrp

Hover here to view the answer!
Answer. C

Q-29. Which of the tar options displays the list of files in a tape archive format?

A. cvf
B. tvf
C. xvf
D. ovf

Hover here to view the answer!
Answer. B

Q-30. Which of the following commands displays the current date in the format dd/mm/yyyy?

A. date +%d/%m/%Y
B. date +”%d/%m/%Y”
C. date +/%d/%m/20%y
D. date +”/%d/%m/20%y”

Hover here to view the answer!
Answer. A

Enjoyed the Linux Basic Questions and Answers set?

We are hopeful that the above Linux basic questions and answers will help you immensely. And you’ll do well in your upcoming interviews.

It would be great if you let us know your feedback on this post.

Also, you can ask us to write on a topic of your choice. We’ll add it to our writing roadmap.

Quick Reference for You

  • File Handling Quiz in Python Part II
  • Python File Handling Quiz Part I
  • Top SQL Query Questions for Practice
  • 30 Linux Interview Questions
  • 30 Questions on List, Tuple, and Dictionary in Python

Lastly, if you enjoyed the post, then please care to share it with friends and on social media.

Keep Learning,

TechBeamers.

You Might Also Like

Basic Linux Commands for Beginners With Examples

How to Use Bash to Replace Character in String

Simple Bash Scripting Tutorial for Beginners

20 Bash Script Code Challenges for Beginners with Their Solutions

Difference Between Git Repository and Directory

TAGGED:Linux Fresher QuestionsLinux OS Questions
Meenakshi Agarwal Avatar
By Meenakshi Agarwal
Follow:
Hi, I'm Meenakshi Agarwal. I have a Bachelor's degree in Computer Science and a Master's degree in Computer Applications. After spending over a decade in large MNCs, I gained extensive experience in programming, coding, software development, testing, and automation. Now, I share my knowledge through tutorials, quizzes, and interview questions on Python, Java, Selenium, SQL, and C# on my blog, TechBeamers.com.
Previous Article Essential Linux Questions One Should Know for Interview Essential Linux Questions for Better Results
Next Article 50+ terminal commands for linux and mac osx 50+ Linux/macOS Terminal Commands

Popular Tutorials

SQL Interview Questions List
50 SQL Practice Questions for Good Results in Interview
SQL Interview Nov 01, 2016
Demo Websites You Need to Practice Selenium
7 Sites to Practice Selenium for Free in 2024
Selenium Tutorial Feb 08, 2016
SQL Exercises with Sample Table and Demo Data
SQL Exercises – Complex Queries
SQL Interview May 10, 2020
Java Coding Questions for Software Testers
15 Java Coding Questions for Testers
Selenium Tutorial Jun 17, 2016
30 Quick Python Programming Questions On List, Tuple & Dictionary
30 Python Programming Questions On List, Tuple, and Dictionary
Python Basic Python Tutorials Oct 07, 2016
//
Our tutorials are written by real people who’ve put in the time to research and test thoroughly. Whether you’re a beginner or a pro, our tutorials will guide you through everything you need to learn a programming language.

Top Coding Tips

  • PYTHON TIPS
  • PANDAS TIPSNew
  • DATA ANALYSIS TIPS
  • SELENIUM TIPS
  • C CODING TIPS
  • GDB DEBUG TIPS
  • SQL TIPS & TRICKS

Top Tutorials

  • PYTHON TUTORIAL FOR BEGINNERS
  • SELENIUM WEBDRIVER TUTORIAL
  • SELENIUM PYTHON TUTORIAL
  • SELENIUM DEMO WEBSITESHot
  • TESTNG TUTORIALS FOR BEGINNERS
  • PYTHON MULTITHREADING TUTORIAL
  • JAVA MULTITHREADING TUTORIAL

Sign Up for Our Newsletter

Subscribe to our newsletter to get our newest articles instantly!

Loading
TechBeamersTechBeamers
Follow US
© 2024 TechBeamers. All Rights Reserved.
  • About
  • Contact
  • Disclaimer
  • Privacy Policy
  • Terms of Use
TechBeamers Newsletter - Subscribe for Latest Updates
Join Us!

Subscribe to our newsletter and never miss the latest tech tutorials, quizzes, and tips.

Loading
Zero spam, Unsubscribe at any time.
x