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

1. What command is used to count the total number of lines, words, and characters contained in a file?

  • countw
  • wcount
  • wc
  • count p
Show Answer Report

2. What command is used to remove files?

  • dm
  • rm
  • delete
  • erase
Show Answer Report

3. What command is used to remove the directory?

  • rdir
  • remove
  • rd
  • rmdir
Show Answer Report

4. What command is used with vi editor to delete a single character?

  • x
  • y
  • a
  • z
Show Answer Report

5. What hardware architectures are not supported by Ret Hat?

  • SPARC
  • IBM-compatible
  • Alpha
  • Macintosh
Show Answer Report

6. The physical layer of a network

  • constructs packets of data and sends them across the network
  • controls error detection and correction
  • defines the electrical characteristics of signals passed between the computer and communication devices
  • All of the above
Show Answer Report

7.  What TCP/IP protocol is used for remote terminal connection service?

  • UDP
  • RARP
  • FTP
  • TELNET
Show Answer Report

8. How many networks and nodes per network, are allowed by the Class B network?

  • 127 networks and 16,777,216 nodes per network
  • 16,384 networks and 65,534 nodes per network
  • 2,097,152 networks and 254 nodes per network
  • All of the above
Show Answer Report

9. What service is used to translate domain names to IP addresses?

  • NFS
  • SMB
  • NIS
  • DNS
Show Answer Report

10. Which of the following command is used to create a Linux installation hoot floppy?

  • mkboot disk
  • bootfp disk
  • ww and rawwrite
  • dd and rawrite
Show Answer Report
Questions and Answers for Competitive Exams Various Entrance Test