LinuxQuestions.org
Review your favorite Linux distribution.
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-10-2005, 10:59 AM   #1
rickh
Senior Member
 
Registered: May 2004
Location: Albuquerque, NM USA
Distribution: Debian-Lenny/Sid 32/64 Desktop: Generic AMD64-EVGA 680i Laptop: Generic Intel SIS-AC97
Posts: 4,250

Rep: Reputation: 62
What's the difference between 'su' and 'su -'


I'm not exactly a newbie, but I thought this was a newbie question.

The only difference I can see is that 'su -' places me in the root directory as opposed to leaving me in the directory from which I executed the command.

If there are related considerations, I'd appreciate enlightenment.
 
Old 09-10-2005, 11:09 AM   #2
rickh
Senior Member
 
Registered: May 2004
Location: Albuquerque, NM USA
Distribution: Debian-Lenny/Sid 32/64 Desktop: Generic AMD64-EVGA 680i Laptop: Generic Intel SIS-AC97
Posts: 4,250

Original Poster
Rep: Reputation: 62
Hmmm! Should have followed my own advice

http://www.unix.org.ua/orelly/networ...is/ch04_03.htm

Best thing about my tagline is that it keeps me honest.
 
Old 09-10-2005, 12:48 PM   #3
masand
LQ Guru
 
Registered: May 2003
Location: INDIA
Distribution: Ubuntu, Solaris,CentOS
Posts: 5,522

Rep: Reputation: 69
su -
login to /root directpory

su - username
login to a particular user env

su
only super user env
 
  


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
Can't login as root with 'su' twysm Fedora 4 12-04-2005 04:34 PM
Problem with 'su' gri6507 Linux - Software 5 06-17-2005 09:11 AM
'su' will not work under KDE digx Linux - General 5 02-13-2005 06:01 PM
Can no longer 'su' tisource Linux - General 7 05-04-2003 03:20 PM
did a iptables -L as 'su' and got this ..... purpleburple Linux - Security 1 07-27-2002 01:59 AM

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

All times are GMT -5. The time now is 08:36 AM.

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