Re: Transferring current path in nautilus, file browser to command line ??
- From: Stefano Sabatini <stefano sabatini-lala poste it>
- To: gnome-list gnome org
- Subject: Re: Transferring current path in nautilus, file browser to command line ??
- Date: Sat, 25 Nov 2006 19:31:55 +0100
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]