Differences
This shows you the differences between two versions of the page.
linux_wiki:log_in_and_switch_users_in_multiuser_targets [2016/02/29 22:41] billdozor |
linux_wiki:log_in_and_switch_users_in_multiuser_targets [2019/05/25 23:50] |
||
---|---|---|---|
Line 1: | Line 1: | ||
- | ====== Log In And Switch Users In Multiuser Targets ====== | ||
- | |||
- | **General Information** | ||
- | |||
- | Targets are the new " | ||
- | |||
- | ---- | ||
- | |||
- | View default target (target at boot) | ||
- | <code bash> | ||
- | ~$ systemctl get-default | ||
- | multi-user.target | ||
- | </ | ||
- | |||
- | \\ | ||
- | Switch User to root | ||
- | <code bash> | ||
- | su - | ||
- | </ | ||
- | * -, -l, --login => Load login profile (~/ | ||
- | * When no username is specified after options (such as -), root is assumed | ||
- | |||
- | \\ | ||
- | Types of profiles | ||
- | * ~/ | ||
- | * ~/.bashrc => Execute on every shell | ||
- | * / | ||
- | * /etc/bashrc => Executed on every user interactive shell (system wide functions and aliases) | ||
- | |||
- | ---- | ||