lscpu command gives us information about our processor’s architecture, which operation mode the processor is currently using, the byte order, how many processors we’re running, how many cores, and so on. In an active Terminal session, type the following command: $ lscpu The following screenshot is the result of running lscpu on my 32-bit virtual […]
Archives for April 2022
lshal Command Examples in Linux
The lshal command lists all devices the hardware abstraction layer (HAL) knows about, which should be most hardware on your system. lshal Command OPtions Option Description -m, –monitor Print changes emitted by the hald daemon. -s, –short Short output. -t, –tree Display the devices organized in a tree. -u, –show Show only the given UDI […]
lspcmcia Command Examples in Linux
lspcmcia command displays extended PCMCIA debugging information. pccardctl is used to monitor and control the state of PCMCIA sockets. If a socket number is specified, the command will be applied to just one socket; otherwise, all sockets will be affected. lspcmcia is an alias for pccardctl ls, provided for convenience. lspcmcia Command Examples 1. To […]
lvmconf Command Examples in Linux
When using the various LVM utilities, each utility uses a central configuration file to govern its behavior. This configuration file is the /etc/lvm/lvm.conf file. The file has wonderful internal documentation and additional assistance is provided when you type man lvm.conf at the command line. On earlier distributions, the lvmconf command was used to display lvm.conf […]
lvmdiskscan Command Examples in Linux
The lvmdiskscan command scans all available drives for LVM-configured partitions. lvmdiskscan scans all SCSI, (E)IDE disks, multiple devices, and a bunch of other block devices in the system looking for LVM physical volumes. The size reported is the real device size. The lvmdiskscan only has one option “-l” or “–lvmpartition” which reports only the physical […]
lvrename Command Examples in Linux
If you have already created your logical volume and you forgot to give it a proper name, you don’t have to delete it and create it again. Using the lvrename command, you can change the name of a logical partition: # lvrename /dev/vg_group01/new_lv_name /dev/vg_group01/old_lv_name Renamed “old_lv_name” to “new_lv_name” in volume group “vg_group01” Verify with the […]
lvs Command Examples in Linux
A logical volume (LV) is created using the LVM’s lvcreate command. This is the final object in logical volume creation. An LV consists of storage space chunks from a VG pool. It can be formatted with a filesystem, mounted, and used just like a typical disk partition. After creating a logical volume, you can display […]
lvscan Command Examples in Linux
Logical volumes (LVs) are block device units that we can use locally. We create LVs using the lvcreate command. An example is as follows: # lvcreate -n web -L 100M iscsi In order to display information about LVs on a system, we can use lvs or lvscan. The output of the sudo lvscan command is […]
mailq Command Examples in Linux
The mailq command lists any outgoing email messages awaiting delivery: # mailq Queue ID- –Size– —-Arrival Time– -Sender/Recipient– 46AAB43972* 333 Tue Jan 10 21:17:14 smith@example.com jones@elsewhere.org Sent mail messages are also recorded in a log file, /var/log/mail.log. mailq Command Examples 1. To see the mails in queue: # mailq 2. To show the mail submission […]
mailstat Command Examples in Linux
mailstat command displays mail-arrival statistics. It parses a procmail-generated log file and displays a summary about the messages delivered to all folders (total size, average size, etc.). The log file will be renamed as logfile.old and a new logfile of size 0 will be created. Below are the common fields from the mailstat command output […]