Linux - NewbieThis Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place!
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Basically, you can have your prompt show almost whatever you want in Linux (Bash) so there's no real indication to what it might mean. It might be typical for the shell that has been assigned to that user, or just configured to show that by the sysadmin for whatever reason. Have a look at this site for some simple explanation. Check what shell is used by that user by running:
In bash, users have a lot of freedom in how they want their prompt to appear. You can read all about it when you check out the bash documentation on environment variable PS1.
Also, did you think to ask the administrator of the server? Potentially they may have different prompts for different levels
of access that can be seen at a glance by viewing the prompt type.
Z-shell is an advanced shell that attempts to combine various ideas from bash, ksh, and tcsh, but that's about all I know about it. A look through their FAQ shows them apparently using % as the default prompt in their code examples.
And anishkumarv, could you please remove the "----" lines in your signature, or at least break them up with some spaces? They force my screen to side-scroll, making your threads hard to read. I tried sending you a private message about it last month, but you seem to have missed it.
Hi all,
What ~% this symbol refers?? guide me to solve this thread.
Easy enough ... the ~ refers to the home directory of the user, and the % is whatever the prompt is. Like others have mentioned, you can change this by modifying the PS1 environment variable.
Last edited by sandwormusmc; 09-06-2011 at 03:42 PM.
Reason: Removed the troll code :P
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.