The ps command in Linux can tell us all sorts of information about the running processes on our system. The command also reports memory usage for each running process. In this tutorial, you’ll see how to list processes on Linux, sorted by their memory consumption.
Commands
kill vs killall – difference and command usage
This article will discuss a difference between kill vs killall commands. Killing processes on a Linux is an essential thing for admins and users to know. At some point, you’ll encounter an application or services that hangs and freezes, and you’ll need to kill the process to exit it.
mount command in Linux with examples
We can use the mount command in Linux to attach file systems and removable devices such as USB flash drives. The default file system for most Linux distributions is ext4. We can also dismount file systems with the unmount command.
dd command in Linux with examples
Linux considers anything stored on a file system as files, even block devices. This means commands such as the dd command in Linux can be very handy in many situations, as it can be used to convert and copy files in the terminal, backup disks, or wipe data. The dd command is just as fundamental as it is useful, as it’s ready to use even on the most basic installations of Linux distros.
du command in Linux with examples
On any operating system, the files on your hard disk take up a certain amount of space. In Linux specifically, you can view how much space that these files take up in the command line terminal by using the du command. The du command (the name is shortened from “disk usage”), as the name implies, will simply display, in its output, the amount of disk space being used by a specified file or directory.
csplit command in Linux with examples
In Linux, we can employ many different methods for making text file management more convenient and fluid. The csplit command in Linux is a perfect example of how we can make text files a lot easier to maintain.
Add character to the beginning of each line using sed
The sed command in Linux can be used to do many types of text manipulation. In this tutorial, you’ll learn how to add a character to the beginning of every line using sed
. Check out the examples below to see how.
at command in Linux with examples
In Linux, you can automate many processes using various commands. You can even automate the process of running those commands. You can use the at command to run commands at a specified point in the future or it will only run these commands once. You can specify the time using key words like “tomorrow,” next week,” etc.
bc command in Linux with examples
Most users naturally think of a calculator on their computer as a GUI application, or something that is accessed directly from the desktop. But it’s also possible to use the bc command in Linux to run calculations through the command line terminal. bc is an acronym for “basic calculator.”