With lvs I get the default output:
~$ sudo lvs LV VG Attr LSize Pool Origin Data% Meta% Move Log Cpy%Sync Convert pre_upgrade_2020-10-31 rpi.vg06 swi-a-s--- 2,19g root.lv 64,37 pre_upgrade_2020-12-02 rpi.vg06 swi-a-s--- <2,20g root.lv 0,02 root.lv rpi.vg06 owi-aos--- 3,00g But that's not what interests me most. I want to get:
~$ sudo lvs -o lv_full_name,lv_attr,origin,lv_size,seg_size_pe,data_percent,lv_time -O lv_time LV Attr Origin LSize SSize Data% CTime rpi.vg06/root.lv owi-aos--- 3,00g 768 2020-04-05 22:34:46 +0200 rpi.vg06/pre_upgrade_2020-10-31 swi-a-s--- root.lv 2,19g 561 64,37 2020-10-31 20:52:45 +0100 rpi.vg06/pre_upgrade_2020-12-02 swi-a-s--- root.lv <2,20g 562 0,02 2020-12-02 23:15:47 +0100 The command is a bit long and not good to remember. I tried to use an alias but sudo doesn't know the users alias. Is there a way to configure lvs to output this by default with sudo lvs? Maybe in a *.conf or *rc file?