Tips for using the ‘ls’ command in Linux
One of the first commands I learned in Linux was ls. Knowing what’s in a directory where a file on your system resides is important....
Intro to the Linux chgrp and newgrp commands
In a recent article, I introduced the chown command, which is used for modifying ownership of files on systems. Recall that ownership is the combination...
Intro to the Linux chown command
Image by: Opensource.com CC-by-SA 4.0 Every file and directory on a Linux system is owned by someone, and the owner has complete control to change...
Intro to the Linux chmod command
Every object on your Linux system has a permission mode that describes what actions a user can perform on it. There are three types of...
How my easy, home-made backup program saves time, space on the storage medium, and network bandwidth
Nothing can ever go wrong with my computer and I will never lose my data. Riiiiight.
This article discusses the backup program I created to prevent catastrophic data loss and facilitate easy recovery. I also show how you can install and use it yourself.
Intro to the Linux useradd command
Adding a user is one of the most fundamental exercises on any computer system; this article focuses on how to do it on a Linux system.
Play a fun math game with Linux commands
Use these commands to generate random numbers for a fun math quiz game.
Using the command line calendar and date functions in Linux
have always been interested in historical dates and determining the actual day of the week an event occurred. What day of the week was the Declaration of Independence signed? What day of the week was I born? What day of the week did the 4th of July in 1876 occur? I know that you can use search engines to answer many of these questions. But did you know that the Linux command line can supply those answers, too?
6 Linux metacharacters I love to use on the command line
Using metacharacters on the Linux command line is a great way to enhance productivity.
Early in my Linux journey, I learned how to use the command line. It’s what sets Linux apart. I could lose the graphical user interface (GUI), because it was unnecessary to rebuild the machine completely. Many Linux computers run headless, and you can accomplish all the administrative tasks on the command line. It uses many basic commands that all are familiar with—like ls, ls-l, ls-l, cd, pwd, top, and many more.
Using ‘awk’ to filter text
Here’s how to use awk to strip out sample code from a Markdown file.
Use ‘grep’ to solve a 2-dimensional word puzzle
Regular expressions match patterns and help you solve problems.
Using ‘grep’ to play a word game
You can use regular expressions to match letters and patterns, to help you play a letter game.
Regular Expressions #4: Pulling it all together
This series delves into the practical applications of regular expressions within Linux tools such as grep, sed, and awk, demonstrating how to simplify and optimize command-line tasks. The articles guide readers from basic to more complex uses of regex, emphasizing their usefulness in data stream transformation and text manipulation across various tools and programming languages. Through hands-on examples and resource recommendations, the series aims to enhance the reader’s understanding and proficiency with regex in diverse scenarios.
Regular Expressions #3: grep — Data flow and building blocks
In Regular Expressions #1: Introduction, I covered what they are and why they’re useful. In Regular Expressions #2: An example, we looked at a more complex example of the uses of regular expressions.
In this third of four articles you’ll learn how to make tighter matches with your regexes.
Regular Expressions #2: An example
In the previous article, Regular Expressions #1: Introduction, I covered what they are and why they’re useful.
The example in this article highlights the power and flexibility of the Linux command line, especially regular expressions, for their ability to automate common tasks.
Regular Expressions #1: Introduction
Regular expressions don’t have to invoke anxiety and fear, although they do for many of us. The function of regular expressions is to provide a highly flexible tool for matching strings of characters in a stream of data. When a match is found, the program’s action can be as simple as to pass the line of data in which it’s found on to STDOUT, or as copmplex as replacing that string with another.