r/linux4noobs Jun 12 '26

shells and scripting Fish shell abbreviations is a godsend

Hi!

After my migration from Windows to Linux two or so months ago, I've been trying to learn how to use the terminal and be somewhat efficient and know about the basic functions like rm, mv, cp, ls, ln and such.
I've known about terminal aliases a while, but I found out about abbreviations on Fish yesterday and I absolutely love that feature.

Got any suggestions on other abbreviations/aliases I should use, or even other QoL features that I might not know about? Happy to learn!

Upvotes

64 comments sorted by

View all comments

u/InitHello Jun 12 '26

I have alias df='df -lThx tmpfs'

Because 89.374% of the time, I just want to df local partitions, displaying the fs type, with human readable sizes, and exclude tmpfs.

u/SandvikDude Jun 12 '26

I shamelessly stole this one. Thanks!

u/doc_willis Jun 12 '26

Also check out pydf

$ pydf
Filesystem      Size  Used Avail  Use%             Mounted on                        
composefs        48M   48M     0 100.0 [#########] /                                 
/dev/nvme1n1p2  973M  259M  647M  26.6 [##.......] /boot                             
/dev/nvme1n1p1  599M   13M  586M   2.1 [.........] /boot/efi                         
/dev/nvme1n1p3 3724G 1831G 1892G  49.2 [####.....] /etc                              
/dev/sda1      3666G 2850G  630G  77.7 [#######..] /run/media/wil/moustache       
efivarfs        128k   45k   78k  35.0 [###......] /sys/firmware/efi/efivars         
/dev/nvme1n1p3 3724G 1831G 1892G  49.2 [####.....] /sysroot                          
/dev/nvme1n1p3 3724G 1831G 1892G  49.2 [####.....] /sysroot/ostree/deploy/default/var
/dev/nvme1n1p3 3724G 1831G 1892G  49.2 [####.....] /usr/share/pipewire               
/dev/nvme1n1p3 3724G 1831G 1892G  49.2 [####.....] /usr/share/wireplumber            
/dev/nvme1n1p3 3724G 1831G 1892G  49.2 [####.....] /var                              
/dev/nvme1n1p3 3724G 1831G 1892G  49.2 [####.....] /var/home                         
/dev/nvme0n1p2  914G  602G  265G  65.9 [######...] /var/home/wil/Drives/Steam2TB