How to Remove a Directory and File in Linux Using ‘rm’ Command

Introduction Removing files and directories in Linux can be done using the ‘rm’ command. This command is used to delete files and directories from the Linux file system. The ‘rm’ command is a powerful tool and should be used with caution as it can delete files and directories permanently. In this tutorial, we will discuss … Read more

How to List All Running Services Under Systemd in Linux

Introduction Systemd is a system and service manager for Linux operating systems. It provides a standard process for controlling what programs run when a Linux system boots up. Systemd also provides a way to list all running services under it. This tutorial will explain how to list all running services under systemd in Linux. It … Read more

20 Basic ‘ls’ Command Examples in Linux

Introduction The ‘ls’ command is one of the most commonly used commands in Linux. It is used to list the contents of a directory. It is a very powerful command that can be used to perform a variety of tasks. In this article, we will discuss 20 basic ‘ls’ command examples in Linux. We will … Read more

Error Fixed: ERROR 1698 (28000): Access denied for user ‘root’@’localhost’

Solution: 1. Log in to the MySQL server as the root user using the command line. 2. Run the following command to reset the root user’s password: ALTER USER ‘root’@’localhost’ IDENTIFIED BY ‘new_password’; 3. Replace ‘new_password’ with the desired new password. 4. Exit the MySQL command line and log in again using the new password. … Read more

Linux: Difference Between /dev/tty, /dev/tty0, and /dev/console

Introduction Linux is a powerful and versatile operating system that is used in many different types of computing environments. One of the most important aspects of Linux is its ability to manage different types of devices, including terminals. In this article, we will discuss the differences between the three most common terminal devices in Linux: … Read more

8 Cut Command Examples [Cut Sections of Line in File]

Introduction The cut command is a powerful tool for manipulating text files. It can be used to extract specific sections of a line in a file, allowing you to quickly and easily manipulate the data. In this article, we will look at 8 examples of how to use the cut command to cut sections of … Read more

How to Permanently Disable Swap Partition in Linux

Introduction Swap partitions are an important part of any Linux system, as they provide a way to extend the amount of physical memory available to the system. However, in some cases, it may be necessary to permanently disable the swap partition in order to free up disk space or improve system performance. This tutorial will … Read more

How to Delete Large Directory with Thousands of Files in Linux

Introduction Deleting large directories with thousands of files in Linux can be a daunting task. It can take a long time to delete the files one by one, and it can be difficult to keep track of which files have been deleted and which ones still need to be deleted. Fortunately, there are several methods … Read more

8 Uniq Command Examples [Remove Duplicate Lines in Linux]

Introduction The uniq command is a powerful tool in Linux that can be used to remove duplicate lines from a file or stream. It is a very useful command for cleaning up data and making sure that only unique lines are present in a file. In this article, we will look at 8 examples of … Read more

How to Copy a Folder from Remote to Local in Linux using scp, rsync, SFTP

1. Using SCP: SCP (Secure Copy) is a command-line utility for copying files and directories between two locations. To copy a folder from a remote server to a local machine, use the following command: scp -r [username@]host:/path/to/remote/folder /path/to/local/folder 2. Using Rsync: Rsync is a fast and versatile command-line utility for synchronizing files and directories between … Read more