mirror of
https://github.com/ivuorinen/cheatsheet-tldr.git
synced 2026-02-25 22:52:41 +00:00
Update cheatsheets
This commit is contained in:
29
tldr/linux/sulogin
Normal file
29
tldr/linux/sulogin
Normal file
@@ -0,0 +1,29 @@
|
||||
---
|
||||
syntax: markdown
|
||||
tags: [tldr, linux]
|
||||
source: https://github.com/tldr-pages/tldr.git
|
||||
---
|
||||
# sulogin
|
||||
|
||||
> Log in as root during single-user mode.
|
||||
> More information: <https://manned.org/man/sulogin>.
|
||||
|
||||
- Start `sulogin` on the default console:
|
||||
|
||||
`sudo sulogin`
|
||||
|
||||
- Start `sulogin` on a specific TTY device:
|
||||
|
||||
`sudo sulogin {{/dev/ttyX}}`
|
||||
|
||||
- Set a maximum timeout(in seconds) for entering the root password before continuing normal boot:
|
||||
|
||||
`sudo sulogin {{[-t|--timeout]}} {{timeout}}`
|
||||
|
||||
- Start root's shell as a login shell:
|
||||
|
||||
`sudo sulogin {{[-p|--login-shell]}}`
|
||||
|
||||
- Force a root shell without asking for a password when default methods of obtaining the password fail:
|
||||
|
||||
`sudo sulogin {{[-e|--force]}}`
|
||||
Reference in New Issue
Block a user