From: Kevin Rodgers <kevin.d.rodgers@gmail.com>
To: help-gnu-emacs@gnu.org
Subject: Re: What does the minus sign - do?... in the command sudo su -
Date: Wed, 25 Sep 2013 07:09:20 -0600 [thread overview]
Message-ID: <l1un9o$lqb$1@ger.gmane.org> (raw)
In-Reply-To: <68D42ACF-5DB1-40CA-8BC4-02E152CCADFF@Web.DE>
On 9/25/13 3:27 AM, Peter Dyballa wrote:
>
> Am 25.09.2013 um 11:19 schrieb Don Saklad:
>
>> What does the minus sign - do?... in the command
>>
>> sudo su -
>
> (Almost) Nothing. It just opens a shell…
Actually, it tells su to start a login shell (as opposed to a shell that
inherits the current environment:
-l Simulate a full login. The environment is discarded except for
HOME, SHELL, PATH, TERM, and USER. HOME and SHELL are modified
as above. USER is set to the target login. PATH is set to
``/bin:/usr/bin''. TERM is imported from your current environ-
ment. The invoked shell is the target login's, and su will
change directory to the target login's home directory. This
option is identical to just passing "-", as in "su -".
`M-x man' is your friend.
--
Kevin Rodgers
Denver, Colorado, USA
next prev parent reply other threads:[~2013-09-25 13:09 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-09-25 9:19 What does the minus sign - do?... in the command sudo su - Don Saklad
2013-09-25 9:27 ` Peter Dyballa
2013-09-25 13:09 ` Kevin Rodgers [this message]
[not found] <mailman.2834.1380100781.10748.help-gnu-emacs@gnu.org>
2013-09-25 12:35 ` Pascal J. Bourguignon
2013-09-25 12:36 ` Pascal J. Bourguignon
2013-09-25 12:52 ` Floyd L. Davidson
2013-09-30 20:04 ` Kai Grossjohann
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to='l1un9o$lqb$1@ger.gmane.org' \
--to=kevin.d.rodgers@gmail.com \
--cc=help-gnu-emacs@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.