Go Back   The UNIX and Linux Forums > Top Forums > UNIX for Advanced & Expert Users


UNIX for Advanced & Expert Users Expert-to-Expert. Learn advanced UNIX, UNIX commands, Linux, Operating Systems, System Administration, Programming, Shell, Shell Scripts, Solaris, Linux, HP-UX, AIX, OS X, BSD.

Closed Thread    
 
Thread Tools Search this Thread Display Modes
    #1  
Old 04-10-2012
vipinkumarr89's Avatar
Registered User
 
Join Date: Mar 2012
Location: INDIA (BANGALORE)
Posts: 21
Thanks: 0
Thanked 1 Time in 1 Post
Environmental variable

i want to set environmental variables in solaris and redhat.

it should show the current directory and the default shell should be bourne shell. along with it should show the hostname..

like this


Code:
hostname{/home/vipin/data}# ifconfig

Thanks in advanced.

Moderator's Comments:
Please use code tags. Video tutorial on how to use them

Last edited by Scrutinizer; 04-10-2012 at 04:13 AM..
Sponsored Links
    #2  
Old 04-10-2012
Skrynesaver's Avatar
Grumpy old geek
 
Join Date: Mar 2011
Location: Éire
Posts: 660
Thanks: 19
Thanked 147 Times in 144 Posts
Check out the PROMPTING section of the man page,
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
.local hostname available as an environmental variable? gentinphilly OS X (Apple) 3 09-22-2011 12:29 PM
How to get the value of a variable which is having another value in environmental script? dinesh1985 Shell Programming and Scripting 4 07-23-2010 01:40 PM
setting ksh environmental variable mefquik Shell Programming and Scripting 2 03-21-2009 12:51 PM
Environmental Variable janemary.a Shell Programming and Scripting 2 05-15-2007 01:46 AM
Set Oracle Environmental Variable !! uuser Shell Programming and Scripting 4 02-22-2006 01:46 PM



All times are GMT -4. The time now is 01:20 AM.