dig +short myip.opendns.com @resolver1.opendns.com
find . -printf '%s %p\n'|sort -nr|head
find . -mtime +7 -print0 | du -hc --files0-from - | tail -n 1
find . -type f -exec ls -s {} \; | sort -nr | awk 'NR==1 { $1=""; sub(/^ /, ""); print }'
grep -E -o "(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)" file.txt
find */ | sed 's!/.*!!' | uniq -c
free && sync && echo 3 > /proc/sys/vm/drop_caches && free
for i in /sys/class/scsi_host/host{0..32}/scan; do echo "- - -" > $i; done
fdisk /dev/sdk #set partition type to Linux LVM (type 8e) pvcreate /dev/sdk1 vgextend VolGroupDB /dev/sdk1 lvextend -l +100%FREE /dev/mapper/VolGroupDB-data resize2fs -p /dev/mapper/VolGroupDB-data #for xfs use xfs_growfs /dev/mapper/VolGroupDB-data parted -a optimal /dev/sdc mklabel gpt parted -a optimal /dev/sdc mkpart p 0% 100% parted -a optimal /dev/sdc set 1 lvm on vgextend VGEXL /dev/sdf1 lvresize -l +100%free /dev/mapper/VGEXL-exllv
echo '1' > /sys/class/scsi_disk/0\:0\:3\:0/device/rescan yum install cloud-utils-growpart growpart /dev/sdd 1 pvresize /dev/sdd1 lvextend -l +100%FREE /dev/mapper/VGKUB-lv_kub xfs_growfs /dev/mapper/VGKUB-lv_kub