how to set $HOME? | Unix Linux Forums | UNIX for Dummies Questions & Answers

  Go Back    


UNIX for Dummies Questions & Answers If you're not sure where to post a UNIX or Linux question, post it here. All UNIX and Linux newbies welcome !!

how to set $HOME?

UNIX for Dummies Questions & Answers


Closed Thread    
 
Thread Tools Search this Thread Display Modes
    #1  
Old 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
lservice/sybase/12.5/OCS-12_5/bin:/mailservice/sybase/config:.

#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
lservice/sybase/12.5/OCS-12_5/bin:/mailservice/sybase/config:.

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

USER=$LOGNAME;export USER
if [ -z "$DISPLAY" ]; then
TMOUT=800;export TMOUT
exec
fi
Sponsored Links
    #2  
Old 12-13-2007
Franklin52's Avatar
Franklin52 Franklin52 is offline Forum Staff  
Moderator
 
Join Date: Feb 2007
Last Activity: 20 October 2014, 1:29 PM EDT
Location: The Netherlands
Posts: 7,719
Thanks: 123
Thanked 538 Times in 508 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.

Regards
Sponsored Links
    #3  
Old 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
Closed Thread

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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 03:03 AM.