cd_(7)

NAME
cd_

SYNOPSIS
cd_ [n]

DESCRIPTION
cd_ enables you to cd to the directory (or the directory containing the file) named in the last argument of the previous command. With the optional numeric argument, you can choose positions other than the last in the previous command string, i.e., Execute cd "$(dirname $_)" if $_ is a file Execute cd "$_" if $_ is a directory or, more generally, get the numbered string position in the last line and cd to it (or it's directory) eg: ls one two three four five six cd_ 4 is the same as cd four cd_ -2 is the same as cd five

AUTHOR
 William Scott

SEE ALSO
cd(1)