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

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

 



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)
_______________________________________________
gnome-list mailing list
gnome-list@xxxxxxxxx
http://mail.gnome.org/mailman/listinfo/gnome-list

[Index of Archives]     [Fedora Desktop]     [Trinity Users]     [KDE]     [Gimp]     [Yosemite News]

  Powered by Linux