Skip to content

Commit

Permalink
feat(gnu_linux_basics): Generate a random string
Browse files Browse the repository at this point in the history
Generate a random string to use for secrets or passwords:

```bash
head /dev/urandom | tr -dc A-Za-z0-9 | head -c10
```
  • Loading branch information
m0wer committed Oct 9, 2023
1 parent e92b6d5 commit b6f9568
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions docs/gnu_linux_basics.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,3 +28,11 @@ Useful for recording part of the screen with (`ffmpeg`)[ffmpeg].
```bash
watch -n 0.1 xdotool getmouselocation
```

### Generate a random string

Generate a random string to use for secrets or passwords:

```bash
head /dev/urandom | tr -dc A-Za-z0-9 | head -c10
```

0 comments on commit b6f9568

Please sign in to comment.