Category Archives: CLI

Command line tips, tricks, and shortcuts

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

Ruby, Rails, and Gems: Getting Started

I recently started learning Ruby (mostly to flesh out my programming knowledge) and since one of the main self-detected shortcomings in my programming knowledge and skillset is web frameworks and web programming, I decided to give Ruby on Rails a … Continue reading

Posted in CLI, Ruby | Tagged , , , | 3 Comments

More efficient HTML editing in vim

When I’m writing HTML and CSS, being forced to type out repetitive and fixed syntax, as well as remembering the particularities of the syntax and its formatting, makes me rather unhappy. Not to mention less productive. Let’s fix that. HTML … Continue reading

Posted in CLI, Programming | Tagged , , , , , | 1 Comment

Useful ways to list directory contents

The ls command becomes second nature once you work in a Linux command line environment for any appreciable period of time. Commonly, it seems, people simply stick with the plain vanilla command, without exploring its rich options, as well as … Continue reading

Posted in CLI | Tagged , , | 3 Comments

Easily sum matching file line counts

This command will return the number of total lines contained in files ending in .py in the directory it is run in, as well as subdirectories: 12find . -type f -iname *py | xargs -I str wc -l str | … Continue reading

Posted in CLI | Tagged , | Leave a comment