Tag Archives: CLI

Viewing all users on a Linux system

There are a number of widely-used and stable utilities on Linux systems that allow you to view information related to users. You can see who’s logged in with who, get info on a particular user with finger, see who you … Continue reading

Posted in CLI | Tagged , , , | 7 Comments

Get useful image information on the command line

ImageMagick is an incredible set of programs that allow you to get all sorts of information on image files from the command line, as well as batch edit and generally alter images of many varieties. You can read all about … Continue reading

Posted in CLI | Tagged , , | Leave a comment

Useful Bash functions to determine OS and more

In a number of my Bash aliases I need to check two constants: what sort of OS I’m on and whether it’s a production box or not. I use the former for aliases that allow me to install and search … Continue reading

Posted in CLI, Programming | Tagged , | 1 Comment

Checking options with optparse callbacks

optparse is a flexible and powerful module for processing command line options in Python programs. I’ve used it for a while, but I didn’t have much occasion to get into callbacks until recently. A callback here is a user-defined function … Continue reading

Posted in Python | Tagged , , | 2 Comments

Useful grep incantations

grep is one of the core utilities on nearly every *nix-based system. If you’ve been using Linux for more than the most casual activities, you’ve probably used it. While its basic use is quite simple, there are a few additional … Continue reading

Posted in CLI | Tagged , | 3 Comments