Linux:Bash Useful Tips: Difference between revisions

From queowiki
mNo edit summary
mNo edit summary
Line 1: Line 1:
== Extending a LV (ext4/xfs) with all available space in one command  ==
== Extending a LV (ext4/xfs) with all available space in one command  ==
  lvextend -l 100%FREE /dev/vg_base/var -r
  lvextend -l +100%FREE /dev/vg_base/var -r


== Renaming multiple files with the same extension in CentOS ==
== Renaming multiple files with the same extension in CentOS ==

Revision as of 15:56, 5 July 2017

Extending a LV (ext4/xfs) with all available space in one command

lvextend -l +100%FREE /dev/vg_base/var -r

Renaming multiple files with the same extension in CentOS

rename .ext .ext.bak *.ext

(!) Beware that the rename command may work differently acc. to your Linux distribution

snmp v3 command sample

snmpwalk -v3 -l authPriv -u <uid> -a SHA -A <pwd> -x DES -X <pwd> <fqdn/ip> <oid-optional>