Blog Detail
Recent Posts
Changing Date and Time in Linux
Syntex:1. date -s "DD Mon YYYY hh:mm:ss"2. date set="DD Mon YYYY hh:mm:ss"3. date MMDDhhmmYYYY.ssExample:1. date -s "28 NOV 2008 13:45:00"2. date set="28 NOV 2008 13:45:00"3. date 112813452009Setting Time in LinuxSyntex:date +%T -s "hh:mm:ss"Example:...
Deleting Files/Folders based on OWNERSHIP
1. List the files and directories.$ ls -lahtotal 52Kdrwxrwxrwt 11 root root 4.0K Nov 4 03:52 .drwxr-xr-x 25 root root 4.0K Oct 6 03:54 ..srwxr-xr-x 1 george george 0 Oct 8 00:47 .dguardianipcsrwxr-xr-x 1 george george 0 Oct 8 00:4...
Easy way to extract Logs on a Date/Line Range in LINUX
Example: range of date to be extracted in the /var/log/message. Oct 26-27 our x will be Oct 26, y will be Oct 271. Get the first line number which will be our x reference (x - Oct 26). $ grep -n 'Oct 26' /var/log/messages |...
Google Sitemap Generator Installation in a CentOS Platform
1. Download Google Site Map Generator: http://code.google.com/p/googlesitemapgenerator/downloads/list2. Unpack the downloaded file $ tar –zxvf sitemap_linux-i386-beta1-20090225.tar.gz3. Run the installation script $ cd sitemap-install/ $ ./...
MySQL Commands - Adding User, Backup and Restore
Adding new user to access the databaseSyntax:mysqldump -u [username] -p [password] [databasename] > [backupfile.sql]Examples:mysql> GRANT all ON mydatabase.* TO myuser@'192.168.17.186' IDENTIFIED BY 'mypassword';mysql> GRANT all ON mydatabase.* TO my...
Killing a Process in Linux
At times we encounter java process that won't stop by issuing the usual command "./shutdown.sh", or in some cases a multiple instance was created when the program was not properly restarted.Below are the sample process status of the java in my linux ...


Its nice blog.
Posted: July 6th, 2009 | More Reviews From wirote2008 | Report This Comment