LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
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 12-01-2014, 11:51 PM   #1
reggyboy
LQ Newbie
 
Registered: Dec 2014
Posts: 4

Rep: Reputation: Disabled
Terminal string


Totally new to Linux but I'm liking Elementary Luna but have a question about the terminal.
When I press ctl,alt,t the terminal ends with ~$ but if i go through apps for the terminal it ends with
:~/Desktop/DEBIAN$
What is the difference and does it matter which one I use?
Thanks.
 
Old 12-01-2014, 11:57 PM   #2
evo2
LQ Guru
 
Registered: Jan 2009
Location: Japan
Distribution: Mostly Debian and Scientific Linux
Posts: 5,753

Rep: Reputation: 1288Reputation: 1288Reputation: 1288Reputation: 1288Reputation: 1288Reputation: 1288Reputation: 1288Reputation: 1288Reputation: 1288
Hi,

what terminal(s) are you using? There may be some "help" or "about" option in a menu.
Did you check http://elementaryos.org/answers/+/terminal/all/newest for information?

Evo2.
 
Old 12-02-2014, 12:04 AM   #3
astrogeek
Moderator
 
Registered: Oct 2008
Distribution: Slackware [64]-X.{0|1|2|37|-current} ::12<=X<=14, FreeBSD_10{.0|.1|.2}
Posts: 4,482
Blog Entries: 6

Rep: Reputation: 2413Reputation: 2413Reputation: 2413Reputation: 2413Reputation: 2413Reputation: 2413Reputation: 2413Reputation: 2413Reputation: 2413Reputation: 2413Reputation: 2413
Not a Luna user, but if I understand your question I think that you are referring to the prompt string.

The terminal state when opened might indeed depend on how it was opened, in this case the directory where it was opened.

~$ indicates that it was opened to your HOME directory.

~/Desktop/DEBIAN$ indicates that it was opened to the Desktop/DEBIAN/ directory below your HOME directory (~/ plus Desktop/DEBIAN).

So the "apps" method must include a default path whereas the ctl-alt-t method defaults to your HOME directory.

It makes no other difference. If you open to Desktop/DEBIAN but want to be in your HOME, simply type cd <ENTER> and you will be magically transported there!

If you are not familiar with navigation and other terminal topics, a good place to start is Bash Beginners Guide or Advanced Bash Scripting Guide.

You can also find how to change the contents of that prompt string while there!

If using some other shell see the respective man page.

Hope this helps.

Last edited by astrogeek; 12-02-2014 at 12:05 AM.
 
Old 12-02-2014, 12:07 AM   #4
reggyboy
LQ Newbie
 
Registered: Dec 2014
Posts: 4

Original Poster
Rep: Reputation: Disabled
Thanks for the quick reply, that has helped me.I'll go and have a look at the links you have included.
 
  


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
.bashrc alias echo login string to terminal. How to turn off? Jlove130 Linux - General 13 01-14-2014 09:24 AM
What happened when passing a static string to a std::string& parameter? fantasy1215 Programming 7 11-30-2012 07:34 AM
[SOLVED] copy string a to string b and change string b with toupper() and count the chars beep3r Programming 3 10-22-2010 07:22 PM
Desktop shortcut to Terminal, insert and execute a string. nads1978 Ubuntu 9 09-02-2008 10:44 AM
Changing the terminal string. Mr60s Linux - Newbie 4 04-20-2004 04:32 AM

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

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