tags:

views:

54

answers:

1

I want a quick way to open the last modified file in the directory, perhaps in a form of alias.

Currently, I do ls -ltr. Then copy-and-paste the filename

Assume that I am using tcsh

+5  A: 
vi `ls -tr | tail -1`
GJ
May want to add --groups-directories-first to the ls, that way files are always at the end.
Randy Morris