Tags: command line

square-gabriele-diwald-475007-unsplash.jpg

square brackets
This tutorial tackle square brackets and how they are used in different contexts at the command line.

Using Square Brackets in Bash: Part 1

After taking a look at how curly braces ({}) work on the command line, now it’s time to tackle brackets ([]) and see how they are used in different contexts. Globbing The first and easiest use of square brackets is in globbing. You have probably used globbing before without knowing it. Think of all...
Read 0 Comments

How to Monitor Disk IO in Linux

iostat is used to get the input/output statistics for storage devices and partitions. iostat is a part of the sysstat package. With iostat, you can monitor the read/write speeds of your storage devices (such as hard disk drives, SSDs) and partitions (disk partitions). In this article, I am going to...
Read 0 Comments

question-mark.jpg

mlocate
In this series of articles, we’ll look at the mlocate tool and examine how to quickly and easily tune it to your own specifications.

Finding Files with mlocate

Learn how to locate files in this tutorial from our archives. It’s not uncommon for a sysadmin to have to find needles buried deep inside haystacks. On a busy machine, there can be hundreds of thousands of files present on your filesystems. What do you do when you need to make sure one particular...
Read 0 Comments

Tutorial: Tap the Hidden Power of Your Bash Command History

Last month I wrote about combining a series of Unix commands using pipes. But there are times where you don’t even need pipes to turn a carefully-chosen series of commands into a powerful and convenient home-grown utility. ... The echo command repeats whatever text is entered after it, for example...
Read 0 Comments

curly-braces-1920.jpg

Curly braces
We continue our tour of Bash basics with a closer look at curly braces and how and when to use them.

All about {Curly Braces} in Bash

At this stage of our Bash basics series, it would be hard not to see some crossover between topics. For example, you have already seen a lot of brackets in the examples we have shown over the past several weeks, but the focus has been elsewhere. For the next phase of the series, we’ll take a closer...
Read 0 Comments

Linux Security: Cmd Provides Visibility, Control Over User Activity

There's a new Linux security tool you should be aware of — Cmd (pronounced "see em dee") dramatically modifies the kind of control that can be exercised over Linux users. It reaches way beyond the traditional configuration of user privileges and takes an active role in monitoring and controlling...
Read 0 Comments

The Hard Part in Becoming a Command Line Wizard

I’ve long been impressed by shell one-liners. They seem like magical incantations. Pipe a few terse commands together, et voilà! Out pops the solution to a problem that would seem to require pages of code. Are these one-liners real or mythology? To some extent, they’re both. Below I’ll give a...
Read 0 Comments

How Much Memory Is Installed and Being Used on Your Linux Systems?

There are numerous ways to get information on the memory installed on Linux systems and view how much of that memory is being used. Some commands provide an overwhelming amount of detail, while others provide succinct, though not necessarily easy-to-digest, answers. In this post, we'll look at some...
Read 0 Comments

ampersand-coffee.png

ampersand
Learn how to use ampersands in combination with angle brackets and get more out of the command line.

Ampersands and File Descriptors in Bash

In our quest to examine all the clutter (&, |, ;, >, <, {, [, (, ), ], }, etc.) that is peppered throughout most chained Bash commands, we have been taking a closer look at the ampersand symbol (&). Last time, we saw how you can use & to push processes that may take a long time to...
Read 0 Comments

ampersand.png

ampersand
This tutorial takes a closer look at the ampersand (&) and the various ways it can be used at the command line.

And, Ampersand, and & in Linux

Take a look at the tools covered in the three previous articles, and you will see that understanding the glue that joins them together is as important as recognizing the tools themselves. Indeed, tools tend to be simple, and understanding what mkdir, touch, and find do (make a new directory, update...
Read 0 Comments

Pages

Click Here!