How to Recover a Deleted File in Linux
Did this ever happen to you? You realized that you had mistakenly deleted a file – either through the Del key, or using rm in the command line. In the first case, you can always…
Did this ever happen to you? You realized that you had mistakenly deleted a file – either through the Del key, or using rm in the command line. In the first case, you can always…
In this article, we will briefly talk about ports in computer networking and move to how you can list all open ports in Linux. In computer networking, and more definitely in software terms, a port…
To compress a file(s), is to significantly decrease the size of the file(s) by encoding data in the file(s) using less bits, and it is normally a useful practice during backup and transfer of a…
In this guide, we will describe what character encoding and cover a few examples of converting files from one character encoding to another using a command line tool. Then finally, we will look at how…
In this article, we will look at how to find a process name by its process identification number (PID). Before we dive into the actual solution, let us briefly talk about how processes are created…
As a newbie, one of the many things you should master in Linux is identification of devices attached to your system. It may be your computer’s hard disk, an external hard drive or removable media…
Let’s say you have a large ISO file on your Linux server and you wanted to access, extract or copy one single file from it. How do you do it? Well in Linux there are…
Let us start by defining a bad sector/block, it’s a section on a disk drive or flash memory that can not be read from or written to anymore, as a result of a fixed physical…
Sometimes you get into a situation where you need to delete all files in a directory or simply cleanup a directory by removing all files except files of a given type (ending with a particular…
The easiest way to count number of files and subdirectories in a directory using a tree command, which is best known for displaying files and directories in tree-like form. Although you can always enable quotas…
When it comes to gaining absolute control over your Linux system, then nothing comes close to the command line interface (CLI). In order to become a Linux power user, one must understand the different types…
If you are in charge of managing a database server, from time to time you may need to run a query and inspect it carefully. While you can do that from the MySQL / MariaDB…
Sometimes you may find it useful to display the access rights of files or directories in octal form instead of rwx or perhaps you want to display both. Instead of using good old ls -l…
As a system administrator or Linux power user, you may have probably come across or even on several occasions, used the versatile Linux Rsync tool, which enables users to expeditiously copy or synchronize files locally…
Some of the special directories that a Linux user is bound to work with so many times on a shell command line include the user’s home directory, the current and previous working directories. Therefore, understanding…
When you have important sensitive data, then its crucial to have an extra layer of security to your files and directories, specially when you need to transmit the data with others over a network. That’s…
As an alternative to cron job scheduler, the at command allows you to schedule a command to run once at a given time without editing a configuration file. The only requirement consists of installing this…
Have you ever typed a command and rushed to hit Enter, only to find that you had a typo in it? While you can use the up and down arrows to navigate the command history…