On Tue, 24 Aug 2021 14:02:46 -0400, Doug Laidlaw <
[email protected]> wrote:
So..what ids the default work path? If I start a program with a command
by a full path to /usr/bin, starting from my current directory, which is
not writable, what is the "work path" in that case?
If the PWD has not been set and you try to use it, it starts as $HOME. The value for
$HOME is set in /etc/passwd.
From "man 5 passwd" ...
directory This is the user's home directory: the initial directory where the user is placed after logging in. The value in this field is used to set the HOME environment variable.
Any time you run the cd command, it changes the value in PWD.
Regards, Dave Hodgins
--
Change
[email protected] to
[email protected] for
email replies.
--- MBSE BBS v1.0.7.22 (GNU/Linux-x86_64)
* Origin: A noiseless patient Spider (2:250/1@fidonet)