LinuxQuestions.org
Review your favorite Linux distribution.
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, 03:27 PM   #1
anishkumarv
Member
 
Registered: Feb 2010
Location: chennai - India
Distribution: centos
Posts: 289

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, 03: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: 1295Reputation: 1295Reputation: 1295Reputation: 1295Reputation: 1295Reputation: 1295Reputation: 1295Reputation: 1295Reputation: 1295
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, 03: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, 04:07 PM   #4
Tinkster
Moderator
 
Registered: Apr 2002
Location: in a fallen world
Distribution: slackware by choice, others too :} ... android.
Posts: 23,067
Blog Entries: 11

Rep: Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910
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, 08:41 PM   #5
grail
LQ Guru
 
Registered: Sep 2009
Location: Perth
Distribution: Manjaro
Posts: 9,562

Rep: Reputation: 2900Reputation: 2900Reputation: 2900Reputation: 2900Reputation: 2900Reputation: 2900Reputation: 2900Reputation: 2900Reputation: 2900Reputation: 2900Reputation: 2900
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, 11:10 AM   #6
anishkumarv
Member
 
Registered: Feb 2010
Location: chennai - India
Distribution: centos
Posts: 289

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 11:13 AM.
 
Old 09-06-2011, 12:05 PM   #7
David the H.
Bash Guru
 
Registered: Jun 2004
Location: Osaka, Japan
Distribution: Debian + kde 4 / 5
Posts: 6,837

Rep: Reputation: 1981Reputation: 1981Reputation: 1981Reputation: 1981Reputation: 1981Reputation: 1981Reputation: 1981Reputation: 1981Reputation: 1981Reputation: 1981Reputation: 1981
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, 12:20 PM   #8
EricTRA
LQ Guru
 
Registered: May 2009
Location: Gibraltar, Gibraltar
Distribution: Fedora 20 with Awesome WM
Posts: 6,805
Blog Entries: 1

Rep: Reputation: 1295Reputation: 1295Reputation: 1295Reputation: 1295Reputation: 1295Reputation: 1295Reputation: 1295Reputation: 1295Reputation: 1295
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, 04: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 04:42 PM. Reason: Removed the troll code :P
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 08: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 09:42 PM
How executable refers SO-file? Dims Linux - Newbie 8 08-17-2010 06:59 AM
symbol lookup error: /usr/lib/libgtk-x11.2.0.so.0: undefined symbol:... IamI Slackware 17 02-29-2008 12:10 PM
New to Linux and need to know what MD5SUM refers to. digitalmastermind Red Hat 6 08-10-2005 12:31 AM

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

All times are GMT -5. The time now is 08:17 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration