1
0
mirror of https://github.com/jbranchaud/til synced 2026-01-03 07:08:01 +00:00

Add Check The Installed OpenSSL Version as a Unix TIL

This commit is contained in:
jbranchaud
2023-09-08 11:34:00 -05:00
parent c1d2f64558
commit 129cd11940
2 changed files with 25 additions and 1 deletions

View File

@@ -10,7 +10,7 @@ pairing with smart people at Hashrocket.
For a steady stream of TILs, [sign up for my newsletter](https://crafty-builder-6996.ck.page/e169c61186).
_1336 TILs and counting..._
_1337 TILs and counting..._
---
@@ -1249,6 +1249,7 @@ _1336 TILs and counting..._
- [Check If Command Is Executable Before Using](unix/check-if-command-is-executable-before-using.md)
- [Check SSH Key Fingerprints Of Known Hosts](unix/check-ssh-key-fingerprints-of-known-hosts.md)
- [Check The Current Working Directory](unix/check-the-current-working-directory.md)
- [Check The Installed OpenSSL Version](unix/check-the-installed-openssl-version.md)
- [Clear The Screen](unix/clear-the-screen.md)
- [Command Line Length Limitations](unix/command-line-length-limitations.md)
- [Compare Two Variables In A Bash Script](unix/compare-two-variables-in-a-bash-script.md)

View File

@@ -0,0 +1,23 @@
# Check The Installed OpenSSL Version
Typically with command line tools, I can use a `--version` or `-v` flag with
the command to get it to output the current version. This is not the case with
`openssl`.
When I do this:
```bash
$ openssl --version
```
I get an Invalid Command message and then a bunch of subcommands are displayed.
One of those subcommands listed under _Standard Commands_ is the `version`
command. This is what I can use to list the version.
```bash
$ openssl version -v
LibreSSL 2.8.3
```
See `man openssl` for more details.