The Vim editor (and its predecessor, vi) is a command line editor for Linux systems. It has a long standing reputation as being the most powerful text editor on Linux. After mastering it, many users will even claim that it is far speedier and more convenient to use than a typical GUI editor packed with lots of features in its menus.
Column is a free and open source utility usually installed as part of the util-linux package in all the most common Linux distribution, and therefore included in even the most minimal installations. With this utility we can organize the content of files or the output of other commands in columns, creating pretty tables or even producing JSON formatted documents.
The ability to create secure shell scripts is essential not only for system administrators, but also for users who wants to automate repetitive tasks. Sometimes, from our shell scripts, we need to provide the user with some kind of information, ask him/her to provide some input, choose from a set of alternatives, or just ask for his/her confirmation before performing a potentially dangerous operation. All those actions, can be performed from the command line, of course, but to make our scripts more user-friendly, we can use of Whiptail to customize and display textual widgets.
The Linux command line comes with many options that we can use in order to search for files. One of the most powerful features is regex (regular expression) pattern matching. This convention allows us to search our file system based on very granular name patterns found inside the file names – for example, the ability to search for all files that start with an
A and end with a
K. In regex, this would be written
A file name with a single quote in its name can cause a lot of problems when used with a Bash script or used on the command line. Single quotes are special characters and instruct the Bash shell to interpret the text between them literally. Most users would, ideally, prefer to work with files that do not have quotes in the file name.
Using the terminal is one of the main draws that attracts users to a Linux system. It is very powerful and allows you to do many tasks just from your keyboard. But you can get even more use out of the command line if you have a good terminal to go along with it. Some terminals make things easier or allow you to split windows to increase your workflow efficiency, etc.
Most of us longtime Linux users have the
ifconfig command seared into our brain, after years of repetitive use. It comes as a shock to some when they type the command and are met with an error message (ifconfig command not found). Indeed, the command has become deprecated, but it’s still possible to install ifconfig command.
The locale on a Linux system is what determines the type of characters and encoding that appear in your command line terminal. Changing the locale will set various environment variables to different values. The terminal and other applications can then query those variables to figure out what type of characters and settings to show the user.
The journalctl command can be used to view all of the logs collected by systemd on a Linux system. This includes logs related to the system’s kernel, initrd, various services and applications, as well as systemd itself. The journalctl command makes querying all of these logs pretty painless, since systemd gathers and stores all these various logs in a central location for administrators to view.
A GUI is only a supplemental component of a Linux system, and is not essential. Many System Administrators will elect to keep their servers as command line only, as a GUI is completely unnecessary for running a plethora of different services. Everyday users, however, will usually want a GUI to perform basic functions like web browsing, watching videos, etc.
If you have tried to run the
sudo command on your Linux system and are greeted with a
sudo command not found error, we have the solution for you. This error most commonly occurs on minimal installs, such as in Docker or on a VPS (virtual private server), and can happen on any Linux distro, like Ubuntu Linux and Debian . In this tutorial, we will show you how to resolve the error and give you the ability to run
sudo commands without error.