That is ok Nepomuk, ls -ltr | head -n 10 will 10 lines ...
I know, I do understand what head does, I just didn't quite understand, what it was you wanted.
but my concern is headings of the columns for 'ls -ltr' ..
like
permissions filename size .. etc
Ah, now I understand. Well, I checked the man page and couldn't find anything. There might be something in the coreutils info page (
info coreutils ->
* Directory listing:: ->
* ls invocation::), but I couldn't find anything to solve your problem in there either so far. I guess, you're probably out of luck.
Of course, you could always try to write something like that yourself. (Maybe Perl or Python would be a good choice for this? But I know neither...)
Greetings,
Nepomuk