forked from tldr-pages/tldr
-
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
c571fa7
commit 660d097
Showing
1 changed file
with
36 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
# homectl | ||
|
||
> Create, remove, change or inspect home directories using the systemd-homed service. | ||
> More information: <https://man.archlinux.org/man/homectl.1>. | ||
- List user accounts and their associated home directories: | ||
|
||
`homectl list` | ||
|
||
- Create a user account and their associated home directory: | ||
|
||
`sudo homectl create {{username}}` | ||
|
||
- Remove a specific user and the associated home directory: | ||
|
||
`sudo homectl remove {{username}}` | ||
|
||
- Change the password for a specific user: | ||
|
||
`sudo homectl passwd {{username}}` | ||
|
||
- Run a shell or a command with access to a specific home directory: | ||
|
||
`sudo homectl with {{username}} -- {{command}} {{command_arguments}}` | ||
|
||
- Lock or unlock a specific home directory: | ||
|
||
`sudo homectl {{lock|unlock}} {{username}}` | ||
|
||
- Change the disk space assigned to a specific home directory to 100 GiB: | ||
|
||
`sudo homectl resize {{username}} {{100G}}` | ||
|
||
- Display help: | ||
|
||
`homectl --help` |