If you use vim text editor, you would have seen the colorful text mark-up. It helps a lot in case you are writing scripts. By default vi editor does not have this feature enabled. Follow the steps below to enable the text colour feature in vi. 1. install vim-enhanced if not already installed. # yum […]
Archives for June 2017
How to enable NFS debug logging using rpcdebug
We can use the rpcdebug command to set and clear the Linux kernel’s NFS client and server debug flags. Setting these flags causes the kernel to log messages to the system log ( in response to NFS activity. Below is a list of modules which for which kernel debug flags can be set using rpcdebug […]
CentOS / RHEL : How to find the creation time of LVM volume
Metadata backups and archives are automatically created on every volume group and logical volume configuration change unless disabled in the /etc/lvm/lvm.conf file. By default, the metadata backup is stored in the /etc/lvm/backup directory. Each Volume group backup is stored in this directory with file name same as the VG name. The metadata archives are stored […]
CentOS / RHEL : How to delete LUKS encrypted device
While deleting a LUKS encrypted device using lvremove you would get an error as below : # lvremove /dev/mapper/datavg-lv_cryptvol Logical volume datavg/lv_cryptvol is used by another device. The reason being – it is a LUKS encrypted volume. Follow the steps below to delete a LUKS encrypted device. Deleting LUKS volume 1. Determining the underlying device […]
Linux / UNIX : How to find files which has SUID/SGID set
Special Permissions – SUID/SGID There are two special permissions that can be set on executable files: Set User ID (setuid) and Set Group ID (sgid). These permissions allow the file being executed to be executed with the privileges of the owner or the group. For example, if a file was owned by the root user […]