Unix Questions & Answers - Part 5

General discussion about Linux, Linux distribution, using Linux etc.

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 192.168.7.0 and a netmask of 255.255.255.192, answer the following:

a) How many IP addresses are available for hosts?
62

b) What is the broadcast address?
192.168.7.63

c) How would this be written in CIDR notation? 192.168.7.0/26

d) I decide to split this subnet by odd and even numbered IP addresses, how would I achieve this?
Change the netmask to 255.255.255.193
wacky
Naik
 
Posts: 94
Joined: Thu Jun 10, 2004 7:42 pm
Location: London, UK

Return to “%s” General

Who is online

Users browsing this forum: No registered users and 2 guests