Command Line Options

Changing Directory

kcd

Display directory tree and allow you to choose the directory you would like to change to.

kcd [-B] TEXT [NUMBER]

Search and change to the directory containing the TEXT string. Parent directories are excluded from string searching.

For example, the command

          kcd lin
will match /usr/src/linux-2.x.x, /usr/lib/gcc-lib/i486-linux, /usr/doc/SlingShot, etc. It does not match /usr/src/linux-2.x.x/fs because lin appear as the parent directory of fs.

If you want to change to directory that contains some special symbols (for example, &, |, etc.), enclose the TEXT string with single quote '...'. For example,

          kcd 'b&w'

Avoid using spaces (very common in VFAT file system) in the TEXT string. Some shell may not correctly parse the string, resulting an error message.

NUMBER is the matched directory number used in case of multiple matches.

If the option -B is specified, all directories are searched, not just the bookmarked ones.

kcd -b [TEXT]

Display bookmarks matching TEXT, or all bookmark if TEXT is not supplied.

kcd -ba [DIR...]

Bookmark specified directories. If none is specified, the current directory is used.

kcd -br [DIR...]

Remove bookmark from specified directories. If none is specified, the current directory is used.

kcd -t [DIR]

Display partial directory tree beginning with DIR. If DIR is not specified, the current directory is used.

kcd -tr [DIR]

Like -t but rescan directory tree before display.

kcd -T

Display full directory tree.