Passwd is a basic Linux command to change the user password on Linux. A root user can change the password for any account. A normal user may only change the password for their own account. We have summarized all the options for passwd command below. Lock an account with passwd command in Linux Passwd -l …
Linux
The tar command in Linux is used to bundle up multiple files and/or directories. It’s similar to the zip command. However, zip files are compressed by definition; tar files can be compressed, but don’t have to be. How Tar works in Linux The basic command for creating tar.gz files is as below: $ tar -czf …
In this blog post, we will discuss three different ways to find the largest files on a Linux system. This is a handy trick to know if you are running out of disk space and need to free up some space. We will be using the “du” command, the “find” command, and the “ls” command …
We can use this command to find out which process uses the highest CPU or Memory in Linux. # ps -eo pid,ppid,cmd,%mem,%cpu –sort=-%mem |head # ps -eo pid,ppid,cmd,%mem,%cpu –sort=-%cpu |head How to Find the Process Which Uses Most CPU The -o (or –format) option of ps allows us to specify the output format. It shows …
CPU utilization is a key metric to determine how much CPU uses for a process. Today we will review why the CPU utilization for a process is over 100%. This can help us understand how CPU works on Linux. Understanding top command in Linux In any operating system, the CPU is responsible for running the …
CPU run queue length and load average are key metrics related to system performance. We will review what these two CPU metrics mean today. What is CPU RUN Queue Length on Linux What is Load Average How to Check High System Load Average What is CPU RUN Queue Length on Linux In Linux, a process …
find is a Linux/Unix command used to search for files and directories in a specified location based on certain criteria such as name, size, modified time, and ownership, among others. The exec option in find is used to execute a command on the files that are found by the find command. The command can be …
The userdel command is a Linux utility that can be used to delete user accounts and their associated files. Open the terminal and type userdel username. It performs this function by removing the user’s entry from the /etc/passwd file, and other files associated with the account. In most Linux distributions, the user home and mail …
The Linux operating system offers a plethora of powerful commands, each designed to perform specific tasks efficiently. One such command is ‘useradd,’ which plays a crucial role in managing user accounts on a Linux system. Whether you are a system administrator or an aspiring Linux enthusiast, understanding the ins and outs of the ‘useradd’ command …
Managing user accounts and groups is an essential responsibility for Linux administrators. In this tutorial, we will explore a range of Linux commands that enable us to perform fundamental user management tasks. We’ll cover creating new users, creating groups, deleting users, and deleting groups. By mastering these commands, you’ll gain the skills needed to effectively …