TE
科技回声
首页24小时热榜最新最佳问答展示工作
GitHubTwitter
首页

科技回声

基于 Next.js 构建的科技新闻平台,提供全球科技新闻和讨论内容。

GitHubTwitter

首页

首页最新最佳问答展示工作

资源链接

HackerNews API原版 HackerNewsNext.js

© 2025 科技回声. 版权所有。

Managing Work-In-Progress Folders with “ls -ltr”

48 点作者 sefk将近 13 年前

10 条评论

phireal将近 13 年前
Combine watch with ls -ltr and you have a neat little way to keep an eye on a given file or directory:<p><pre><code> watch -n 1 ls -ltr</code></pre>
评论 #4349480 未加载
rwmj将近 13 年前
Like the author, I probably use 'ls -ltr' more often than any other variation of ls. It's more useful to view most directories in date order (newest nearest to your cursor), although of course this probably <i>won't</i> be news to most GUI / Windows users.<p>Edit: A small shell script over my history proves my guess is correct:<p><pre><code> plain ls: 59 ls -ltr: 8 ll: 6</code></pre>
robertskmiles将近 13 年前
I do basically the same thing. In fact I have 'ls -cr' automatically run after every cd.<p>The problem with aliases of course is that you end up typing them on other people's systems and looking foolish. Still, I use 'lcr' for 'ls -cr', 'll' for 'ls -alF', etc.
评论 #4349575 未加载
BoppreH将近 13 年前
Funny, I've come to use the same system some time ago, but for general to-dos. I just use more readable filenames, with spaces instead of dashes and more complete sentences, and in the file content I put more detailed info and links do resources.<p>The great thing about this is that it's utterly portable. You can sync with Dropbox, explore with a file manager, zip and send by email, grep, open and edit with scripts... The possibilities are endless, and you don't have to install anything.
kragen将近 13 年前
I always use ls -lart. It's handy for a lot of different things. What's the name of that file I just downloaded? Which subdirectory of my home directory is the one where that program saves its config information? What have I been working on in the last month?
pif将近 13 年前
Why not recursive? Use the following command if you want to have one directory per idea, rather than a single file:<p><pre><code> find -type f -print0 | xargs --null ls -ltr</code></pre>
评论 #4349987 未加载
评论 #4351969 未加载
评论 #4350338 未加载
nickknw将近 13 年前
Interesting timing on this; I just starting using <i>almost</i> this exact command (`ls -1tr`) days ago. Great for checking the last few things in that giant `Downloads/` folder
评论 #4349757 未加载
figital将近 13 年前
Hey can someone write me a script that will draw a bar chart of the frequency by date/month/year of each file's last modification time (in a directory)? Free beer. I promise!
Adrock将近 13 年前
I use it frequently enough that I've aliased "lt" to it. Any other flags people use with it?
tyler_ball将近 13 年前
This is _exactly_ what version control is for.
评论 #4350069 未加载