ONE COMMAND A DAY

20.04.2009

2> cd command.

SUMMARY

This command is used to change to another directory.Suppose we are in any directory and then we do cd /bin ,this changes  our current directory or the working directory to /bin.

SYNTAX:

-m keymap
Use keymap as the keymap to be affected by the subsequent bindings. Acceptable keymap names are emacs, emacs-standard, emacs-meta, emacs-ctlx, vi, vi-move, vi-command, and vi-insert. vi is equivalent to vi-command; emacs is equivalent to emacs-standard.
-l
List the names of all readline functions.
-p
Display readline function names and bindings in such a way that they can be re-read.
-P
List current readline function names and bindings.
-v
Display readline variable names and values in such a way that they can be re-read.
-V
List current readline variable names and values.
-s
Display readline key sequences bound to macros and the strings they output in such a way that they can be re-read.
-S
Display readline key sequences bound to macros and the strings they output.
-f filename
Read key bindings from filename.
-q function
Query about which keys invoke the named function.
-u function
Unbind all keys bound to the named function.
-r keyseq
Remove any current binding for keyseq.
-x keyseq:shell-command
Cause shell-command to be executed whenever keyseq is entered

And yes man cd is always there for complete description.

EXAMPLES:

Use the cd command to change into the / (root) directory.

$ cd /

Now change into the usr directory, below the / directory

    $ cd /usr
Advertisements

About yevlempy
A foodie, a cleartripper, a linux geek!

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: