Friday, March 5, 2010

Top Linux Admin Interview Questions and answers asked in TOP IT industries : Question Bank 05

Linux Admin Interview Questions and Answers

Questions consists of Linux Admin Interview Questions and Answers, Linux Administration questions, Linux Networking questions, MYSQL questions, bash, postfix questions, sendmail questions, ftp server questions

Questions BANK 05


# As the system administrator you need to review Bob’s cronjobs. What command would you use? Choose one:
a. crontab -lu bob
b. crontab -u bob
c. crontab -l
d. cronq -lu bob

# In order to schedule a cronjob, the first task is to create a text file containing the jobs to be run along with the time they are to run. Which of the following commands will run the script MyScript every day at 11:45 pm? Choose one:
a. * 23 45 * * MyScript
b. 23 45 * * * MyScript
c. 45 23 * * * MyScript
d. * * * 23 45 MyScript

# Which daemon must be running in order to have any scheduled jobs run as scheduled? Choose one:
a. crond
b. atd
c. atrun
d. crontab

# You want to ensure that your system is not overloaded with users running multiple scheduled jobs. A policy has been established that only the system administrators can create any scheduled jobs. It is your job to implement this policy. How are you going to do this? Choose one:
a. create an empty file called /etc/cron.deny
b. create a file called /etc/cron.allow which contains the names of those allowed to schedule jobs.
c. create a file called /etc/cron.deny containing all regular usernames.
d. create two empty files called /etc/cron.allow and /etc/cron.deny

# You notice that your server load is exceptionally high during the hours of 10 am to 2 noon. When investigating the cause, you suspect that it may be a cron job scheduled by one of your users. What command can you use to determine if your suspicions are correct? Choose one:
a. crontab -u
b. crond -u
c. crontab -l
d. crond -l

# One of your users, Bob, has created a script to reindex his database. Now he has it scheduled to run every day at 10:30 am. What command should you use to delete this job. Choose one:
a. crontab -ru bob
b. crontab -u bob
c. crontab -du bob
d. crontab -lu bob

# What daemon is responsible for tracking events on your system?

# What is the name and path of the default configuration file used by the syslogd daemon?

# You have made changes to the /etc/syslog.conf file. Which of the following commands will cause these changes to be implemented without having to reboot your computer? Choose one:
a. kill SIGHINT `cat /var/run/syslogd.pid`
b. kill SIGHUP `cat /var/run/syslogd.pid`
c. kill SIGHUP syslogd
d. kill SIGHINT syslogd

# Which of the following lines in your /etc/syslog.conf file will cause all critical messages to be logged to the file /var/log/critmessages? Choose one:
a. *.=crit /var/log/critmessages
b. *crit /var/log/critmessages
c. *=crit /var/log/critmessages
d. *.crit /var/log/critmessages

# You wish to have all mail messages except those of type info to the /var/log/mailmessages file. Which of the following lines in your /etc/syslogd.conf file would accomplish this? Choose one:
a. mail.*;mail!=info /var/log/mailmessages
b. mail.*;mail.=info /var/log/mailmessages
c. mail.*;mail.info /var/log/mailmessages
d. mail.*;mail.!=info /var/log/mailmessages

# What is the name and path of the main system log?

# Which log contains information on currently logged in users? Choose one:
a. /var/log/utmp
b. /var/log/wtmp
c. /var/log/lastlog
d. /var/log/messages

# You have been assigned the task of determining if there are any user accounts defined on your system that have not been used during the last three months. Which log file should you examine to determine this information? Choose one:
a. /var/log/wtmp
b. /var/log/lastlog
c. /var/log/utmp
d. /var/log/messages

# You have been told to configure a method of rotating log files on your system. Which of the following factors do you not need to consider? Choose one:
a. date and time of messages
b. log size
c. frequency of rotation
d. amount of available disk space

# What utility can you use to automate rotation of logs?

# You wish to rotate all your logs weekly except for the /var/log/wtmp log which you wish to rotate monthly. How could you accomplish this. Choose one:
a. Assign a global option to rotate all logs weekly and a local option to rotate the /var/log/wtmp log monthly.
b. Assign a local option to rotate all logs weekly and a global option to rotate the /var/log/wtmp log monthly.
c. Move the /var/log/wtmp log to a different directory. Run logrotate against the new location.
d. Configure logrotate to not rotate the /var/log/wtmp log. Rotate it manually every month.

# You have configured logrotate to rotate your logs weekly and keep them for eight weeks. You are running our of disk space. What should you do? Choose one:
a. Quit using logrotate and manually save old logs to another location.
b. Reconfigure logrotate to only save logs for four weeks.
c. Configure logrotate to save old files to another location.
d. Use the prerotate command to run a script to move the older logs to another location.

6 comments:

  1. I just wanted to comment and say that I really enjoyed reading your blog post here. It was very informative and I also digg the way you write! Keep it up and I'll be back to read more in the future

    ReplyDelete
  2. When arrive to this topic, a lot of people have misconception that it is difficult to comprehense. But if you take some time to study it completely, you can uncover you will discover some points lay inside the article and you also will get better knowing around the subject and what the author is attempting to mention. I actually do expect all readers could make great use of this.

    ReplyDelete
  3. most pages on this blog are usfull to me :) bookmarked it! keep it going, good job

    ReplyDelete
  4. Im going to tell you now, I believe im adding you to my favorite writers list. This is such a great post and really hit the nail on the head for me. Please continue. Your readers appreciate you.

    ReplyDelete
  5. hey my friend, i was just surfing the web looking for some reliable information and I happened across your website. Im truly awed by the information you have written on your blog. I see how well you understand this topic. I stored your site to my favorite sites, and will be coming back often. Cheers.

    ReplyDelete