0

Current situation

Let's say I have a cloud sync directory $CLOUD_DIR with sub-directories which I want to keep sorted by interest. In order to do that I use lexicographical order and use number to prefix the sub-directories. So the output of ls $CLOUD_DIR is:

1_My_very_important_work 
2_Topic_of_great_interest 
3_SF_novel_to_write

You can see it is not convenient if I want to insert a new sub-dir between existing ones.

Is there a proper way to do that?

Details

1) Maybe there is some tool which can sort ls output by usage frequency? In the way fasd works (link)?

2) If a tool like that exists it will not really help as I open files mostly from emacs and I am not sure that it can keep track of usage by another software.

  • 1
    The linux kernel can track access times of all files and directories. ls can sort by access time with the -lut option. Unfortunately the access time updates are commonly turned off when a filesystem is mounted via the noatime or relatime options. So one possibility is to change the mount options. But note that tracking access times is expensive (hence why it is commonly turned off). – kaylum Feb 12 at 10:40

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.