Unix Questions & Answers - Part 5

General discussion about Linux, Linux distribution, using Linux etc.
Posts: 94
Joined: Thu Jun 10, 2004 7:42 pm
Location: London, UK

Unix Questions & Answers - Part 5

Postby wacky » Sat Aug 08, 2009 2:04 am

21) How do you stop users from using their own crontab

Make sure userid is not in cron.allow or is present in cron.deny

22) Show a crontab entry that will run '/usr/local/bin/myscript' on the first Monday of each month?

0 4 1-7 * 1 /usr/local/bin/myscript

23) Can you explain what a context switch is?

A context switch is the switching of the CPU from one process or thread to another

24) Given a network of and a netmask of, answer the following:

a) How many IP addresses are available for hosts?

b) What is the broadcast address?

c) How would this be written in CIDR notation?

d) I decide to split this subnet by odd and even numbered IP addresses, how would I achieve this?
Change the netmask to

Return to “General”

Who is online

Users browsing this forum: No registered users and 1 guest