Linux Questions and Answers

Take Exam

Linux is a crucial topic for computer science students preparing for placements and exams, frequently covered in programming questions and answers sections. Understanding Linux commands, file management, permissions, and shell scripting is essential for technical roles in TCS, Wipro, and Infosys. Practicing Linux programming interview questions with answers enhances system-level understanding and problem-solving abilities. These Linux questions with answers will help students strengthen their foundational skills in operating systems and shell environments.

Linux

Showing 10 of 51 questions

11. How can you add Amit, a new user, to your system?

  • Using useradd
  • Using adduser
  • Using linuxconf
  • All of the above
Show Answer Report

12. What file specifies the order in which to use specified name services?

  • /etc/services
  • /etc/nsorder
  • /etc/nsswitch.conf
  • /etc/hosts
Show Answer Report

13.  How many primary partitions can exist on one drive?

  • 16
  • 4
  • 2
  • 1
Show Answer Report

14. In which directory can you store system user default files used for creating user directories?

  • /usr/tmp
  • /etc/default
  • /etc/skel
  • /etc/users
Show Answer Report

15. How could you install the file ipchains-1.3.9-5.i386.rpm?

  • rpm -qip ipchains
  • rpm -Uvh ipchains
  • rpm -i ipchains* .i386.rpm
  • rpm -e ipchains-1.3.9-5.i386.rpm
Show Answer Report

16. What does FSF stand for?

  • Free Software File
  • File Server First
  • First Serve First
  • Free Software Foundation
Show Answer Report

17. Which of the following is a valid format for mounting a CD-ROM drive?

  • mount -t iso9660 /dev/cdrom / mnt/cdrom
  • mount /dev/cdrom
  • mount /mnt/cdrom
  • All of the above
Show Answer Report

18. What command do you use to create Linux file systems?

  • fdisk
  • mkfs
  • fsck
  • mount
Show Answer Report

19. Which of the following command can you execute to count the number of lines in a file?

  • lc
  • wc - 1
  • cl
  • count
Show Answer Report

20. Which of the following is not a communication command?

  • grep
  • mail
  • mesg
  • write
Show Answer Report
Questions and Answers for Competitive Exams Various Entrance Test