Posts

Showing posts from March, 2020

Important concepts and bits

what is mtab? matb is the currently mounted file system. what is fstab? fstab is the to be mounted file system while booting. difference between mtab and fstab? mtab is mounted file system. fstab is the file system tab to be mounted. where is the fstab conf and mtab conf fstab and mtab are located in the etc directory. etc is located in the / directory. / is the top of hierachy in linux.

dumpe2fs is the filesystem super block information for the ext4 file system

dumpe2fs : dump ext2/ext3/ext4 filesystem information Examples: - To dump the file system information about a device   # dumpe2fs /dev/sda1 - To print the blocks which are reserved as bad in the filesystem # dumpe2fs -b /dev/sda2 - To use  the block superblock when examining the filesystem   # dumpe2fs -o superblock=superblock /dev/sda1 - To use blocks of blocksize bytes when examining the filesystem.   # dumpe2fs -o blocksize=blocksize /dev/sda1 - To force dumpe2fs to display a filesystem # dumpe2fs -f /dev/sda1 - To only display the superblock information # dumpe2fs -h - To display the filesystem data from an image file created by e2image                   # dumpe2fs -i - To print the detailed group information block numbers in hexadecimal format                   # dumpe2fs -x - To get the version info # dumpe2fs -V ...

User management practice commands

 535  less /etc/passwd   536  cut -d: -f1 /etc/passwd   537  cut -d: -f2 /etc/passwd   538  cut -d: -f3 /etc/passwd   539  cut -d: -f4 /etc/passwd   540  cut -d: -f5 /etc/passwd   541  less /etc/passwd | grep balu   542  less /etc/passwd | grep apache   543  less /etc/passwd   544  c   545  less /etc/passwd | grep suma   546  less /etc/passwd | grep   547  c   548  useradd ipo   549  passwd ipo   550  usermod -aG wheel ipo   551  vi - ipo   552  su - ipo   553  c   554  useradds -D   555  c   556  usermod -c 'iso' ipo   557  tail -f /etc/passwd   558  tail --help   559  c   560  userdel -r ipo   561  kill -9 2528   562  c   563  su - ipo   564  userdel -r sune...

lvm practice commands

    1  lsblk     2  fsck     3  fsck /sda     4  fsck /sda2     5  fsck /dev//sda2     6  fsck /dev//sda1     7  xfs_repair     8  xfs_repair /dev/sda2     9  xfs_repair /dev/sda1    10  umount /dev/sda2    11  umount /dev/sda1    12  xfs_repair /dev/sda1    13  fsck /dev/sda    14  e2fsck /dev/sda    15  umount /dev/sda    16    fdisk -l    17  umount /dev/sda2    18  df -h    19  e2fsck /dev/sda2    20  e2fsck /dev/mapper/rhel-root    21  umount /dev/mapper/rhel-root    22  subscription-manager unregister --username=balachavalli    23  subscription-manager unregister --username=balachavali    24 ...

EXTERNAL ARTICLES

LVM linux tutor