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
Pseudo-terminal will not be allocated because stdin is not a terminal. Shivdatta UNIX for Advanced & Expert Users 1 08-04-2008 11:29 AM
Terminal settings from linux to solaris tjlst15 SUN Solaris 2 09-09-2005 08:24 AM
Terminal Video Settings cchyzm UNIX for Dummies Questions & Answers 4 03-17-2004 05:37 PM
Terminal settings on solaris sssow UNIX for Dummies Questions & Answers 2 08-20-2003 07:10 PM
connecting to unix through hyper terminal - as a dumb terminal michelle UNIX for Advanced & Expert Users 2 11-05-2001 03:32 PM

Closed Thread
English Japanese Spanish French German Portuguese Italian Dutch Swedish Russian Norwegian Hungarian Hebrew Danish Bulgarian Greek Powered by Powered by Google
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
  #1 (permalink)  
Old 02-17-2006
dstinsman dstinsman is offline
Registered User
  
 

Join Date: Feb 2006
Posts: 23
KSH Terminal Settings

I've been doing a lot of searching through the forums to figure out how to:

1 - get my Backspace key to work in my ksh telnet session
2 - get the PWD to show up as the prompt

Solution to 1 - stty erase ^H
Solution to 2 - export PS1="$PWD>"

Or so I thought...type those commands on the command line only apply the settings for the current session, it seems. I've been reading about putting these lines in the .profile, but I don't know where that file is...how can I locate and edit it?

Also, #2 is kinda weird...once I tried it and it worked fine (for the current session), then I tried it again and it would display the PWD that I was in when I ran that command, even if I moved to another directory.

Any help appreciated.
  #2 (permalink)  
Old 02-17-2006
matrixmadhan matrixmadhan is online now Forum Advisor  
Technorati Master
  
 

Join Date: Mar 2005
Location: leaf node in B+ tree
Posts: 2,960
.profile would be available in home directory

to retrieve your home directory get the entry from /etc/passwd file against your login id

then add the two solutions you had found out
run your .profile to effect for the current session by

. $HOME/.profile
or
. ~/.profile

for subsequent sessions it would be automatically effected
  #3 (permalink)  
Old 02-17-2006
dstinsman dstinsman is offline
Registered User
  
 

Join Date: Feb 2006
Posts: 23
OK, in this statement from passwd:

user:pswd:000:00:DevLogin:/u01/app/stg:/usr/bin/ksh

the u01/app/stg is my home directory, correct? There is no .profile in that directory.

Last edited by Perderabo; 02-17-2006 at 04:39 PM.. Reason: disable smilies for readability
  #4 (permalink)  
Old 02-17-2006
Perderabo's Avatar
Perderabo Perderabo is offline Forum Staff  
Unix Daemon
  
 

Join Date: Aug 2001
Location: Ashburn, Virginia
Posts: 9,131
Then just make a .profile file.
  #5 (permalink)  
Old 02-17-2006
dstinsman dstinsman is offline
Registered User
  
 

Join Date: Feb 2006
Posts: 23
Oh...duh. OK, I did that...

Now, the backspace key is working : )
But the prompt is still showing my home directory regardless of where I cd to...
  #6 (permalink)  
Old 02-17-2006
Perderabo's Avatar
Perderabo Perderabo is offline Forum Staff  
Unix Daemon
  
 

Join Date: Aug 2001
Location: Ashburn, Virginia
Posts: 9,131
Use single quotes:

export PS1='$PWD>'
Closed Thread

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




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


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited. Language Translations Powered by .
vBCredits v1.4 Copyright ©2007 - 2008, PixelFX Studios
The UNIX and Linux Forums Content Copyright ©1993-2009. All Rights Reserved.Ad Management by RedTyger

Content Relevant URLs by vBSEO 3.2.0