Reputation
Top tag
Next privilege 125 Rep.
Vote down
Badges
4
Newest
 Editor
Impact
~272 people reached

  • 0 posts edited
  • 0 helpful flags
  • 6 votes cast
Jun
4
accepted How can I find out the path to a chrooted environment in which a particular daemon was started?
Jun
4
comment How can I find out the path to a chrooted environment in which a particular daemon was started?
/proc/<pid>/cwd is a symbolic link to the working directory of the process, /proc/<pid>/cwd is a symbolic link to the corresponding binary, both from the host environment's perspective. Also, lsof +p <pid> shows this path.
Jun
4
awarded  Editor
Jun
4
revised How can I find out the path to a chrooted environment in which a particular daemon was started?
Clarify scenario
Jun
4
asked How can I find out the path to a chrooted environment in which a particular daemon was started?
May
17
awarded  Supporter
Mar
18
awarded  Student
Mar
18
awarded  Scholar
Mar
18
accepted Is is possible (and how) to have a “virtual” soft link whose value depends on the shell environment?
Mar
18
comment Is is possible (and how) to have a “virtual” soft link whose value depends on the shell environment?
You are right, this is exactly what I was looking for. Too bad they are not available in Linux.
Mar
18
comment Is is possible (and how) to have a “virtual” soft link whose value depends on the shell environment?
yes, currently I am using a env var with the work dir path in it, and a function that sets its value and updates all depending env vars. I also have shopt -s cdable_vars in my .bashrc so that I can do cd workingsrc anywhere and get to $workingsrc. I was looking for a next step from this setup.
Mar
18
asked Is is possible (and how) to have a “virtual” soft link whose value depends on the shell environment?