The file lens displays results based on files that you have actually opened. It does NOT search a full index of all your files.
At a technical level the results come from a tool called Zeitgeist rather than Tracker.
If you search for files useing Super +F you have the added advantage of having search results arranged by how recently you opened the files.
This can be accomplished with symlinks. But first, you need to setup your system so that the D: partition is automounted every time you boot Ubuntu.
Run sudo blkid
to see the UUID (Universally Unique Identifier) for all of your partitions. Then you will have to edit your fstab with this information.
fstab is a file located in /etc/ which determines which drives and partitions should be mounted every time the system starts. Before you do anything else, make a backup of the one you have:
sudo cp /etc/fstab /etc/fstab.backup
Then, edit fstab (with for example sudo nano
or gksu gedit
) and add this line:
UUID=<UUID of your D: partition> /media/Media ntfs defaults 0 0
Make sure that the mount location, /media/Media, exists before doing this, then reboot.
Now it's time to create symlinks. You will need to remove the personal folders first, as otherwise the symlinks will be placed inside them instead of replacing them. Make sure to backup any files you have there before running these commands:
rm -rf ~/Videos && ln -s /media/Media/Tesla/Videos ~/Videos
Repeat for all the folders you want to appear in your Home directory.
Best Answer
You can use the
find
command to find folders with the-type d
parameter. Here are a few examples:In the above examples, you would have noticed that only the directories with no subdirectories in them are listed. You can use
mindepth/maxdepth
to set the depth of the level that needs to be traversed.There are a whole load of different options to search directories and files as well using
find
, you can look through the man-page accessible byman find
for all the options and how to use it. Also althoughfind
is slower thanlocate
it doesn't requireupdatedb
to update a DB to search through because the search is performed real-time.