Today I discovered this on Wikipedia: All public logs. It’s interesting to see that for something as huge as Wikipedia they still only process a command (vs query) every few seconds.
Tag Archives: command
whatis command
Today I discovered the `whatis` command. Over here. That is all.
Modern Unix
This via r/programming today: Modern Unix. A list of powerful replacements for ancient Unix commands.
explainshell.com
I found this great web site: explainshell.com. It explains shell commands, check it out.
OpenSSL command to view certificate info
From The Most Common OpenSSL Commands to view a certificate:
openssl x509 -text -noout -in certificate.crt
Useful OpenSSL Commands
Found a list of Useful OpenSSL Commands today. Mostly I wanted to get the subject out of a cacert.pem file which I wasn’t sure of:
openssl x509 -text -noout -in hostcert.pem
Creating a MySQL database from the command-line, and snipplr
Today I was looking up the syntax to create a MySQL database from the command-line and found instructions on Snipplr. I haven’t seen snipplr before. I guess I’ll have to spend some time one day browsing the popular snippets.
The Most Common OpenSSL Commands and viewing a CRL
Found a helpful article today, The Most Common OpenSSL Commands.
The particular command I needed wasn’t listed there though. What I needed to do was examine the contents of my Certificate Revocation List (CRL) certificate. I had a problem connecting to my website because it was complaining about an expired certificate and the culprit was indeed the CRL as I discovered when I ran:
$ openssl crl -inform CER -in ca.crl -text -noout
Starting a PuTTY session from the command-line
I think I’ve probably done this before (the links in my browser were marked as visited), but today I wanted to create a desktop/toolbar shortcut icon (with shortcut key) to a saved PuTTY session called “peace tunnel”. The “peace tunnel” opens an SSH session to a development server called “peace” and automatically configures a tunnel from port 80 on the localhost to port 80 on the server, so I can check on the progress of a web application under development.
Anyway, I found the documentation for Starting a session from the command line and basically to load my saved session called “peace tunnel” I had to run the command:
putty.exe -load "peace tunnel"
Too easy.
Security considerations for find
Read about the security considerations for find. Find is a *nix tool for searching though directories for files and filtering them to build lists or run commands.
While I’m here I might as well show you my latest find command, I think it’s a beauty. :)
sudo find . \ \( \( \( \! -user jj5 \) -or \( \! -group jj5 \) \) \ -execdir chown jj5:jj5 '{}' \+ \) , \ \( \( -type d \( \! -perm -u+rwx \) \) \ -execdir chmod u+rwx '{}' \+ \) , \ \( \( -type f \( \! -perm -u+rw \) \) \ -execdir chmod u+rw '{}' \+ \)