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
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

#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 12-13-2007
Franklin52's Avatar
Franklin52 Franklin52 is offline Forum Staff  
Join Date: Feb 2007
Last Activity: 28 February 2015, 5:36 AM EST
Location: The Netherlands
Posts: 7,727
Thanks: 128
Thanked 543 Times in 511 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 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 03:16 AM
how to change /export/home/user dir to /home /user in solaris kalyankalyan Solaris 2 05-31-2010 09:19 AM
how to simulate "mkdir -p /home/blah1/blah2/blah3" in "c" where only /home exist platinumedge Programming 8 10-07-2009 12:26 PM
HOME env ilko_partizan Shell Programming and Scripting 1 02-27-2008 07:15 AM
$HOME is not getting it's value. radhika Shell Programming and Scripting 4 06-01-2005 09:52 AM

All times are GMT -4. The time now is 04:45 PM.