vBulletin Search Engine Optimization
| |||||||
| Register | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| |||
| rav <rav.admins@gmail.com> wrote: r> Hi,, r> How to change user login prompt( $ ) along with that he should able to r> get his present working directory when he logged in,, r> After login r> Ex: " $ /home/rav > " r> ------------------------ r> r> r> Regards, r> Rav. r> export PS1="$PWD>" in $HOME/.kshrc or in $HOME/.profile -- "... I shook my family tree, and a bunch of NUTS fell out ..." |
| |||
| rav wrote: > Hi,, > How to change user login prompt( $ ) along with that he should able to > get his present working directory when he logged in,, > After login > Ex: " $ /home/rav > " > ------------------------ > > > Regards, > Rav. Hi Rav, You can put the following line in your .profile file: export PS1='$HOST:$PWD:#>' This will give you a prompt with the machine hostnam followed by your current working directory (For example: "aixserver:/home/rav:#>"). If you want this to be applied to all users on this server, you should put this line in the /etc/profile file. Regards, Art |
| |||
| rav <rav.admins@gmail.com> wrote: r> Hi Bela, r> Thanks for reply,,but its not showing working dir, when we palce this: r> export PS1="$PWD>" r> in users ' .profile or .kshrc " r> Regards, r> Rav. r> What's the login shell of your users? For csh use: set prompt = "$cwd >" -- "... I shook my family tree, and a bunch of NUTS fell out ..." |
| ||||
| Hi, Please add the follwoing entry in "/etc/profile" to change the user prompt for all the users. #************************************************* ** export PS1='$LOGNAME''@'`hostname`':''$PWD''>' #************************************************* ********* Rgds Sanku Bela wrote: > rav <rav.admins@gmail.com> wrote: > r> Hi Bela, > r> Thanks for reply,,but its not showing working dir, when we palce this: > r> export PS1="$PWD>" > r> in users ' .profile or .kshrc " > r> Regards, > r> Rav. > r> > > What's the login shell of your users? For csh use: set prompt = "$cwd >" > > -- > "... I shook my family tree, and a bunch of NUTS fell out ..." |
| Thread Tools | |
| Display Modes | |
|
|