How to reset the unix prompt?


 
Thread Tools Search this Thread
Top Forums UNIX for Dummies Questions & Answers How to reset the unix prompt?
# 8  
Old 01-05-2006
MySQL thanx guys

Hi All,

I got the answer..

Just use PS1="[\u@\h \W]\$"
This will bring back the default prompt.

Thank you all for looking into my problem.

Thanks and Regards,
Saneesh Joseph.
 
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Solaris

Rebooting Windows machine leads to continue sync reset on UNIX

Hello, We have Windows 10 machine connected to Sparc T5440 server via serial cable. We access the server from the Windows 10 machine using putty via serial connection. This allows us to access ILOM and Unix. We have recently noticed that whenever we reboot the windows machine (Windows 10),... (11 Replies)
Discussion started by: jasonu
11 Replies

2. UNIX for Dummies Questions & Answers

How to Change the % prompt to - prompt in UNIX?

how to Change the % prompt to - prompt in unix :wall: ---------- Post updated at 07:40 AM ---------- Previous update was at 07:38 AM ---------- How To display the last modification time of any file in unix ---------- Post updated at 07:40 AM ---------- Previous update was at 07:40 AM... (2 Replies)
Discussion started by: manjiri sawant
2 Replies

3. UNIX Desktop Questions & Answers

Can Unix access Windows' File through Command Prompt in Unix

Hi all, I wish to know whether Unix can access window's file in Unix's terminal? Apart from that, how to copy files or share files between Window and Unix? I get to know of secure copy, however, my company's Unix does not support the feature of secure copy? Any other method for me to share/... (5 Replies)
Discussion started by: jessy83
5 Replies

4. UNIX for Dummies Questions & Answers

unix prompt not on a newline

I just experimented with the macbook pro at work and saw that the prompt is on the same line as the result of my commands. How can I fix this -- I forget which variable or whatever handles this. (1 Reply)
Discussion started by: Straitsfan
1 Replies

5. UNIX for Dummies Questions & Answers

shell (tcsh) prompt gets reset on every cd

Hi, I type in my shell: set prompt="(%M) %c%b%# " to get something like: a/b/c> this works, but only partially. every time I move to to a different directory (i.e. 'cd <some dir>'), the prompt is reset. Meaning, when I 'echo $prompt' after setting the prompt I get the correct prompt,... (8 Replies)
Discussion started by: yuvalbn
8 Replies

6. UNIX for Dummies Questions & Answers

Reset prompt back to "-bash-3.00$"

Can anyone tell me how to reset the command prompt back to the original 'bas'h prompt as these have all been changed via the /etc/profile to add username and hostname but some are too long. I just want to run it in a local .profile to put it back. Thanks (2 Replies)
Discussion started by: skewbie
2 Replies

7. Cybersecurity

How to reset root password of old Unix System V

Hi all, This is first time I met unix in my life. I purchased old Scanning Elecron Microscope which came with 486/33MHz PC running Unix System V, ver. 3.6. The one simple user name/passw is known so I can boot and login. But can not shutdown! It asks root or su passw. I'm very sensitive not to... (6 Replies)
Discussion started by: 82026
6 Replies

8. HP-UX

@ symbol at UNIX prompt

Hi, I am not able to type the symbol '@' on my UNIX prompt. Do I need to setup any enviornment for this. Thanks in advance. Thanks San (2 Replies)
Discussion started by: san
2 Replies

9. UNIX for Dummies Questions & Answers

Changing Unix Prompt

Me again, What is the difficulty to display the full directory Path before my prompt command ? (like DOS) I'm using Solaris 8 + Bash Thanks again Fabien (4 Replies)
Discussion started by: unclefab
4 Replies

10. UNIX for Dummies Questions & Answers

Changing the UNIX command prompt

I am having a hard time figuring out how to change the command prompt in my UNIX shell. I am using the bash shell, and I would like to set the prompt to show me the full path of the current working directory along with my username, I suppose... The main thing I want is the full path of the... (2 Replies)
Discussion started by: WERUreo
2 Replies
Login or Register to Ask a Question
pam_get_user(3) 					     Library Functions Manual						   pam_get_user(3)

NAME
pam_get_user - PAM routine to retrieve user name. SYNOPSIS
[ flag ... ] file ... [ library ... ] DESCRIPTION
is used by PAM service modules to retrieve the current user name from the PAM handle. If the user name has not been set, via or then the PAM conversation function will be used to prompt the user for the user name with the string "prompt". If prompt is NULL, then is called and the value of is used for prompting. If the value of is NULL, the following default prompt is used: After the user name is gathered by the conversation function, is called to set the value of By convention, applications that need to prompt for a user name should call and set the value of before calling The service module's func- tion will then call to prompt for the user name. Note that certain PAM service modules (such as a smart card module) may override the value of and pass in their own prompt. Applications that call multiple times should set the value of to NULL with before calling if they want the user to be prompted for a new user name each time. The value of user retrieved by should not be modified or freed. The item will be released by APPLICATION USAGE
Refer to pam(3) for information on thread-safety of PAM interfaces. RETURN VALUES
Upon success, returns otherwise it returns an error code. Refer to pam(3) for information on error related return values. SEE ALSO
pam(3), pam_start(3), pam_authenticate(3), pam_get_item(3), pam_set_item(3), pam_sm(3), pam_sm_authenticate(3), pam_end(3). pam_get_user(3)