Linux


7
Dec 09

How to find specific file on ubuntu ?

If you want to search for specific files on ubuntu linux then some of your options are as follows:

1. Find command, using this command you can find specific file on ubuntu.

2. Use Places | Computer (or Places | Home or any other location) and then use the ’search’ button (its a looking-glass icon).

3. Use following commands on terminal for creating index and then search file from it.
* updatedb
* locate

The first command create a index, the second use the index to search.

4. Use Beagle or Tracker. (If you’re using gnome then “do” will help)


20
Oct 09

How to see where package is installed in ubuntu?

On linux we use application installer like synaptic package manager or adept etc. We get no idea where in directories those applications are installed. You can check this using dpkg utility.

If you want to check where all the files of the package are located then use following command:

dpkg -L

For example, if package files for gparted to be found out then command will be :

dpkg –L gparted

This will list the files/folders where gparted and it’s dependent configuration files are listed.


19
Oct 09

How to list the disk space usage on ubuntu?

If you’re using ubuntu then you can use the GUI utility “Disk usage checker”. Or there is another way to check the disk space usage on ubuntu. You can use the df command on terminal. Whenever you want to list the disk space usage on ubuntu then type :

df -TH

This will list the disk space usage.


18
Oct 09

How to find the path of running applications in linux ?

If you’ve multiple running applications installed on system you might wonder sometimes that which version is running. To find out the path of the application, you can use “which” command then followed by the executable you would have run.

For example :

which svn

This will display the directory of the running version of svn. (Tested this on ubuntu, fedora and suse).


14
Oct 09

How to display count of files in current directory ?

If you work with files and folders in Linux then sometimes there is need to display count of files in current directory. You can do so easily with simple command in terminal.

If you’re using ubuntu then open up the directory and go to the specific directory using terminal and type the following command.

ls -1 | wc –l

What this command does is it -1 force to show each file in new line and –l is parameter of the word count.