Get the home of the current user

This commit is contained in:
zimbatm 2019-12-17 21:44:04 +01:00
parent f0788ed4b0
commit cc4330d1a2
No known key found for this signature in database
GPG Key ID: 71BAF6D40C1D63D7
1 changed files with 10 additions and 0 deletions

View File

@ -105,6 +105,16 @@ $ printf '%s\n' "${_@P}"
black
```
## Get the home of the current user
NOTE: use the previous section to set $USER if it's missing. It's usually set
by the login shell.
```shell
$ eval echo ~$USER
/home/myuser
```
## Generate a UUID V4
**CAVEAT**: The generated value is not cryptographically secure.