Change directory last opened date every time you `cd` in Terminal
Open .bash_profile - or create it if it doesn't exist.

Add the line:

tcd () { touch "$1" &amp;&amp; cd "$1"; }


and save the file.

Source your modified .bash_profile with source ~/.bash_profile or close all Terminal windows currently open.

Use tcd folder_name to cd to it and modify the access date.



You can refine this by adding a condition that the argument has to be a folder.