LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 01-13-2010, 09:36 PM   #1
SentralOrigin
Member
 
Registered: Jul 2005
Distribution: Gentoo, Ubuntu
Posts: 318

Rep: Reputation: 30
Which shell is this?


I forget which one it was, but the prompt looked like this:

Code:
[blah]$ somecommand
Which shell has this sort of layout?

Last edited by SentralOrigin; 01-13-2010 at 09:38 PM.
 
Old 01-13-2010, 09:46 PM   #2
GrapefruiTgirl
LQ Guru
 
Registered: Dec 2006
Location: underground
Distribution: Slackware64
Posts: 7,594

Rep: Reputation: 556Reputation: 556Reputation: 556Reputation: 556Reputation: 556Reputation: 556
The prompt for many (or maybe all??) shells can be configured to look like that. the '$' is the default in Bash shell for a non-root user, while a '#' is the default for a root-user.

There's a very good chance you saw Bash shell, but it could have been another. The prompt is usually initially set in /etc/profile..

Sasha
 
Old 01-13-2010, 10:04 PM   #3
SentralOrigin
Member
 
Registered: Jul 2005
Distribution: Gentoo, Ubuntu
Posts: 318

Original Poster
Rep: Reputation: 30
When I was first trying out dozens of Linux distros, the default shell for one of them was in that exact format with the brackets and spacing and all of that, and it was like that by default.
 
Old 01-13-2010, 10:13 PM   #4
GrapefruiTgirl
LQ Guru
 
Registered: Dec 2006
Location: underground
Distribution: Slackware64
Posts: 7,594

Rep: Reputation: 556Reputation: 556Reputation: 556Reputation: 556Reputation: 556Reputation: 556
Ok.. As I said, it was probably Bash. That's the default shell on LOADS of Linuxes, and its default prompt is like you indicated. Normally, it's something like:

Bash-3.1~$ somecommand

Does this help? Maybe explaining what you're getting at, will help me or someone answer you more specifically. Like, are you trying to figure out what Linux it was, or are you looking to install that particular shell in a Linux?

Sasha
 
Old 01-13-2010, 10:16 PM   #5
DragonSlayer48DX
Registered User
 
Registered: Dec 2006
Posts: 1,454
Blog Entries: 1

Rep: Reputation: 75
We'd need to know which distro that was. As GrapefruiTgirl pointed out, any shell can be altered to look like that, and the distro writers/maintainers have that ability.

Cheers
 
Old 01-13-2010, 10:36 PM   #6
SentralOrigin
Member
 
Registered: Jul 2005
Distribution: Gentoo, Ubuntu
Posts: 318

Original Poster
Rep: Reputation: 30
Oh, it's because I thought this exact format was the default and unchanged (except the colors):

http://i46.tinypic.com/212fqcz.jpg

I didn't know the layout could be altered.
 
Old 01-13-2010, 10:42 PM   #7
GrapefruiTgirl
LQ Guru
 
Registered: Dec 2006
Location: underground
Distribution: Slackware64
Posts: 7,594

Rep: Reputation: 556Reputation: 556Reputation: 556Reputation: 556Reputation: 556Reputation: 556
OK, I understand.
While there is a built-in prompt specification for most or all shells, that one you showed doesn't look like an unchanged default to me. Probably the distro maintainer, or the user running the machine, changed it to look like that. It is quite configurable; you can include the date, username, machine name, time, and colors, to mention a few. You could if you wanted, make it look EXACTLY like that, including the word "blah" in the brackets

Sasha
 
Old 01-13-2010, 10:48 PM   #8
DragonSlayer48DX
Registered User
 
Registered: Dec 2006
Posts: 1,454
Blog Entries: 1

Rep: Reputation: 75
Hehehe... Welcome to the World of OSS. One can change anything they wish.

It's most likely Bash, though- That's been the most popular for quite some time.
 
Old 01-14-2010, 01:47 AM   #9
chrism01
LQ Guru
 
Registered: Aug 2004
Location: Sydney
Distribution: Rocky 9.2
Posts: 18,359

Rep: Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751
There's a pretty good tutorial with examples here http://www.cyberciti.biz/tips/howto-...up-prompt.html
 
  


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
How to run root privileged Linux command as normal user via shell shell tcegrid Linux - Newbie 1 06-23-2008 03:38 PM
copy directories and files recursively using C shell or bash shell bostonuser Programming 7 06-06-2008 01:24 AM
LXer: Terminal functions for shell scripting with Shell Curses LXer Syndicated Linux News 0 03-26-2008 11:50 PM
LXer: Shell tip: Set the shell prompt and themes in Linux Terminal LXer Syndicated Linux News 0 06-12-2007 03:02 AM
'sh' shell - Actually calls legacy Bourne shell, or uses system default? Dtsazza Linux - Software 1 10-28-2005 09:20 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 11:41 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