Unix/Linux Go Back    

UNIX for Dummies Questions & Answers This forum is closed for new posts. Please post beginner questions to learn unix and learn linux in this forum UNIX for Beginners Questions & Answers

how to set $HOME?

UNIX for Dummies Questions & Answers

Thread Tools Search this Thread Display Modes
Old Unix and Linux 12-13-2007
sachin.gangadha sachin.gangadha is offline
Registered User
Join Date: Nov 2007
Last Activity: 23 April 2008, 9:40 PM EDT
Posts: 37
Thanks: 0
Thanked 0 Times in 0 Posts
how to set $HOME?

Hi Everyone!

I just want to know how to set $HOME.
I cant see $HOME in my profile.

Below is my profile.

export PATH=.:/usr/bin:/etc:/usr/sbin:/usr/ucb:$HOME/bin:/usr/bin/X11:/sbin:/mai

#export $PATH
export SYBASE=/mailservice/sybase/12.5
export DSQUERY=site234dev2
export PATH=.:/usr/bin:/etc:/usr/sbin:/usr/ucb:$HOME/bin:/usr/bin/X11:/sbin:/mai

if [ -s "$MAIL" ] # This is at Shell startup. In normal
then echo "$MAILMSG" # operation, the Shell checks
fi # periodically.

#cd $MENUS
cd /mailservice/mailorder/menus

if [ -z "$DISPLAY" ]; then
TMOUT=800;export TMOUT
Sponsored Links
Old Unix and Linux 12-13-2007
Franklin52's Unix or Linux Image
Franklin52 Franklin52 is offline Forum Staff  
Join Date: Feb 2007
Last Activity: 5 May 2017, 7:24 AM EDT
Location: The Netherlands
Posts: 7,746
Thanks: 139
Thanked 558 Times in 520 Posts
There's an entry in /etc/passwd for the userid. To set the $HOME variable you can change the next to the last field.

Sponsored Links
Old Unix and Linux 12-13-2007
porter porter is offline Forum Advisor  
Registered User
Join Date: Jan 2007
Last Activity: 8 January 2008, 6:50 PM EST
Posts: 2,965
Thanks: 0
Thanked 5 Times in 5 Posts
I thought HOME and a couple of things were setup by login from /etc/passwd or equivalent.
Sponsored Links

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Linux More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
cp -p /home/* home/exp/*.date not working please help rishiraaz Shell Programming and Scripting 4 03-03-2011 02:16 AM
how to change /export/home/user dir to /home /user in solaris kalyankalyan Solaris 2 05-31-2010 08:19 AM
how to simulate "mkdir -p /home/blah1/blah2/blah3" in "c" where only /home exist platinumedge Programming 8 10-07-2009 11:26 AM
HOME env ilko_partizan Shell Programming and Scripting 1 02-27-2008 06:15 AM
$HOME is not getting it's value. radhika Shell Programming and Scripting 4 06-01-2005 08:52 AM

All times are GMT -4. The time now is 10:59 AM.