View previous topic :: View next topic |
Author |
Message |
psilo357 Tux's lil' helper
Joined: 07 Sep 2008 Posts: 84
|
Posted: Thu Oct 02, 2008 1:23 am Post subject: just some general questions |
|
|
for instance, when I am logged in as a user, and i type
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 |
|
|
ZeuZ_NG Guru
Joined: 10 Sep 2008 Posts: 453 Location: Near /dev/urandom | /dev/null
|
Posted: Thu Oct 02, 2008 3:40 am Post subject: |
|
|
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 |
|
|
nativemad Developer
Joined: 30 Aug 2004 Posts: 918 Location: Switzerland
|
Posted: Thu Oct 02, 2008 9:19 am Post subject: |
|
|
The easiest way to find out where something is (when its in the PATH) would be "which"...
You can use it like
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 |
|
|
Carnildo Guru
Joined: 17 Jun 2004 Posts: 594
|
Posted: Thu Oct 02, 2008 11:04 pm Post subject: |
|
|
nativemad wrote: | The easiest way to find out where something is (when its in the PATH) would be "which"...
You can use it like
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 |
|
|
|
|
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
|
|