Re: Transferring current path in nautilus, file browser to command line ??



On date Saturday 2006-11-25 12:30:53 -0500, William Case, wrote:
> Hi;
> 
> I know there is a way or a command or something, which can be used to
> insert the current path into a terminal command.  But, I forget and
> can't find it again.
> 
> e.g.  Using the file browser I find a file I am looking for,
> say /usr/applicationfile/foo.  Now in the gterminal (open at the same
> time)  I want to $ cat 'foundfile/foo'.  How do I automatically
> insert /usr/applicationfile/foo
> 
> Remind me how, please ??

Not sure about what you want.

You may check the $PWD environment variable (Print Working Directory),
or the pwd corresponding command, that return the current path.

E.g.:
$ cd ~/foo
$ pwd
/home/username/foo
$ basename $PWD
foo

HTH
Cheers
-- 
Stefano Sabatini
Linux user number 337176 (see http://li.count.org)



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]