Hi there!
Not sure what you mean by "lock" or "unlock" the files. Sounds like you are trying to do things to log files that you do not have permissions to do. Most or all log files are owned by root , so you'll need to be root (or use `sudo`) to remove or clear such files.
As for "open the listing so the latest entry is at the top", again this is slightly unclear, but maybe try:
that may work. If not, someone will have another suggestion, though you may need to clarify exactly what you mean.
Cheers!
EDIT; Oh, P.S. you should ideally have the `logrotate` program being run by cron or something on your system, which should take care of rotating and clearing logs automatically for you. Perhaps you ought to investigate this. Just a suggestion.