Linux
-
Understanding /proc
Link ⇒ https://fredrb.github.io/2016/10/01/Understanding-proc/
Interesting read on what’s actually happening when a Linux process runs. Via @fredrb.
-
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!).
-
nmap
This command scans to see if port 22 is open within a network range and saves the output to nmapscan.txt.
-
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:
-
Uninstall KACE Agent on Ubuntu
I had an issue come up at work and needed to remove the Dell KACE agent from one of our Ubuntu machines. I did some searching but couldn’t find the script via Google or ITNinja. I figured out the path, tested, and here it is:
-
Linux Server Fundamentals - Part 1
I’ve been in the IT field for a long time now and last year moved into a new role. Moving into this role has given me more access to a varied server environment with a mix of Windows and Linux servers. My past jobs were much more Windows Server focused. I’ve been enjoying learning the Linux side of server administration and the goal of this series of posts will be documenting what I’m learning.