Welcome to the most active Linux Forum on the web.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
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!


  Search this Thread
Old 11-16-2005, 07:50 AM   #1
Registered: Apr 2005
Location: Ohio
Distribution: Slackware && freeBSD
Posts: 676

Rep: Reputation: 30
su - and stay in current dir


I have a small question involving the switch user command. If I was in /here and did su -. How could I stay /here with out going to roots ~ ? Thank you.
Old 11-16-2005, 08:06 AM   #2
Senior Member
Registered: Oct 2004
Location: Athens, Greece
Distribution: Slackware, arch
Posts: 1,783

Rep: Reputation: 52
without the -. This way it won't load root's enviroment and it won't redirect you to root's home directory

Last edited by perfect_circle; 11-16-2005 at 08:07 AM.
Old 11-16-2005, 08:08 AM   #3
Registered: Apr 2005
Location: Ohio
Distribution: Slackware && freeBSD
Posts: 676

Original Poster
Rep: Reputation: 30
Thank you.


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
HOWTO stay -current uselpa Slackware 7 09-13-2005 04:51 AM
how could i make a user stay in his or home dir Paxmaster Linux - General 1 03-23-2005 09:10 PM
What is the simplest way to stay current? yonatan1 Slackware 4 03-18-2005 03:57 PM
Prompt w/ current dir and user Jair Slackware 2 03-15-2004 06:16 PM
how do i stay current? yocompia Slackware 5 07-19-2003 11:42 PM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 11:34 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration