I desire to list all inodes in current directory that are regular files (i.e. not directories, links, or special files), with ls -la
(ll
).
I went to the man ls
searching for type
and found only this which I didn't quite understand in that regard:
--indicator-style=WORD
append indicator with style WORD to entry names: none (default), slash (-p), file-type (--file-type), classify (-F)
How could I list only regular files with ls -la
(ll
as my shortcut in Ubuntu 18.04)?
ls -la | grep "^-"
. Atleast that worked for me. – Dilip Muthukurussimana Jan 08 '24 at 06:21