Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

By doing

yum install vlc

I have installed the vlc player on my system. Now I want to know where the binary of vlc was installed. So what is the default path for installation in Fedora Linux?

share|improve this question

migrated from stackoverflow.com Oct 12 '11 at 13:33

This question came from our site for professional and enthusiast programmers.

up vote 5 down vote accepted

I suppose

which vlc

will do the trick if the path the file was installed is on the System Path.

share|improve this answer
    
hey thanks i got it – Jeegar Patel Oct 12 '11 at 8:57

This may be of help: Unix Filesystem Hierarchy Standard

Most binaries are installed in /usr/bin, most libs in /usr/lib and most headers - in /usr/include.

share|improve this answer
    
+1 for addinationla info – Jeegar Patel Oct 12 '11 at 9:02

Since you have installed vlc from a rpm package, you can use the rpm tool to query the database with information about all the installed packages:

$ rpm -ql vlc-core | grep '/vlc$'
/usr/bin/vlc
/usr/lib/vlc
/usr/share/vlc
$

although for this example, its a bit tricky since you have to know that the rpm package containing the binary it called vlc-core.

share|improve this answer

For bash there is a builtin command called type which will tell you what a command/alias really is:

$ type type
type is a shell builtin
$ alias t=type
$ type t
t is aliased to `type'
$ type vlc
vlc is /bin/vlc
$
share|improve this answer

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .