Search This Blog

2015-08-11

Make FreeBSD Stat Command Look like Linux


alias stat="/usr/bin/stat -f \" File: '%N'%SY%n Size: %-15z Blocks: %-10b IO Block: %-6k %HT%nDevice: %7Hr/%-7Lr Inode: %-11i Links: %l%nAccess: (%Mp%Lp/%Sp) Uid: (%5u/%8Su) Gid: (%5g/%8Sg)%nAccess: %Sa%nModify: %Sm%nChange: %Sc%n Birth: %SB\" -t '%F %T %z'"


References:
https://npre.wordpress.com/2012/08/31/linux-like-stat-in-freebsd/

No comments:

Post a Comment