TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

Alias ls="ls -1 -c -t | less"

8 pointsby jonmrodriguezover 13 years ago
The idea is:<p>turn yourself into a human LRU cache for filenames. Whenever you enter a directory and ls, you see a sorted, fullscreen, scrollable list of the files you used in that dir recently, which are probably the ones you want to see again!<p>Breakdown:<p>"-c -t" sort by time last changed "-1" to ease reading "| less" so that if (output nLines) &#62; (screen height), the first lines (best sorted results) get shown

1 comment

burgerbrainover 13 years ago
Perhaps in a similar vein, I use `alias new='ls -ltr | tail'` Lets me quickly see what files in a directory were just added. Useful for ~/downloads/, tarballs that didn't create their own directory, and whatnot.
评论 #3235641 未加载
评论 #3235612 未加载