Linux Questions and Answers
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
12. What file specifies the order in which to use specified name services?
- /etc/services
- /etc/nsorder
- /etc/nsswitch.conf
- /etc/hosts
14. In which directory can you store system user default files used for creating user directories?
- /usr/tmp
- /etc/default
- /etc/skel
- /etc/users
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
16. What does FSF stand for?
- Free Software File
- File Server First
- First Serve First
- Free Software Foundation
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
19. Which of the following command can you execute to count the number of lines in a file?
- lc
- wc - 1
- cl
- count