Today, we’re happy to deploy a new resource we think SSD Nodes users and Serverwise readers will appreciate.One-line wise is a list of our favorite terminal one-liners, from the invaluable to the downright quirky. We hope you bookmark it and make it a resource you come back to time and time again.
I know a handful of you are asking, “What’s a one-liner?”
Command-line interfaces (CLI), and the Linux terminal in general, is a highly flexible workspace. It all starts with your shell of choice—most often Bash or ZSH—has hundreds of different configurations and obscure syntaxes. On top of that, you can configure programs with a CLI in many different ways, and it’s possible to “pipe” one program to the next with the terminal. For example, you can list the files in a directory using ls
, pipe the output using |
, and search that output for a unique string using grep
.
$ ls -la | grep 'foo'
-rw-r--r-- 1 joelhans staff 0 Oct 10 10:27 foo
Despite all their usefulness, one-liners can be awkward to create or understand for those who aren’t terminal experts. And because we’re all about helping people learn and get more from their
by subscribing to our newsletter.