Article
Bash utilities make so many tasks simple, but not all tasks have a straightforward command or operator. A very common and usual task in many scripting scenarios is concatenating string variables. Bash doesn't have a built-in function or command-line utility to concatenate two strings together. However, there are many ways...
Sathiya Sarathi Gunasekaran
In Linux, ls -l would list the files and directories in a particular path, with their names, dates, and sizes (disk usage). The first thing you'll notice using that command is that the size of directories is always shown as 4096 bytes (or 4,0K if you're using ls -lh)...
Ruslan Hasanov
The cat command is a Unix tool used for manipulating and displaying file contents. The command gets its name from the word "concatenate" because it has, among other things, the ability to concatenate files. In this article, we'll go through a few easy ways to use this command...
Kristina Popovic
Grep is a powerful, yet very simple tool. By default, it searches through an input and prints a single or multiple lines that contain text matched to a pattern specified in the command call. Before grep became such a widespread tool for the GNU/Linux system, it used to be...
Mina Krivokuća
In the previous article I explained how to monitor your data and how to detect changes using tools like Integrit, which is a Host-based Intrusion Detection System (HIDS). Discovering the changes in files is already quite nice, but keeping track of the content and its changes over time is much...
Frank Hofmann
IP addresses are an essential part of modern networked communications. In this guide, we will show you how to find your own IP address. These instructions will work for most of the various Linux distributions like Ubuntu, Debian and Linux Mint, among others. BSD systems like FreeBSD and NetBSD, as...
Tendai Mutunhire
In this tutorial, we will show you how to permanently set your PATH on Linux. First off, why should you care? The $PATH variable, or just PATH, without the $ indicating variables, specifies a list of directories that impacts your computing platform's functionality in a critical way. This is because the...
This topic is essential knowledge for every user of UNIX, Linux, Solaris, OS X, and BSD. Furthermore, the LPI certification contains tricky questions about this. If you want to find files with a certain filename using the command line then use either the find or the locate commands. But if...
Different file systems in the UNIX/Linux universe allow a variety of entries such as regular files, directories, sockets, named pipes, and links. In this article I will explain to you what links are, which types of links exist, how to create a symbolic link, and how to detect broken...
© 2013-2024 Stack Abuse. All rights reserved.