Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
just some general questions
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo
View previous topic :: View next topic  
Author Message
psilo357
Tux's lil' helper
Tux's lil' helper


Joined: 07 Sep 2008
Posts: 84

PostPosted: Thu Oct 02, 2008 1:23 am    Post subject: just some general questions Reply with quote

for instance, when I am logged in as a user, and i type

Code:

hellanzb.py


where exactly is that python script located? I mean, it somehow knows to run it, so where is it. Also, when you 'install' programs, where do they install to. I am very proficient in windows (sadly) and am quickly picking up linux, so in windows, everything installs to c:/program files/, but what is that in gentoo linux? Some guides on this stuff would be great. Really, im just trying to install hellahella web interface for hellanzb, but have to put scripts at certain places, and need to know where. Also, how do i search my file system, i know you can use 'grep' but don't know what ways to use it, as i have seen it many different ways in guides?

thanks
Back to top
View user's profile Send private message
ZeuZ_NG
Guru
Guru


Joined: 10 Sep 2008
Posts: 453
Location: Near /dev/urandom | /dev/null

PostPosted: Thu Oct 02, 2008 3:40 am    Post subject: Reply with quote

The python file: May be in the path, or have a symlink in /usr/bin (this last place, is also where software gets installed, if the software requires some "extra" rights for access, it goes insted to /sbin or /bin/sbin depending on the distro)
Also, what DLL/OCX will be like here in Linux are the libs that are located mainly in /lib
To search in your file system, you can either use find, locate, slocate or another ton of tools to choose.
To view the manual of each, you just need to type "man command" where command gets replaced by the software you want the manual from.

If any further doubts appear, don't hesitate to post them.
_________________
| Intel Core i7 920. | Intel DX58SO Extreme. |
| 8gb DDR3 1666mHz | 1TB 7200 RPM WD HDD.|
Unix´s guru view of sex:
unzip ; strip ; touch ; grep ; finger ; \
mount ; fsck ; more ; yes ; umount ; sleep.
Back to top
View user's profile Send private message
nativemad
Developer
Developer


Joined: 30 Aug 2004
Posts: 918
Location: Switzerland

PostPosted: Thu Oct 02, 2008 9:19 am    Post subject: Reply with quote

The easiest way to find out where something is (when its in the PATH) would be "which"...
You can use it like
Code:
which  hellanzb.py
and it will show you the path to it...
You could also do it like this:
Code:
cat `which hellanzb.py`


Cheers
_________________
Power to the people!
Back to top
View user's profile Send private message
Carnildo
Guru
Guru


Joined: 17 Jun 2004
Posts: 594

PostPosted: Thu Oct 02, 2008 11:04 pm    Post subject: Reply with quote

nativemad wrote:
The easiest way to find out where something is (when its in the PATH) would be "which"...
You can use it like
Code:
which  hellanzb.py
and it will show you the path to it...
You could also do it like this:
Code:
cat `which hellanzb.py`


Cheers


The backtick-quoted form is useful when you want to take some action on the result. For example, if you want to know which ebuild installed the "ping" command, you'd do:
Code:
equery belongs `which ping`
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum