Terminal
-
grep SSH Login Attempts
I recently needed to review all SSH login attempts on a server running Ubuntu Server and used this one-liner to accomplish it. Piping
grepintolessjust lets you stay on the keyboard instead of scrolling with the mouse. -
tail over SSH
taildisplays a log and updates it in realtime. This command tail’s the log over SSH so that you can keep a log displayed in one window while doing more terminal work in another tab/window. -
youtube-dl
youtube-dl (available for UNIX/Windows) is probably my most-often used Python script. Copy/paste a YouTube URL (or any other supported website URL) and youtube-dl downloads the video locally. Incredibly handy especially when you hate buffering and would rather download something to watch it later (including whole playlists!).
-
scp
This command copies a file from your machine over SSH to a remote machine. Quotation marks are included to escape the folder name that has a space in it. Add -rp if you need to copy a directory:
-
Dotfiles
My code-related goal for this weekend was to get my dotfiles symlink’d and uploaded to GitHub for version control. This article was excellent at helping me get it setup.