[ubuntu-uk] Just noticed something..not sure if its an error.....

2010-02-18 Thread John Matthews
ok, I hope I can explain this. In my Terminal it has 
jake...@jakewc2-desktop:~$. but in Places, desktop is spelt with an 
Uppercase D. Does that make any difference. Can somebody explain what 
jake...@jakewc2-desktop:~$ is/means? Maybe that is why I have so many 
problems using the Terminal to do upload stuff to my server.

John

-- 
ubuntu-uk@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-uk
https://wiki.ubuntu.com/UKTeam/


Re: [ubuntu-uk] Just noticed something..not sure if its an error.....

2010-02-18 Thread Simon Greenwood
On 18 February 2010 16:37, John Matthews jake...@sky.com wrote:

 ok, I hope I can explain this. In my Terminal it has
 jake...@jakewc2-desktop:~$. but in Places, desktop is spelt with an
 Uppercase D. Does that make any difference. Can somebody explain what
 jake...@jakewc2-desktop:~$ is/means? Maybe that is why I have so many
 problems using the Terminal to do upload stuff to my server.


jakewc-desktop is the hostname of your machine. You are logged in as jakewc2
and you are in the root of your user account.

Simon


-- 
Looking for work
My CV: http://sites.google.com/site/simongreenwoodscv/
Linkedin: http://www.linkedin.com/in/simonfgreenwood
Support for unemployed IT professionals:
http://groups.google.com/group/downtimeuk
-- 
ubuntu-uk@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-uk
https://wiki.ubuntu.com/UKTeam/


Re: [ubuntu-uk] Just noticed something..not sure if its an error.....

2010-02-18 Thread Alan Pope
On 18 February 2010 16:37, John Matthews jake...@sky.com wrote:
 ok, I hope I can explain this. In my Terminal it has
 jake...@jakewc2-desktop:~$.

  this is your username
 @ ^ is your hostname.

You hostname is jakewc2-desktop.
/home/jakewc2/Desktop is a folder in your home directory.

 Uppercase D. Does that make any difference.

No.

Cheers,
Al.

-- 
ubuntu-uk@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-uk
https://wiki.ubuntu.com/UKTeam/


Re: [ubuntu-uk] Just noticed something..not sure if its an error.....

2010-02-18 Thread Matthew Daubney
On Thu, 2010-02-18 at 16:37 +, John Matthews wrote:
 ok, I hope I can explain this. In my Terminal it has 
 jake...@jakewc2-desktop:~$. but in Places, desktop is spelt with an 
 Uppercase D. Does that make any difference. Can somebody explain what 
 jake...@jakewc2-desktop:~$ is/means? Maybe that is why I have so many 
 problems using the Terminal to do upload stuff to my server.
 
 John

Hi John,

the jake...@jakewc2-desktop bit of that prompt shows you the user you're
logged in as, followed by the hostname of your computer. The ~ really
means /home/jakewc2 . If you where to type cd Desktop you'd end up with
jake...@jakewc2-desktop:~/Desktop$ The $ shows that you have root
priviledges, and the : is just a seperator :)

So the Desktop in the places folder is the Desktop folder
in /home/jakewc2 and the jakewc2-desktop is just the name of your
machine.

Hope that helps.

-Matt Daubney


-- 
ubuntu-uk@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-uk
https://wiki.ubuntu.com/UKTeam/


Re: [ubuntu-uk] Just noticed something..not sure if its an error.....

2010-02-18 Thread SonniesEdge
Isn't jakewc2-desktop your machine's hostname?

What happens if you cd ~/Desktop ?

Charlie.


On Thu, Feb 18, 2010 at 16:37, John Matthews jake...@sky.com wrote:

 ok, I hope I can explain this. In my Terminal it has
 jake...@jakewc2-desktop:~$. but in Places, desktop is spelt with an
 Uppercase D. Does that make any difference. Can somebody explain what
 jake...@jakewc2-desktop:~$ is/means? Maybe that is why I have so many
 problems using the Terminal to do upload stuff to my server.

 John

 --
 ubuntu-uk@lists.ubuntu.com
 https://lists.ubuntu.com/mailman/listinfo/ubuntu-uk
 https://wiki.ubuntu.com/UKTeam/

-- 
ubuntu-uk@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-uk
https://wiki.ubuntu.com/UKTeam/


Re: [ubuntu-uk] Just noticed something..not sure if its an error.....

2010-02-18 Thread Tony Arnold
Matt,

Matthew Daubney wrote:

 the jake...@jakewc2-desktop bit of that prompt shows you the user you're
 logged in as, followed by the hostname of your computer. The ~ really
 means /home/jakewc2 . If you where to type cd Desktop you'd end up with
 jake...@jakewc2-desktop:~/Desktop$ The $ shows that you have root
 priviledges, and the : is just a seperator :)

I'm not sure the $ shows you have root privileges. Or do you mean the
user is in the admin group and can do sudo?

The prompt string is determined by the environment variable PS1. If you
do 'echo $PS1' you will see how it is defined. It includes backslashed
characters and variable names that get substituted by bash.

You can change the definition of PS1 in the .bashrc or .bash_profile
file, or their equivalents in whichever shell is being used.

Regards,
Tony.
-- 
Tony Arnold,Tel: +44 (0) 161 275 6093
Head of IT Security,Fax: +44 (0) 870 136 1004
University of Manchester,   Mob: +44 (0) 773 330 0039
Manchester M13 9PL. Email: tony.arn...@manchester.ac.uk

-- 
ubuntu-uk@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-uk
https://wiki.ubuntu.com/UKTeam/


Re: [ubuntu-uk] Just noticed something..not sure if its an error.....

2010-02-18 Thread jim.cameron
Matthew Daubney
 The $ shows that you

/don't/

 have root priviledges, and the : is just a seperator :)

Sorry to be pedantic, but the missing word is quite important :)

jim
--
Jim Cameron
Software Engineer

Buhler Sortex Limited
Research and Development Department
20 Atlantis Avenue
London E16 2BF
Registered in England No. 434274
T +44(0)20 7055 7607
F +44(0)20 7055 7701

Mail to: jim.came...@buhlersortex.com
www.buhlersortex.com

This e-mail (including any attachments) is confidential,
may be legally privileged and is designated exclusively
for the intended recipient. Access by any other person is
not authorised. Any disclosure of this e-mail or of names
of persons mentioned therein as well as any storing,
copying, distribution and dissemination is strictly prohibited.

If you are not the intended recipient, please immediately
delete this e-mail and notify the sender by phone or by e-mail.

-- 
ubuntu-uk@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-uk
https://wiki.ubuntu.com/UKTeam/


Re: [ubuntu-uk] Just noticed something..not sure if its an error.....

2010-02-18 Thread Norman Silverstone
On Thu, 2010-02-18 at 16:40 +, Alan Pope wrote:
 On 18 February 2010 16:37, John Matthews jake...@sky.com wrote:
  ok, I hope I can explain this. In my Terminal it has
  jake...@jakewc2-desktop:~$.
 
   this is your username
  @ ^ is your hostname.
 
 You hostname is jakewc2-desktop.
 /home/jakewc2/Desktop is a folder in your home directory.
 
  Uppercase D. Does that make any difference.
 
 No.

Is that correct? If I want to log into /Desktop surely the uppercase D
is essential?

Norman




-- 
ubuntu-uk@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-uk
https://wiki.ubuntu.com/UKTeam/


Re: [ubuntu-uk] Just noticed something..not sure if its an error.....

2010-02-18 Thread Matthew Daubney

On Thu, 2010-02-18 at 18:08 +0100, jim.came...@buhlersortex.com wrote:
 Matthew Daubney
  The $ shows that you
 
 /don't/
 
  have root priviledges, and the : is just a seperator :)
 
 Sorry to be pedantic, but the missing word is quite important :)
 

Indeed, apologies for that!

-Matt Daubney (off to buy a My First Keyboard)



-- 
ubuntu-uk@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-uk
https://wiki.ubuntu.com/UKTeam/


Re: [ubuntu-uk] Just noticed something..not sure if its an error.....

2010-02-18 Thread Tony Arnold
Jim,

jim.came...@buhlersortex.com wrote:
 Matthew Daubney
 The $ shows that you
 
 /don't/
 
 have root priviledges, and the : is just a seperator :)
 
 Sorry to be pedantic, but the missing word is quite important :)

See my previous post. I don't think the $ indicates anything about root
privileges. The user can define their own prompt and put whatever he/she
likes in there!

Regards,
Tony.
-- 
Tony Arnold,Tel: +44 (0) 161 275 6093
Head of IT Security,Fax: +44 (0) 870 136 1004
University of Manchester,   Mob: +44 (0) 773 330 0039
Manchester M13 9PL. Email: tony.arn...@manchester.ac.uk

-- 
ubuntu-uk@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-uk
https://wiki.ubuntu.com/UKTeam/


Re: [ubuntu-uk] Just noticed something..not sure if its an error.....

2010-02-18 Thread Paul Roach
Just to emphasise - hostnames aren't case sensitive - file and
foldernames are :)

On Thu, Feb 18, 2010 at 5:17 PM, Matthew Daubney m...@daubers.co.uk wrote:

 Sorry to be pedantic, but the missing word is quite important :)


 Indeed, apologies for that!

-- 
ubuntu-uk@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-uk
https://wiki.ubuntu.com/UKTeam/


Re: [ubuntu-uk] Just noticed something..not sure if its an error.....

2010-02-18 Thread Paul Roach
..oh and a # denotes root - $ denotes anything else

so if you sudo -i you'll see the prompt replaced with # :)

On Thu, Feb 18, 2010 at 5:23 PM, Paul Roach roa...@roachy.net wrote:
 Just to emphasise - hostnames aren't case sensitive - file and
 foldernames are :)

 On Thu, Feb 18, 2010 at 5:17 PM, Matthew Daubney m...@daubers.co.uk wrote:

 Sorry to be pedantic, but the missing word is quite important :)


 Indeed, apologies for that!


-- 
ubuntu-uk@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-uk
https://wiki.ubuntu.com/UKTeam/


Re: [ubuntu-uk] Just noticed something..not sure if its an error.....

2010-02-18 Thread Sean Miller
Traditionally in Unix $ denoted user, # denoted root.

Dunno how it works in Linux because in Ubuntu I tend to use sudo
rather than logging in directly, though I'd guess if I were in as root
I'd get a # prompt rather than a $ one - others can clarify
whether this is actually the case.

Sean

-- 
ubuntu-uk@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-uk
https://wiki.ubuntu.com/UKTeam/


Re: [ubuntu-uk] Just noticed something..not sure if its an error.....

2010-02-18 Thread Sean Miller
Yes /Desktop is most definitely a different thing to /desktop

Sean

-- 
ubuntu-uk@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-uk
https://wiki.ubuntu.com/UKTeam/


Re: [ubuntu-uk] Just noticed something..not sure if its an error.....

2010-02-18 Thread Matt Wheeler
On Thu, 2010-02-18 at 17:25 +, Sean Miller wrote:
 Traditionally in Unix $ denoted user, # denoted root.
 
 Dunno how it works in Linux because in Ubuntu I tend to use sudo
 rather than logging in directly, though I'd guess if I were in as root
 I'd get a # prompt rather than a $ one - others can clarify
 whether this is actually the case.

It is the case, assuming you are using the standard bash $PS1. It might
be different if you've customised your prompt or are using a different
shell.

-- 
Matt Wheeler
m...@funkyhat.org


signature.asc
Description: This is a digitally signed message part
-- 
ubuntu-uk@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-uk
https://wiki.ubuntu.com/UKTeam/


Re: [ubuntu-uk] Just noticed something..not sure if its an error.....

2010-02-18 Thread jim.cameron
Tony Arnold,
 See my previous post. I don't think the $ indicates anything
 about root privileges. The user can define their own prompt
 and put whatever he/she likes in there!

You are of course perfectly right. By default, though, a # denotes root 
privileges and a $ non-root, and I'm sure that 99 out of 100 Linux-based 
systems follow the convention. Although as other posters have pointed out, most 
people just use sudo anyway.

jim
--
Jim Cameron
Software Engineer

Buhler Sortex Limited
Research and Development Department
20 Atlantis Avenue
London E16 2BF
Registered in England No. 434274
T +44(0)20 7055 7607
F +44(0)20 7055 7701

Mail to: jim.came...@buhlersortex.com
www.buhlersortex.com

This e-mail (including any attachments) is confidential,
may be legally privileged and is designated exclusively
for the intended recipient. Access by any other person is
not authorised. Any disclosure of this e-mail or of names
of persons mentioned therein as well as any storing,
copying, distribution and dissemination is strictly prohibited.

If you are not the intended recipient, please immediately
delete this e-mail and notify the sender by phone or by e-mail.

-- 
ubuntu-uk@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-uk
https://wiki.ubuntu.com/UKTeam/


Re: [ubuntu-uk] Just noticed something..not sure if its an error.....

2010-02-18 Thread Rob Beard
Sean Miller wrote:
 Yes /Desktop is most definitely a different thing to /desktop

 Sean
   
Not to mention if you're looking for the folder that relates to your own 
desktop, it'll be in ~/Desktop or most probably /home/jakewc2/Desktop

Rob


-- 
ubuntu-uk@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-uk
https://wiki.ubuntu.com/UKTeam/


Re: [ubuntu-uk] Just noticed something..not sure if its an error.....

2010-02-18 Thread John Matthews
Rob Beard wrote:
 Sean Miller wrote:
   
 Yes /Desktop is most definitely a different thing to /desktop

 Sean
   
 
 Not to mention if you're looking for the folder that relates to your own 
 desktop, it'll be in ~/Desktop or most probably /home/jakewc2/Desktop

 Rob


   
Oh wow, thanks everybody for the replies, that has helped. I just 
wondered then, what is the difference between the /desktop and 
~/Desktop. Sorry for being so thick. Why is it used in the Terminal?

John

-- 
ubuntu-uk@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-uk
https://wiki.ubuntu.com/UKTeam/


Re: [ubuntu-uk] Just noticed something..not sure if its an error.....

2010-02-18 Thread Sean Miller
Sounds to me like jakewc2-desktop is simply the name of your PC,
whereas the /Desktop is the path you're in...

If you imagine your machine was called Fred I'd guess that it'd be
in place of jakewc2-desktop and the Desktop path would be there the
same, less confusion!

Sean

-- 
ubuntu-uk@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-uk
https://wiki.ubuntu.com/UKTeam/


Re: [ubuntu-uk] Just noticed something..not sure if its an error.....

2010-02-18 Thread Bruno Girin
On Thu, 2010-02-18 at 17:51 +, John Matthews wrote:

 Oh wow, thanks everybody for the replies, that has helped. I just 
 wondered then, what is the difference between the /desktop and 
 ~/Desktop. Sorry for being so thick. Why is it used in the Terminal?

John,

Part of the confusion arises because the name of your computer has the
word desktop in it. To give you a counter example, the machine I am
currently writing this email on is called nuuk (after the capital city
of Greenland),so when I open a terminal, I see this:

br...@nuuk:~$

As several people have said before, the first part, before the '@'
character is my user name, bruno; the second part, between the '@'
character and the ':' character is the name of my computer, nuuk; the
last part, between the ':' character and the '$' character is the name
of the directory in which I am. This directory is abbreviated to a
single '~' when you are in your home directory: this is an old UNIX
convention that is still in use today. The real name of that directory
is /home/bruno in my case, /home/jakewc2 in your case. You can check
this by typing the following in the terminal:

pwd

This will give you the fully qualified name of the directory you are in.
Now, if you type the following:

cd Desktop

This tells the shell to change your current directory to a directory
called Desktop and that is located in the directory you are currently
in. When I do this, my prompt changes to:

br...@nuuk:~/Desktop$

This tells me that my user name is still bruno, my computer is still
nuuk but the directory in which I am is now ~/Desktop.

Finally, to answer your question above (at last!), /desktop is a
completely different directory from ~/Desktop for two reasons:
  * First, it doesn't have the '~' character at the beginning, which
means that it should be a directory directly under the root of
the file system: all directories are arranged in a tree
structure that starts with a directory called / (or root) so
when you see a directory called /home/jakewc2/Desktop, it means
it is a directory called Desktop inside a directory called
jakewc2 inside a directory called home under the root of the
file system. On the other hand, if you see a directory
called /desktop, it means it is a directory called desktop
directly under the root of the file system.
  * Second, Linux is case sensitive when it comes to file and
directory names so the directory desktop is different from the
directory Desktop.

I hope this explanation has not confused you further :-)

Cheers,

Bruno



-- 
ubuntu-uk@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-uk
https://wiki.ubuntu.com/UKTeam/