NETGEAR is aware of a growing number of phone and online scams. To learn how to stay safe click here.
Forum Discussion
coreyinoz
Jul 17, 2014Tutor
Permanently set export DISPLAY= environment variable
Hi, I did a HD upgrade and factory reset recently and managed to tweak out my config all the way back to where I was except for this, and it's driving me nuts. I can't figure out where to perman...
mdgm-ntgr
Jul 18, 2014NETGEAR Employee Retired
Not the /home directory, but the home directory for your user
This normally would be the default directory when you login.
So if you have changed the working directory you could do
However if you really want to make sure you are changing to the home directory for the user you are logged in as do e.g.
You can also see the home directory in /etc/passwd
e.g.
For the root user it is /root
So alternatively you could do e.g.
This normally would be the default directory when you login.
So if you have changed the working directory you could do
# cd
However if you really want to make sure you are changing to the home directory for the user you are logged in as do e.g.
# cd ~
You can also see the home directory in /etc/passwd
e.g.
MDGM-NAS:~# cat /etc/passwd | grep "/root"
root:x:0:0:root:/root:/bin/bash
For the root user it is /root
So alternatively you could do e.g.
# cd /root
Related Content
NETGEAR Academy

Boost your skills with the Netgear Academy - Get trained, certified and stay ahead with the latest Netgear technology!
Join Us!