Skip to content
This repository has been archived by the owner on Apr 26, 2024. It is now read-only.

Get the home of the current user #93

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 10 additions & 0 deletions manuscript/chapter19.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down