this post was submitted on 08 Sep 2026
84 points (98.8% liked)
Linux
15025 readers
335 users here now
A community for everything relating to the GNU/Linux operating system (except the memes!)
Also, check out:
Original icon base courtesy of lewing@isc.tamu.edu and The GIMP
founded 3 years ago
MODERATORS
you are viewing a single comment's thread
view the rest of the comments
view the rest of the comments
Why do you need some terminal remote control for determining the working directory of a terminal exactly? Can't you just go down the process tree until you find the shell and do
realpath /proc/<pid>/cwdon it? Am I missing something?