LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This 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


Reply
  Search this Thread
Old 09-05-2011, 02:27 PM   #1
anishkumarv
Member
 
Registered: Feb 2010
Location: chennai - India
Distribution: centos
Posts: 294

Rep: Reputation: 10
~% This Symbol Refers???


Hi all,

Thanks in Advance!!!

actually i have a doubt one of my client give access in to their server, but when i login as a normal user

it shows this kind of login prompt

Code:
[mysql@newton]~%
can any one explain what kind of login this refers, because befor that i know only two kind of logins..

1. Rootuser #
2. normal user $

What ~% this symbol refers?? guide me to solve this thread.
 
Old 09-05-2011, 02:38 PM   #2
EricTRA
LQ Guru
 
Registered: May 2009
Location: Gibraltar, Gibraltar
Distribution: Fedora 20 with Awesome WM
Posts: 6,805
Blog Entries: 1

Rep: Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297
Hello,

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:
Code:
echo $SHELL
Kind regards,

Eric
 
1 members found this post helpful.
Old 09-05-2011, 02:39 PM   #3
tbrand
Member
 
Registered: Jul 2006
Location: Toronto, Canada
Distribution: gentoo
Posts: 33

Rep: Reputation: 17
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.
 
1 members found this post helpful.
Old 09-05-2011, 03:07 PM   #4
Tinkster
Moderator
 
Registered: Apr 2002
Location: earth
Distribution: slackware by choice, others too :} ... android.
Posts: 23,067
Blog Entries: 11

Rep: Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928
I think that in a good number of set-ups (t)csh defaults to %

What does your shell say it is?

Cheers,
Tink
 
1 members found this post helpful.
Old 09-05-2011, 07:41 PM   #5
grail
LQ Guru
 
Registered: Sep 2009
Location: Perth
Distribution: Manjaro
Posts: 10,007

Rep: Reputation: 3191Reputation: 3191Reputation: 3191Reputation: 3191Reputation: 3191Reputation: 3191Reputation: 3191Reputation: 3191Reputation: 3191Reputation: 3191Reputation: 3191
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.
 
1 members found this post helpful.
Old 09-06-2011, 10:10 AM   #6
anishkumarv
Member
 
Registered: Feb 2010
Location: chennai - India
Distribution: centos
Posts: 294

Original Poster
Rep: Reputation: 10
Hi all, thanks for the reply


Code:
echo $SHELL
when i entered this command,

i got this output,

Code:
/bin/zsh
/bin/zsh

for this shell i am totally new ..need to analyse about this

Last edited by anishkumarv; 09-06-2011 at 10:13 AM.
 
Old 09-06-2011, 11:05 AM   #7
David the H.
Bash Guru
 
Registered: Jun 2004
Location: Osaka, Japan
Distribution: Arch + Xfce
Posts: 6,852

Rep: Reputation: 2037Reputation: 2037Reputation: 2037Reputation: 2037Reputation: 2037Reputation: 2037Reputation: 2037Reputation: 2037Reputation: 2037Reputation: 2037Reputation: 2037
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.

http://en.wikipedia.org/wiki/Zshell
http://zsh.sourceforge.net/FAQ/

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.
 
Old 09-06-2011, 11:20 AM   #8
EricTRA
LQ Guru
 
Registered: May 2009
Location: Gibraltar, Gibraltar
Distribution: Fedora 20 with Awesome WM
Posts: 6,805
Blog Entries: 1

Rep: Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297
Hi,

Never used zsh myself but looks like you got an answer to your question about the prompt showing a %. So now you can go learn the zsh .

Kind regards,

Eric
 
1 members found this post helpful.
Old 09-06-2011, 03:40 PM   #9
sandwormusmc
Member
 
Registered: Nov 2006
Distribution: Fedora 15 x86_64
Posts: 76

Rep: Reputation: 24
Quote:
Originally Posted by anishkumarv View Post
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
 
  


Reply



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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] symbol lookup error: /usr/sbin/httpd: undefined symbol: apr_file_link bagi Slackware 3 05-17-2011 07:49 AM
How to know if a symbol refers to a static linked library with "nm" jose_luis_fdez_diaz Linux - Newbie 1 04-23-2011 08:42 PM
How executable refers SO-file? Dims Linux - Newbie 8 08-17-2010 05:59 AM
symbol lookup error: /usr/lib/libgtk-x11.2.0.so.0: undefined symbol:... IamI Slackware 17 02-29-2008 11:10 AM
New to Linux and need to know what MD5SUM refers to. digitalmastermind Red Hat 6 08-09-2005 11:31 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 08:09 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration