Author name: admin

How to Find Server Public IP Address in Linux Terminal

root@test:/var/log/nginx# wget -qO – icanhazip.comwww.xxx.yyy.zzzroot@test:/var/log/nginx# wget -qO- http://ipecho.net/plain | xargs echowww.xxx.yyy.zzzroot@test:/var/log/nginx# wget -qO – icanhazip.comwww.xxx.yyy.zzzroot@test:/var/log/nginx# curl icanhazip.comwww.xxx.yyy.zzzroot@test:/var/log/nginx#

How to Find Server Public IP Address in Linux Terminal Read More »

Usefull Linux Commands for SAN LUN allocation in RHEL

ls -l /dev/disk/by-* | grep lun-31 ls -l /dev/disk/by-* | grep lun-33 ls -l /dev/disk/by-* | grep lun-20 ls -l /dev/disk/by-* | grep lun-10 cat /sys/class/fc_transport/*/node_name grep 50060160bee045be /sys/class/fc_transport/*/node_name lsscsi ./inq.LinuxAMD64 -clariion multipath -ll df -h cat /etc/fstsb cat /etc/fstab multipath -ll | grep mpathg ls -ltr /data* ls -ls /data* ls -ld /data* df

Usefull Linux Commands for SAN LUN allocation in RHEL Read More »

Howto: Recover a file when you don’t know inode number in Linux

Delete a file called abc.sh: rm abc.sh Type the following command: # debugfs -w /dev/mapper/root At debugfs: prompt type lsdel command: debugfs: lsdel Sample outputs: Inode Owner Mode Size Blocks Time deleted 2113537 0 120777 3 1/ 1 Tue May 1 06:21:22 2016 1 deleted inodes found. Get block data, enter: debugfs: logdump -i <2113537>

Howto: Recover a file when you don’t know inode number in Linux Read More »

Scroll to Top