Search found 88 matches

by wacky
Sat Aug 29, 2009 4:15 pm
Forum: General
Topic: Any one doing virtualisation ?
Replies: 3
Views: 4505

Re: VMware

saifkhan123 wrote:the best product which i have seen is VMware ESXi Infrastructure 3.x and i am currently using it, thts awesome
Are you using it in work environment or for just learning purposes?
by wacky
Mon Aug 24, 2009 2:30 am
Forum: General
Topic: Any one doing virtualisation ?
Replies: 3
Views: 4505

Any one doing virtualisation ?

Guys,

Just as a matter of interest, is any one on this forum doing virtualisation and if so what virtualisation software are you using?
by wacky
Mon Aug 10, 2009 1:40 pm
Forum: General
Topic: Linux Questions & Answers
Replies: 2
Views: 3660

sysctl -w net.ipv4.ip_forward=1 doesn't work across reboots, unless you put it in some file like /etc/rc.local. i think you meant "start", not "stop". Lambda, you're correct. This is my mistake. sysctl -w does not work across reboots. Also there is another glaring mistake: net.i...
by wacky
Mon Aug 10, 2009 1:19 am
Forum: General
Topic: Linux Questions & Answers
Replies: 2
Views: 3660

Linux Questions & Answers

1) In Redhat (also Centos or Fedora) how would you list the last 10 packages installed and their installation times? rpm -qa --last | head 2) What file contains the file system sharing table? /etc/exports 3) In Redhat (also Centos, Fedora) what command and switches would you use to install and monit...
by wacky
Sat Aug 08, 2009 2:04 am
Forum: General
Topic: Unix Questions & Answers - Part 5
Replies: 0
Views: 2436

Unix Questions & Answers - Part 5

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 i...
by wacky
Fri Aug 07, 2009 12:48 am
Forum: General
Topic: Unix Questions & Answers - Part 4
Replies: 1
Views: 2996

Unix Questions & Answers - Part 4

16/ What port numbers do the following use? ssh, ldap, ftp, smtp, X, named ssh - tcp 22 ldap - tcp 389/639 ftp - tcp 21 smtp - tcp 25 X - udp 6000+ named - udp 53 ( and tcp 53 for zone transfers) 17/ Using either tar or cpio detail the syntax to copy a directory structure from the /testA filesystem ...
by wacky
Thu Aug 06, 2009 12:40 am
Forum: General
Topic: Linux Questions
Replies: 0
Views: 2528

Linux Questions

1) In Redhat (also Centos or Fedora) how would you list the last 10 packages installed and their installation times? 2) What file contains the file system sharing table? 3) In Redhat (also Centos, Fedora) what command and switches would you use to install and monitor the progress of a package? 4) Wh...
by wacky
Mon Aug 03, 2009 2:10 am
Forum: General
Topic: Unix Questions - Part 5
Replies: 0
Views: 2406

Unix Questions - Part 5

21) How do you stop users from using their own crontab 22) Show a crontab entry that will run '/usr/local/bin/myscript' on the first Monday of each month ? 23) Can you explain what a context switch is? 24) Given a network of 192.168.7.0 and a netmask of 255.255.255.192 , answer the following: a) How...
by wacky
Fri Jul 31, 2009 12:08 am
Forum: General
Topic: Unix Questions - Part 4
Replies: 0
Views: 2397

Unix Questions - Part 4

16/ What port numbers do the following use? ssh, ldap, ftp, smtp, X, named 17/ Using either tar or cpio detail the syntax to copy a directory structure from the /testA filesystem to the /testB filesystem. 18/ Why should you never have '.' in root's path? 19/ You can ping servers on the subnet your w...
by wacky
Thu Jul 30, 2009 12:44 am
Forum: General
Topic: Unix Questions & Answers - Part 3
Replies: 1
Views: 3301

Unix Questions & Answers - Part 3

11) How would you show the current runlevel ? who -r 12) A program initialises 3 default file descriptors/handles, what are their names? stdin, stdout, stderr 13) What is the overhead of running a RAID5 array on a write intensive file system? RAID5 not only writes data but also calculates the data p...
by wacky
Wed Jul 29, 2009 2:13 am
Forum: General
Topic: Unix Questions & Answers - Part 2
Replies: 2
Views: 3964

Unix Questions & Answers - Part 2

6) How would you remove blank lines from a file? grep "^$" filename > filename.new Can also use sed and awk 7) How would you list the files in the current directory sorted by size? ls -l | sort -k 5 -n[r] 8) How would you display the routing table? netstat -r 9) What is a sparse file. Give...
by wacky
Tue Jul 28, 2009 1:42 am
Forum: General
Topic: Unix Questions & Answers- Part 1
Replies: 3
Views: 4640

Unix Questions & Answers- Part 1

1) What switches can you give to the ls command to sort the output in time-modified order? ls -t or ls -rt for reversed order. We can also add -l switch for long listing 2) What does the script command do? script command writes all keyboard input and command output of a session to a file 3) I have a...
by wacky
Sun Jan 13, 2008 3:21 am
Forum: General
Topic: KDE 4.0 released
Replies: 3
Views: 5582

I've been playing with KDE4 for the last couple of days and to be honest I found it a little disappointing. Seems as if it's not a properly finished job. For example the new file manager/explorer (Dolphin) could do with a little bit more work to give it a polished look and feel. The whole desktop fe...
by wacky
Mon Dec 24, 2007 6:28 pm
Forum: Programming
Topic: Shell Script Help
Replies: 7
Views: 16699

Code: Select all

n=1
for i in `cat /scripts/firewall/firewall.conf | awk '/IP/' | cut -d"=" -f2`
do
     echo "IP$n=$i"
     let "n=$n+1"
done