- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: Refresh .profile
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Forums
Discussions
Discussions
Discussions
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-21-2008 09:33 AM
08-21-2008 09:33 AM
Refresh .profile
How to refresh the .profile for one user?
I am new to Unix system admin, Guide me which book or docs I can refer to know all system admin part.
Thanks in advance,
Ram.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-21-2008 10:08 AM
08-21-2008 10:08 AM
Re: Refresh .profile
The .profile is a plain text file so it can be edited with vi.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-21-2008 10:09 AM
08-21-2008 10:09 AM
Re: Refresh .profile
If I understand your objective, copy '/usr/newconfig/etc/skel/.profile' as the user's profile; chown it to the user and modify what you need again.
Books and documents? The manpages and (to start):
http://docs.hp.com/en/B2355-90950/index.html
Regards!
...JRF...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-21-2008 10:28 AM
08-21-2008 10:28 AM
Re: Refresh .profile
I exported one environment variable for one user. I thought, need to refresh the .profile to reflect the change. Sorry for the confusion. Hope It will take the variable once I export it.
Thank you Patrik and James.
Thanks.
Ram.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-21-2008 10:28 AM
08-21-2008 10:28 AM
Re: Refresh .profile
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-22-2008 10:11 PM
08-22-2008 10:11 PM
Re: Refresh .profile
As per my understanding, you are asking about this command.
$. ./.profile
Dot space dot slash dot profile
OR
the best way is logout and login again. It will load with latest changes done by you.
http://docs.hp.com/en/B9106-90011/profile.4.html
Regards,
Asif Sharif
Asif Sharif
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-23-2008 01:57 AM
08-23-2008 01:57 AM
Re: Refresh .profile
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-23-2008 07:30 PM
08-23-2008 07:30 PM
Re: Refresh .profile
. ~/.profile
There's no need to do "cd", but without doing
it, "./.profile" (which is exactly equivalent
to ".profile") may not work.
The "./" in "./file_name" is useful if you're
using it as a command (the first token on the
command line), but it's pointless in
". ./file_name".
Sometimes it's helpful to think about what
the shell does with a command, rather than
throwing in every good idea from every
context, whether or not it makes any sense
in the current situation.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-23-2008 10:43 PM
08-23-2008 10:43 PM
Re: Refresh .profile
Correct.
>The "./" in "./file_name" is useful if you're using it as a command, but it's pointless in ". ./file_name".
Quite the contrary, a real shell (ksh(1) and sh-posix(1)) says PATH is used, so all root users must use ./ for sourcing too.
>rather than throwing in every good idea from every context
Sometimes the good ideas are mandatory since the same design was used. :-)