tldr/pages/common/su.md

16 lines
250 B
Markdown
Raw Normal View History

2016-01-04 02:17:33 +00:00
# su
> Switch shell to another user.
2016-01-04 02:17:33 +00:00
- Switch to user {{username}} (password required):
`su {{username}}`
- Switch to superuser (admin password required):
`su`
- Switch to user {{username}} and simulate a full login shell:
`su - {{username}}`