Linux systems come with a wealth of documentation. For basic commands, the manual pages (or man pages) will tell you what you need to know. For example, to see the manual page for the ls command, run man as follows: $ man ls Most manual pages concentrate primarily on the reference information, perhaps with some […]
Archives for April 2022
manpath Command Examples in Linux
manpath command attempts to determine the path to manual pages. It checks $MANPATH first; if that is not set, consult /etc/man.conf, user environment variables, and the current working directory. The manpath command is a symbolic link to man and is equivalent to ‘man –path’. Most of the options are ignored for manpath. manpath Command Examples […]
mesg Command Examples in Linux
Users can disallow anyone to send them messages via the mesg utility. Therefore, before you start attempting to send messages, it’s a good idea to check whether messages are allowed. For yourself, you can simply enter the mesg command as follows: $ mesg is n $ The “is n” result shows that messaging is turned […]
mke2fs Command Examples in Linux
mke2fs is a utility that creates an ext2, ext3, or ext4 file system inside a partition on a Linux-based operating system. It is used to format a disk partition and make it ready for use as a Linux file system. The mke2fs command creates the file system structure, such as the superblock and inode tables, […]
mkpasswd Command Examples in Linux
Random passwords for users can be generated using the mkpasswd command (which is included with the expect software package). For example, to generate a 10-character pass-word automatically with three numbers and three digits, use ‘mkpasswd -l 10 -d 3 -C 3’. Good passwords are not birthdays, anniversaries, your pet’s name, the name of your significant […]
more Command Examples in Linux
The main drawback of the cat command is that you can’t control what’s happening after you start it. To solve that problem, developers created the “more” command. The more command displays a text file but stops after it displays each page of data. more is a filter that displays the contents of a text file […]
mountstats Command Examples in Linux
The mountstats command displays various NFS client statistics for each given mount point. If no mount point is given, statistics will be displayed for all NFS mount points on the client. This command is useful in obtaining NFS mount options, buffered versus direct IO, RTT latency per RPC procedure, and backlog latency per RPC procedure. […]
mpstat Command Examples in Linux
“mpstat” is a command-line tool that is used to monitor CPU utilization on Linux and Unix-like systems. It provides information about CPU utilization, including the utilization of individual cores, the utilization of individual processes, and the utilization of the system as a whole. The mpstat command is a part of the Sysstat set of utilities. […]
pidstat Command Examples in Linux
While top is used to get an overview of all running processes, the command pidstat can be used to monitor CPU utilization by an individual process or program. Use the following command to monitor CPU consumed by MySQL (or any other task name): $ pidstat -C mysql With pidstat, you can also query statistics for […]
pinky Command Examples in Linux
Pinky command prints the user information. It is a light-weight finger program that has both long and short formats. If no users are specified, it prints information for all logged-on users. Common options: -b: In long format, omit the home directory and shell. -f: In short format, omit column headings. -h: In long format, omit […]