Try using head or tail. If you want the 5 most-recently modified files:
ls -1t | head -5
The -1 (that's a one) says one file per line and the head says take the first 5 entries.
If you want the last 5 try
ls -1t | tail -5
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…