Home Archive for category "Script" (Page 2)
formats/

How to resize LVM logical volumes with ext4 as filesystem

Published on February 3, 2011 by WaYdotNET in Script, tips

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19   # Unmount the filesystem and check its’ LV umount /mnt/foo e2fsck -f /dev/mapper/vg0-foo   # Shrink ext4 and then the LV to the desired size resize2fs -p /dev/mapper/vg0-foo 40G lvreduce -L 40G /dev/mapper/vg0-foo   #

(More)…

 
 Share on Facebook Share on Twitter Share on Reddit Share on LinkedIn
formats/

tips: remove control-M with emacs

1 2 3 4 5 M-x replace-string C-q C-m return

 
 Share on Facebook Share on Twitter Share on Reddit Share on LinkedIn
formats/

tips: search text into list file and order by date

Published on January 13, 2011 by WaYdotNET in Script

Simple but power command to search text inside file ed order list file by date ….. thx to google and all user 1 grep -rl ‘REGEX’ * | xargs ls -trl

 
 Share on Facebook Share on Twitter Share on Reddit Share on LinkedIn
formats/

Windows ANSI Color (WAC)

wac.exe is a small command line utility that lets you use ANSI colors on Windows. link https://github.com/aslakhellesoy/wac

 
 Share on Facebook Share on Twitter Share on Reddit Share on LinkedIn
formats/

emacs in terminal mode

Published on October 22, 2010 by WaYdotNET in Script, tips

how to start emacs in terminal-mode instead of graphical mode ? the solutions is : 1 emacs -nw

 
 Share on Facebook Share on Twitter Share on Reddit Share on LinkedIn