Tuesday, June 29, 2010

Bash shell shortcuts

Bash shell shortcuts

Bash, which is the default shell in Linux contains a whole lot of key bindings which makes it really easy to use . The most commonly used shortcuts are listed below :

____________CTRL Key Bound_____________
Ctrl + a - Jump to the start of the line
Ctrl + b - Move back a char
Ctrl + c - Terminate the command
Ctrl + d - Delete from under the cursor
Ctrl + e - Jump to the end of the line
Ctrl + f - Move forward a char
Ctrl + k - Delete to EOL
Ctrl + l - Clear the screen
Ctrl + r - Search the history backwards
Ctrl + R - Search the history backwards with multi occurrence
Ctrl + u - Delete backward from cursor
Ctrl + xx - Move between EOL and current cursor position
Ctrl + x @ - Show possible hostname completions
Ctrl + z - Suspend/ Stop the command
____________ALT Key Bound___________
Alt + < - Move to the first line in the history
Alt + > - Move to the last line in the history
Alt + ? - Show current completion list
Alt + * - Insert all possible completions
Alt + / - Attempt to complete filename
Alt + . - Yank last argument to previous command
Alt + b - Move backward
Alt + c - Capitalize the word
Alt + d - Delete word
Alt + f - Move forward
Alt + l - Make word lowercase
Alt + n - Search the history forwards non-incremental
Alt + p - Search the history backwards non-incremental
Alt + r - Recall command
Alt + t - Move words around
Alt + u - Make word uppercase
Alt + back-space - Delete backward from cursor

----------------More Special Keybindings-------------------

Here "2T" means Press TAB twice

$ 2T - All available commands(common)
$ (string)2T - All available commands starting with (string)
$ /2T - Entire directory structure including Hidden one
$ 2T - Only Sub Dirs inside including Hidden one
$ *2T - Only Sub Dirs inside without Hidden one
$ ~2T - All Present Users on system from "/etc/passwd"
$ $2T - All Sys variables
$ @2T - Entries from "/etc/hosts"
$ =2T - Output like ls or dir

Friday, June 25, 2010

Present

Today is a gift, that is why it is called as 'The present'


Monday, June 21, 2010

How to make use of find to search files ??

find  ./ -name 'alsa*'

This will displays the filenames started with 'alsa' in a current directory


How to use grep command ??

To search for the given PATTERN in a current directory recursively :


grep -r PATTERN   DIR_PATH 

grep -r  init()  ./

it will displays the files which are having init() fn.


grep -r  init()  ./  -n

it will displays the files with init() fn and its occurence line number too...



 

How 2 Unpack/pack the android images:

How 2 Unpack the android images:
---------------------------------
1. ./unyaffs system.img  (unpack the yaffs file system.img) yaffs - file system
2.gunzip -c ramdisk.img |cpio -i
3../unpack-bootimg.pl boot.img

To Pack System.img:
---------------------
mkyaffs2image tool

./mkyaffs2image ./system (folder) system.img

will creates the system.img from system folder.

Tuesday, June 15, 2010

What good will they do you

However many holy words you read,

However many you speak,

What good will they do you

If you do not act upon them?

Are you a shepherd

Who counts another man's sheep,

Never sharing the way?

Read as few words as you like,

And speak fewer.

But act upon the dharma.

Give up the old ways -

Passion, enmity, folly.

Know the truth and find peace.

Share the way.

success

SUCCESS IS NOT TO BE EQUATED WITH GOODNESS.To believe in yourself and to follow your dreams, to have goals in life and a drive to succeed, and to surround yourself with the things and the people that make you happy----this is what we can call it as real success.

80/20 principle

 80/20 principle which  lays down that in an any organisation 80 percent of the work was done by 20 percent people and 20 percent work done by 80 percent people. "

Monday, June 07, 2010

what she is to me

what she is to me ? Words cannot express ...

Tuesday, June 01, 2010

hero

A hero never chooses his destiny. His destiny chooses him.