The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > Top Forums > UNIX for Dummies Questions & Answers
Google UNIX.COM


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

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
ksh and .profile JamesByars Shell Programming and Scripting 9 02-24-2008 12:09 AM
Where can I read about the difference between "..profile" and ".profile" zorrokan UNIX for Dummies Questions & Answers 2 09-04-2007 10:35 PM
Difference between .profile and .~/.profile maneesh mehta SCO 3 12-14-2005 01:35 AM
changed .profile but didnt ./.profile, yet reflected changes yls177 UNIX for Dummies Questions & Answers 4 12-05-2002 08:21 AM
why i have local.profile, local.cshrc,local.login instead of .profile, .login ? abidmalik UNIX for Dummies Questions & Answers 5 08-26-2002 10:47 PM

Reply
 
Submit Tools LinkBack Thread Tools Search this Thread Display Modes
  #1  
Old 10-17-2004
Registered User
 

Join Date: Sep 2004
Posts: 32
How to get to my .profile?

Hi,
When I logon to UNIX I go to the root directory. I don't have an assigned user directory.
I need to get to my .profile so that I can change things like command prompt.

How do I do this? By the way I am using SUN Solaris

Thanks.
Reply With Quote
Forum Sponsor
  #2  
Old 10-18-2004
Registered User
 

Join Date: Mar 2004
Location: Esher, Surrey, England.
Posts: 31
This will create and set your home directory.

usermod -d <directory> -m <username>

Then copy the /etc/skel/local.profile to your home directory and rename to .profile .

I think that should do it...

Last edited by PaulC; 10-18-2004 at 01:31 AM.
Reply With Quote
  #3  
Old 10-18-2004
Registered User
 

Join Date: Sep 2004
Posts: 32
Thank you much. I'll give it a try.
Reply With Quote
  #4  
Old 10-18-2004
google's Avatar
Moderator
 

Join Date: Jul 2002
Location: Atlanta
Posts: 740
Quote:
I need to get to my .profile so that I can change things like command prompt.
The /etc/skel file is used to set the default profile for all users added to the box. You shouldnt have to change what is already there.
First, check to see that you have a .profile. You more than likely already do. You will find it in your home directory. Since it is a hidden file, you [obviously] wont be able to see it with a normal ls listing. Try ls -a.

To change your prompt:

export PS1='$PWD--> '
Reply With Quote
Google The UNIX and Linux Forums
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes




All times are GMT -7. The time now is 02:54 AM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited.
The UNIX and Linux Forums Content Copyright ©1993-2008. All Rights Reserved.Ad Management by RedTyger Visit The Complex Event Processing Blog

Content Relevant URLs by vBSEO 3.2.0