• Skip to primary navigation
  • Skip to main content
  • Skip to primary sidebar
  • Skip to footer navigation

The Geek Diary

  • OS
    • Linux
    • CentOS/RHEL
    • Solaris
    • Oracle Linux
    • VCS
  • Interview Questions
  • Database
    • oracle
    • oracle 12c
    • ASM
    • mysql
    • MariaDB
  • DevOps
    • Docker
    • Shell Scripting
  • Big Data
    • Hadoop
    • Cloudera
    • Hortonworks HDP

Archives for June 2017

How to enable text colour in vi similar to vim in CentOS/RHEL

by admin

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 […]

Filed Under: Linux

How to enable NFS debug logging using rpcdebug

by admin

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 […]

Filed Under: Linux

CentOS / RHEL : How to find the creation time of LVM volume

by admin

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 […]

Filed Under: Linux

CentOS / RHEL : How to delete LUKS encrypted device

by admin

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 […]

Filed Under: Linux

Linux / UNIX : How to find files which has SUID/SGID set

by admin

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 […]

Filed Under: Linux

CentOS / RHEL 6 : How to limit memory resources for a specific user using cgroups

by admin

Control groups (strong>cgroups) enable you to allocate computing resources to specific processes or tasks. You can assign a set of CPU and memory to a specific group of tasks or even to a specific user. The post here details out the steps to allocate a defined memory resource to a specific use. Ulimit won’t be […]

Filed Under: Linux

Primary Sidebar

Recent Posts

  • ncat Command Examples in Linux
  • ncat: command not found
  • nautilus Command Examples in Linux
  • namei: command not found

© 2023 · The Geek Diary

  • Archives
  • Contact Us
  • Copyright