I'm trying to make a command which only displays the first 30 files when the ls
command is invoked. I found this method...
ls | head -30
... but it ends up spitting out the files in one long list, not formatted in a row or colored as per the .bash_profile
. So, is there any way to simply limit the output?
ls
does. Basically I want the exact functionality ofls
, just with trimmed results.