VMkernel system information shell (known as vsish) is a great tool for troubleshooting network performance issue. vsish runs in the ESXi shell and lets you look at advanced system parameters and performance information of the ESXi host and associated objects like the VMs. The vsish tool provides access to vmkernel’s VSI nodes. Other than non-interactive […]
Archives for March 2022
slocate command in linux
slocate command is Security Enhanced version of GNU locate. This command searches a database listing every file on the system; it is intended as a faster replacement for “find / -name pattern”. This version stores file permissions and ownership, in order to prevent unauthorized access to files. locate and slocate consult database files about the […]
e2fsck Command Examples in Linux
This utility checks an ext2/ext3 file system. Most often used after a sudden shutdown, such as from a power outage, or when damage to the disk is suspected. Some useful arguments taken from man e2fsck are as follows: -c: Checks for bad blocks and then marks them as bad. -f: Forces checking on a clean […]
hdparm Command Examples in Linux
The hdparm utility can be used by root to set and tune the settings for IDE hard drives. You would do this to tune the drives for optimal performance. After previously requiring a kernel patch and installation of associated support programs, the hdparm program is now included with Ubuntu. You should only experiment with the […]
pvremove Command Examples in Linux
pvremove wipes the label on a device so that LVM will no longer recognise it as a PV. A PV cannot be removed from a VG while it is used by an active LV. Syntax: # pvremove PV [options] pvremove Command Examples 1. To remove a physical volumes: # pvremove /dev/sda2 2. To set to […]
initctl Command Examples in Linux
The initctl command sends commands to the Upstart init daemon. Use it to monitor jobs or events, call jobs directly, or send custom events to the daemon. Syntax: # initctl [options] command Options Option Description –show-ids Show unique process id (pid) as well as the job id. –by-id Parameter passed to command is a job […]
nohup Command Options in Linux
Each process has a parent process that started it. For example, if you execute a command in a bash shell, then that command’s parent process is the bash shell process. When a parent process is stopped, a hang-up (HUP) signal is sent to all the child processes. This HUP signal is designed to stop the […]
jobs Command Options In Linux
Each bash shell keeps track of the processes that are running from that shell. These processes are referred to as jobs. To list the currently running jobs, execute the jobs command from the bash shell, like so: $ jobs [1]- Running sleep 250 & [2]+ Running sleep 999 & Each job is assigned a job […]
How to Use rpm2cpio Command in Linux
The rpm2cpio command converts RPM files into CPIO (CPIO comes from the phrase “copy in and out”) data streams. These streams can then be piped into the cpio command, which can extrapolate the files and directories. Example: # ls libgcc-4.8.5-4.el7.x86_64.rpm # rpm2cpio libgcc-4.8.5-4.el7.x86_64.rpm | cpio -idum 353 blocks # ls lib64 libgcc-4.8.5-4.el7.x86_64.rpm usr # ls […]
grub-mkconfig Command Options
Only used for GRUB2, grub-mkconfig will generate GRUB2 configuration files from the user-editable files located in the /etc directory structure. This command converts data from the /etc/default/grub file and the files in the /etc/grub.d directory into the GRUB2 configuration file (either /boot/grub/grub.cfg or /boot/grub/menu.lst). Note: On some systems, the command name is grub2-mkconfig. Command Options […]