bash function to open most recent file code example Example: select latest file linux ls -Art | tail -n 1