Hello,
/root or $HOME?
Inside a script, are these to paths equivalent or different, for example, has this any importance according to the mode Puppy is running?
Thank you for your attention.
Cordialement.
/root or $HOME? [SOLVED]
- Argolance
- Posts: 3767
- Joined: Sun 06 Jan 2008, 22:57
- Location: PORT-BRILLET (Mayenne - France)
- Contact:
/root or $HOME? [SOLVED]
Last edited by Argolance on Tue 02 Apr 2013, 18:27, edited 1 time in total.
- L18L
- Posts: 3479
- Joined: Sat 19 Jun 2010, 18:56
- Location: www.eussenheim.de/
Re: /root or $HOME?
equivalent if running as rootArgolance wrote:equivalent or different
different if not running as root (---> fido, spot, rex or any other name)
fido's HOME is /root/fido
spot's HOME is /root/spot
I would recommend always $HOME
Salut Argolance.
In addition to L18L's observations, if, in a console, you type :
Bye for now.
musher0
In addition to L18L's observations, if, in a console, you type :
- you get the directory where your Puppy system files are located;
Code: Select all
rox /mnt/home
you get the usual "/root";Code: Select all
rox $HOME
you get a listing of the directory from which you issued your command.Code: Select all
rox $home
Bye for now.
musher0
Last edited by musher0 on Tue 02 Apr 2013, 19:07, edited 1 time in total.
musher0
~~~~~~~~~~
"You want it darker? We kill the flame." (L. Cohen)
~~~~~~~~~~
"You want it darker? We kill the flame." (L. Cohen)
Am launching xwin via /etc/inittab :
It appears that rox uses "$HOME" as well.
Some probably should be /root though :
/root/.packages
/root/.pup_event
Code: Select all
bash-3.2# echo $HOME
/
Some probably should be /root though :
/root/.packages
/root/.pup_event