Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.debian.user > #179537

Re: When specifying path to file - confused about ./ and ~/

From songbird <songbird@anthive.com>
Newsgroups linux.debian.user
Subject Re: When specifying path to file - confused about ./ and ~/
Date 2017-03-28 19:20 +0200
Message-ID <tq2WJ-2sj-1@gated-at.bofh.it> (permalink)
References (1 earlier) <tpB0u-7gY-9@gated-at.bofh.it> <tpBjP-7ro-9@gated-at.bofh.it> <tpIuZ-4vN-17@gated-at.bofh.it> <tpIY1-4JX-3@gated-at.bofh.it> <tpKZQ-6oC-7@gated-at.bofh.it>
Organization the little wild kingdom

Show all headers | View raw


kAt wrote:
...
> I have an example where this might be useful or then I am not
> understanding the difference.
>
> Let's say you have an executable package in the system and let's call it
> pkgX
> If you type pkgX in any prompt then /usr/bin/pkgX will be executed

  maybe, maybe not (depends upon path).

  if you don't know where the executable is coming
from you can use the command:

$ which <program_name>

  note: some executables are in /usr/bin, some are
in /bin or /sbin...

  which directories are used/searched will depend upon
the path, perhaps the shell you are using and
of course which user you are.


> But let's say you want to download and run a variation of this package,
> edit its source and modify it, or just want to run separately a
> standalone package in /xyz/packageX/pkgX
> If you $cd /xyz/packageX and then $ ./pkgX the standalone would run,
> right?  While pkgX will run the /usr/bin/pkgX

  see above...


  songbird

Back to linux.debian.user | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread


Thread

When specifying path to file - confused about ./ and ~/ Richard Owlett <rowlett@cloud85.net> - 2017-03-27 13:20 +0200
  Re: When specifying path to file - confused about ./ and ~/ Peter Ludikovsky <peter@ludikovsky.name> - 2017-03-27 13:30 +0200
    Re: When specifying path to file - confused about ./ and ~/ Richard Owlett <rowlett@cloud85.net> - 2017-03-27 13:50 +0200
      Re: When specifying path to file - confused about ./ and ~/ David <bouncingcats@gmail.com> - 2017-03-27 14:30 +0200
        Re: When specifying path to file - confused about ./ and ~/ <tomas@tuxteam.de> - 2017-03-27 14:50 +0200
          Re: When specifying path to file - confused about ./ and ~/ Richard Owlett <rowlett@cloud85.net> - 2017-03-27 16:30 +0200
            Re: When specifying path to file - confused about ./ and ~/ <tomas@tuxteam.de> - 2017-03-27 16:40 +0200
              Re: When specifying path to file - confused about ./ and ~/ Richard Owlett <rowlett@cloud85.net> - 2017-03-27 17:50 +0200
                Re: When specifying path to file - confused about ./ and ~/ <tomas@tuxteam.de> - 2017-03-27 21:40 +0200
          Chaos of confusion RESOLVED - was [Re: When specifying path to file -  confused about ./ and ~/] Richard Owlett <rowlett@cloud85.net> - 2017-04-03 14:50 +0200
        Re: When specifying path to file - confused about ./ and ~/ Richard Owlett <rowlett@cloud85.net> - 2017-03-27 16:00 +0200
      Re: When specifying path to file - confused about ./ and ~/ Brian <ad44@cityscape.co.uk> - 2017-03-27 21:30 +0200
        Re: When specifying path to file - confused about ./ and ~/ Richard Owlett <rowlett@cloud85.net> - 2017-03-27 22:00 +0200
          Re: When specifying path to file - confused about ./ and ~/ Brian <ad44@cityscape.co.uk> - 2017-03-27 23:20 +0200
          Re: When specifying path to file - confused about ./ and ~/ kAt <giathnygeia@openmailbox.org> - 2017-03-28 00:10 +0200
            Re: When specifying path to file - confused about ./ and ~/ Ben Caradoc-Davies <ben@transient.nz> - 2017-03-28 00:30 +0200
            Re: When specifying path to file - confused about ./ and ~/ Mark Fletcher <mark27q1@gmail.com> - 2017-03-28 02:00 +0200
            Re: When specifying path to file - confused about ./ and ~/ David Wright <deblis@lionunicorn.co.uk> - 2017-03-28 03:20 +0200
            Re: When specifying path to file - confused about ./ and ~/ songbird <songbird@anthive.com> - 2017-03-28 19:20 +0200
              Re: When specifying path to file - confused about ./ and ~/ Brian <ad44@cityscape.co.uk> - 2017-03-28 19:30 +0200
  Re: When specifying path to file - confused about ./ and ~/ The Wanderer <wanderer@fastmail.fm> - 2017-03-27 14:40 +0200
    Re: When specifying path to file - confused about ./ and ~/ Mark Fletcher <mark27q1@gmail.com> - 2017-03-27 15:30 +0200
      Re: When specifying path to file - confused about ./ and ~/ David Wright <deblis@lionunicorn.co.uk> - 2017-03-27 17:00 +0200
      Re: When specifying path to file - confused about ./ and ~/ Richard Owlett <rowlett@cloud85.net> - 2017-03-27 17:10 +0200
    Re: When specifying path to file - confused about ./ and ~/ Richard Owlett <rowlett@cloud85.net> - 2017-03-27 16:40 +0200
      Re: When specifying path to file - confused about ./ and ~/ Jochen Spieker <ml@well-adjusted.de> - 2017-03-27 17:10 +0200

csiph-web