pwvcka
Last Updated: February 25, 2016
·
384
· zhangtai
Profile

Quick edit the recent changed file with vi & ls

vi `ls -t | head -1`

ls -t sorts the file by modification time, showing the last edited file first. head -1 picks up this first file.

Say Thanks
Respond
Filed Under