Recent

Top 30 Linux Interview Questions, Commonly asked Questions

Top 30 Linux Interview Questions, Commonly asked Questions

1.Which file have runlevel configuration?

/etc/inittab.

2.What command would you use to shut down the system in 100 seconds?

#shutdown -h 100

3.What daemon controls the print spooling process?

The Line Printing Daemon (lpd) controls the print spooling process.

4.What configuration file defines the default runlevel for the init process?

/etc/inittab file defines the default runlevel for the init process.

5.Which command can you use to shut down and halt a Linux System?

The halt command will shut down a Linux system without rebooting.

6.What init level should you set to bring the system to single-user mode?

init 1 will bring the system to single-user mode.

7.A user wants to restart the NFS server because they want to enable changes made in the configuration file. What command accomplishes this task?

#service nfs reload
The reload command will tell the system to stop the service, reload the configuration file, and restart the service

8.What command can you use to reboot a Linux system?

The command to reboot a Linux system is reboot.

9.What mode must you be in when using vi editor to input text into a file?

To insert text in the vi editor, you must be in insert mode
init 1 represents runlevel1.
Runlevel 1 is used for single user mode.

10.One user from your company left the job without telling root account password of his system. To reset root password, in which mode you need to boot the system?

To reset the root password, we need to boot the system in single user mode.

11.What runlevel does init 2 represent?

init2 represents rulevel 2.
runlevel 2 is used for multiuser without networking.

12.Some users are complaining that the DHCP server is not running. After examine the running processes on the system, you notice that the process is not present. What command should you use to start the DHCP service?

Because the service is currently not running, use the start command
#service dhcpd start

13.What runlevel does init 5 represent?

Runlevel 5 is used to boot up a full multiuser system and to automatically start X-windows.

14.What tar argument is used to extract files from an archive?

To extract files from an archive, use the -x argument in the tar command.

15.What init runlevel should be set to shut down and reboot the system?

init runlevel 6 is used to shut down and reboot the system.

16.Which runlevel currently not in used ?

Runlevel 4 is not in used.

Checkout also,
Linux Interview Questions and Answers for Beginners.
20 Linux Interview Questions and Answers for Beginners.
Top 40 Linux Interview Questions for Freshers with Answers.
Scenario based LVM Interview questions and answers.
RHCE Interview Questions and Answers.
HR Interview questions and answers.
VMWARE Interview questions and answers.
Veritas cluster interview questions and answers.

17.Your company hired a new developer for temporary periods to speed up the ongoing project.
You are tasked to create a new user account which should be disabled automatically on 5 may 2014.
How would you do that?

Use -e option with useradd command.
-e option allows you to set the date on which the user account will be disabled.
The date is specified in the format YYYY-MM-DD.
Following command will do the assigned task
#useradd -e 2014-05-05

18.Which command should you use to change the user information listed form finger command?

chfn command is used to change the information listed from finger command.

19.What runlevel does init 6 represent?

Runlevel 6 is used to reboot the system.

20.You are tasked to delete a user account with all his associated files including his home directory and mail folder. How will you do that ?

#userdel -r [username]
Above command will delete user account as well all his associated files including his home directory and mail folder.

21.A user comes to you and complain that his system was starting fine in GUI mode, but from last reboot system is starting in command line interface. What is the most likely cause of the problem?

In the /etc/inittab file, the default runlevel is probably set to 3, which tells it to start the system in command line.

22.What files are updated when adding a group?

/etc/group and /etc/gshadow files contains group information in Linux system. So these files would be updated every time whenever new group is added.

23.What command is used to delete a group?

The groupdel command will delete a group.

24.What runlevel does init 3 represent?

init3 represents rulevel 3.
runlevel 3 is used for multiuser with networking.

25.What command will display the directory path that is currently in use?

pwd command will display the directory path that is currently in use.

26.A user type 'cd ~ ' on command prompt, what this command will do?

This command will move user to his or her home directory.
~ represents home directory in Linux.

27.A user comes to you and complain that his system start fine, but as soon as it is almost loaded it reboot again. What is the most likely cause of the problem?

In the /etc/inittab file, the default runlevel is probably set to 6, which tells it to reboot right after the system has started.

28.Which command will list all the files and sub-directories in a directory and include the access rights?

ls -l command will list all the files and sub-directories in a directory and include the access rights.

29.Which command will list all the files in a directory including hidden files?

ls -a command will list all the files in a directory including hidden files.

30.What is the correct syntax for the move command?

The correct syntax for the move command is
mv [options] [source] [destination]

Checkout also,
Linux Interview Questions and Answers for Beginners.
20 Linux Interview Questions and Answers for Beginners.
Top 40 Linux Interview Questions for Freshers with Answers.
Scenario based LVM Interview questions and answers.
RHCE Interview Questions and Answers.
HR Interview questions and answers.
VMWARE Interview questions and answers.
Veritas cluster interview questions and answers.
top 30 linux interview questions, linux interview questions, linux questions and answers, linux interview questions and answers, linux basics interview questions, linux l3 interview questions
Thanks for reading our post. share with your friends. We appreciate your feedback, Leave your comments if any. linux interview questions and answers pdf, interview questions on linux, linux interview questions for freshers, Basic linux interview questions, Basic interview questions of linux.
We have more articles to be updated soon. To not miss any updates, Follow us on social networking sites and Subscribe us on our Youtube channel. linux interview questions for beginners, Most commonly asked linux interview questions, linux Technical Questions, linux cloud interview questions, linux admin interview questions, linux job interview questions, interview questions
Top 30 Linux Interview Questions, Commonly asked Questions thumbnail Reviewed by Blog Admin on 11:13 Rating: 5

No comments:

All Rights Reserved by Learn IT Guide © 2015 - 2025.

Contact Form

Name

Email *

Message *

Powered by Blogger.