Writing by shivdev on Thursday, 31 of July , 2008 at 9:59 am
Let’s say you have a tar.gz file. For example, apache-ant-1.6.1-bin.tar.gz
# Decompress the zip file
gzip -d apache-ant-1.6.1-bin.tar.gz
# Extract the ant files in verbose mode
tar -xvf apache-ant-1.6.1-bin.tar
Category: Linux,Tips and Tricks
Writing by shivdev on Friday, 18 of July , 2008 at 5:37 pm
To capture tcpdump output
tcpdump -v -s 4096 -w capfile.cap port 25
You can then read the capfile.cap file using WireShark
Category: Linux,Tips and Tricks
Writing by shivdev on Wednesday, 16 of July , 2008 at 6:15 pm
If at boot time you already know that you want an interactive start, and you know during CentOS boot process pressing “I” does nothing, here’s a trick.
At the grub boot screen press “a” (without quotes) to edit parameters
Append “confirm” (without quotes) to the kernel line
Category: Linux,Tips and Tricks
Writing by shivdev on Wednesday, 16 of July , 2008 at 1:59 pm
If you’re RDP-ing to a Windows box and you want to restart or shut it down and only see the Log Off or Disconnect use the following trick.
For the Windows Security Dialog use these shortcut keys in the RDP session.
CTRL + ALT + END
For a forced restart from command prompt
shutdown -f -r
For a forced shutdown from command prompt.
shutdown -f -s
Category: Tips and Tricks
Writing by shivdev on Tuesday, 15 of July , 2008 at 11:51 pm
So you love the auto-complete feature but Firefox’s Clear Private Data deletes everything. But if you want to delete just selected entries (for example, if you had a typo in your login information etc. and want to delete just some selected entries) use the shortcut Shift+Del. On the page, click on the text field and let Firefox list appear. Use your arrow keys in the list of choices and navigate to the “bad” entry and hit Shift+Del. It will be removed.
Category: Tips and Tricks
Writing by shivdev on Friday, 11 of July , 2008 at 11:33 am
Here’s and excellent Hello World ANT Tutorial with which you could get started with a decent looking build.xml
Category: Java