Blog Detail

Linux Nuggetz

Linux Nuggetz

http://linuxnuggetz.blogspot.com/

Random installation, tutorial, tips, & news in OSS

subscribe Recent Posts

  • Changing Date and Time in Linux

    Posted on Saturday November 28th, 2009 at 00:42

    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

    Posted on Tuesday November 3rd, 2009 at 23:14

    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

    Posted on Tuesday October 27th, 2009 at 21:30 in cli basics

    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

    Posted on Sunday September 6th, 2009 at 07:35

    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

    Posted on Friday July 17th, 2009 at 00:54 in MySQL

    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

    Posted on Thursday July 9th, 2009 at 19:46 in cli basics

    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 ...

Comments & Reviews

This blog is currently rated a 5.00 out of a possible 5 based on 1 comment.

wirote2008

5 stars wirote

Its nice blog.

Posted: July 6th, 2009 | More Reviews From wirote2008 | Report This Comment

Post A Comment/Review

* Your IP is being logged.
* Your e-mail address is used only for verification purposes only and will not be sold, or shown publicly.
* No HTML tags allowed
* DO NOT use the Comments/Reviews to promote your own site.

Name: or Login
E-mail:
Rating:
Verify: Spam Protection: sum of 4 + 1
Comment:
  Remember Information