usage: l [-lastUcuidnrzFLRxNPS] [-f format] [-D X:Y] [-F regexp] [file(s)]
usage: ff [-lastUcuidnrzFLxNPS] [-f format] [-D X:Y] regexp(s) [directory]
options: -l long list (implicit if called 'll')
-a list also .* files
-s sort by size
-t sort by time
-U sort by nothing (original i-node order)
-c list status change time instead of modification time
-u list last access time instead of modification time
-i list also inode and hard links numbers
-d do not list contents of diretories
-n numerical output
-r reverse list
-z squeeze size field (slows down output)
-L show absolute real path (dereference symbolic links)
-R recursive into subdirs
-x do not cross filesystem boundaries with -R
-m list files matching perl ^regexp$
-F find files matching case insensitive perl regexp (name and link)
-N show only normal (regular) files
-P list plain file names (without '\' masking)
-S print statistics summary at end
-f user defined format output, format characters are:
m=mode, u=user, g=group, s=size, l=hard links count, i=inode
n=name only, d=date, a=access+modification+inodechange dates
-D list only files newer than X and older than Y
XY format: NUMBER[smhd] (s=seconds, m=minutes, h=hours, d=days)
XY format: YYYY-MM-DD (Y=year, M=month, D=day)
-H show help
-E show examples
examples:
l *.c # list files ending with .c
l -la # list all files in long format
l -Rrs # list files recursive reverse sorted by size
l -*f mus # list files native names with format: mode+user+size
l -D 10d: # list files newer than 10 days
ll # list files long format (equal to: l -l)
lll # list files extra long format (equal to: l -liS)
ff 'base.*jpg' # list files matching regexp base.*jpg
ff sda3 /dev # list devices matching sda3 (equal to: l -RF sda3 /dev)
root@vms2:~# ff sda3 /dev
lRWX - 2014-08-30 09:10 /dev/block/8:1 -> ../sda3
lRWX - 2014-08-30 09:10 /dev/disk/by-path/pci-0000:01:00.0-fc-0x500307a80b401718:0x0000000000000000-part1 -> ../../sda3
lRWX - 2014-08-30 09:10 /dev/disk/by-uuid/c6793265-22a2-45b4-81f9-aa33d8d0d3a5 -> ../../sda3
bRW- 008,001 2014-08-30 09:10 /dev/sda3