Microwave Biscuit

Locate

Posted in Linux, ubuntu by microwavebiscuit on February 22, 2007

Locate is a tool that I use almost every day. It’s a great way to find files that have gone missing or to find out where a new package was installed. In a previous post I discussed using Tilda and Yakuake. When I installed them only Yakuake ended up with a menu item. Tilda didn’t end up visible anywhere. Even though Yakuake did end up in the menu I had some difficulty configuring it as the default keybinding is F12 which I had previously bound to something else. So, in order to attempt to reconfigure Yakuake and find/configure Tilda I went to a terminal and used locate.

First, being that I had just installed new packages I needed to update the locate database. Easy to do – simply enter:

sudo udpatedb

Which then updates the locate database with any new items. Then, I searched for yakuake by typing:

locate yakuake

Which returned:


/var/cache/apt/archives/yakuake_2.7.5-0ubuntu1_amd64.deb
/var/lib/dpkg/info/yakuake.postinst
/var/lib/dpkg/info/yakuake.list
/var/lib/dpkg/info/yakuake.postrm
/var/lib/dpkg/info/yakuake.md5sums
/home/me/.kde/share/config/yakuakerc
/usr/bin/yakuake
/usr/share/app-install/desktop/yakuake.desktop
/usr/share/app-install/icons/yakuake.png
/usr/share/applications/kde/yakuake.desktop
/usr/share/apps/yakuake
/usr/share/apps/yakuake/default
/usr/share/apps/yakuake/default/tabs.skin
/usr/share/apps/yakuake/default/title
/usr/share/apps/yakuake/default/title/config_down.png
/usr/share/apps/yakuake/default/title/back.png
/usr/share/apps/yakuake/default/title/config_over.png
/usr/share/apps/yakuake/default/title/config_up.png
/usr/share/apps/yakuake/default/title/focus_down.png
/usr/share/apps/yakuake/default/title/focus_over.png
/usr/share/apps/yakuake/default/title/focus_up.png
/usr/share/apps/yakuake/default/title/left.png
/usr/share/apps/yakuake/default/title/quit_down.png
/usr/share/apps/yakuake/default/title/quit_over.png
/usr/share/apps/yakuake/default/title/quit_up.png
/usr/share/apps/yakuake/default/title/right.png
/usr/share/apps/yakuake/default/tabs
/usr/share/apps/yakuake/default/tabs/right_corner.png
/usr/share/apps/yakuake/default/tabs/back_image.png
/usr/share/apps/yakuake/default/tabs/left_corner.png
/usr/share/apps/yakuake/default/tabs/minus_down.png
/usr/share/apps/yakuake/default/tabs/minus_over.png
/usr/share/apps/yakuake/default/tabs/minus_up.png
/usr/share/apps/yakuake/default/tabs/plus_down.png
/usr/share/apps/yakuake/default/tabs/plus_over.png
/usr/share/apps/yakuake/default/tabs/plus.png
/usr/share/apps/yakuake/default/tabs/plus_up.png
/usr/share/apps/yakuake/default/tabs/selected_back.png
/usr/share/apps/yakuake/default/tabs/selected_left.png
/usr/share/apps/yakuake/default/tabs/selected_right.png
/usr/share/apps/yakuake/default/tabs/unselected_back.png
/usr/share/apps/yakuake/default/tabs/separator.png
/usr/share/apps/yakuake/default/manual.readme
/usr/share/apps/yakuake/default/title.skin
/usr/share/apps/yakuake/default/install.sh
/usr/share/doc/yakuake
/usr/share/doc/yakuake/copyright
/usr/share/doc/yakuake/README
/usr/share/doc/yakuake/TODO
/usr/share/doc/yakuake/AUTHORS
/usr/share/doc/yakuake/changelog.Debian.gz
/usr/share/doc/yakuake/changelog.gz
/usr/share/icons/hicolor/16x16/apps/yakuake.png
/usr/share/icons/hicolor/32x32/apps/yakuake.png
/usr/share/locale/da/LC_MESSAGES/yakuake.mo
/usr/share/locale/de/LC_MESSAGES/yakuake.mo
/usr/share/locale/it/LC_MESSAGES/yakuake.mo
/usr/share/locale/nl/LC_MESSAGES/yakuake.mo
/usr/share/locale/pt/LC_MESSAGES/yakuake.mo
/usr/share/locale/pt_BR/LC_MESSAGES/yakuake.mo
/usr/share/locale/ru/LC_MESSAGES/yakuake.mo
/usr/share/locale/sv/LC_MESSAGES/yakuake.mo
/usr/share/locale/tr/LC_MESSAGES/yakuake.mo
/usr/share/man/man1/yakuake.1.gz
/usr/share/menu/yakuake

In this list of files I found two things that were useful – First, there is a man page entry available (/usr/share/man/man1/yakuake.1.gz) which meant that I could type “man yakuake” and get some help. Secondly, I saw that there was a file yakuakerc in my home directory. This was the configuration file.

Amongst other things using locate helped me to get a new program running the way I wanted it to. Locate does have a bunch of options including the ability to limit the amount of results, enter a regex, etc.

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: