Linux Hapus file latst 3

ls -tp | grep -v '/$' | tail -3 | xargs -I {} rm -- {}
Namidu