LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - General (https://www.linuxquestions.org/questions/linux-general-1/)
-   -   Commands (https://www.linuxquestions.org/questions/linux-general-1/commands-7442/)

Susan 10-10-2001 06:47 PM

Commands
 
I am very new to Linux, so please understand my questions may very well seem like 'no brainers.' I have installed RH7. I have messed around a bit with bash and gnome. I don't understand why I can't allows get a command to work. Right now, when in root (in shell), when I type linuxconf nothing happens. Also, when I type printtool nothing happens. I actually get a message stating bash command not found. When in gnome, I can get the printer tool to work, but when I click on linux config, nothing happens. When I click on ximagescan nothing happens there as well. Can someone please tell me what I am doing wrong?
Thank you.
Susan

TimBeR 10-10-2001 07:44 PM

well unfortunately you need to edit your /etc/profiles file and add the paths to the file I will go look at mine in alittle wile and try to post a second reply to this with and example of what mine looks like once you add the paths to this file you log out and relog in and all commands should work fine

TimBeR 10-10-2001 08:22 PM

ok Susan here is what your paths should look like in your /etc/profile


PATH="$PATH:/usr/X11R6/bin:/sbin:/usr/sbin:/usr/bin:/usr/local/bin:/usr/local/sbin"



make sure it is all in one line

GonzoJohn 10-10-2001 08:52 PM

Linuxconf isn't installed by default on RH 7.1. Download and install the latest RPM from the Linuxconf homepage.

http://www.solucorp.qc.ca/linuxconf/

da Perp 10-11-2001 02:34 AM

Also, certain commands are only allowed to be run as root.
When issueing these commands as a standard user, bash outputs that the file is not found. You dont have to log in as root to get stuff done, just open up a terminal and type su root
and enter password when prompted. You will then be able to issue all root commands, but only in that terminal.

DavidPhillips 10-11-2001 02:40 AM

In addition to adding to your path....

slocate is a handy tool.

It is probably on your system already.

to activate it's database type updatedb in a terminal

it will create a database so when you need to find something it will show you where it is.


slocate printtool
/usr/share/printconf/util/import_printtool_queues.py
/usr/bin/printtool


if things are not in your path you can find them.

if you pipe it thru more you can look thru pages of things returned by searches


slocate sendmail | more
/var/lock/subsys/sendmail
/var/run/sendmail.pid
/etc/sysconfig/sendmail
/etc/rc.d/init.d/sendmail
/etc/rc.d/rc0.d/K30sendmail
/etc/rc.d/rc1.d/K30sendmail
/etc/rc.d/rc2.d/S80sendmail
/etc/rc.d/rc3.d/S80sendmail
/etc/rc.d/rc4.d/S80sendmail
/etc/rc.d/rc5.d/S80sendmail
/etc/rc.d/rc6.d/K30sendmail
/etc/mail/sendmail.mc
/etc/sendmail.cf
/usr/share/doc/HTML/en/kpilot/conduit-popmail-sendmail.png
/usr/share/doc/db3-devel-3.1.17/ref/sendmail
/usr/share/doc/db3-devel-3.1.17/ref/sendmail/intro.html
/usr/share/doc/sendmail
/usr/share/doc/sendmail/FAQ
/usr/share/doc/sendmail/KNOWNBUGS
/usr/share/doc/sendmail/LICENSE
/usr/share/doc/sendmail/README
/usr/share/doc/sendmail/README.cf
/usr/share/doc/sendmail/README.smrsh
/usr/share/doc/sendmail/RELEASE_NOTES
/usr/share/doc/sendmail/doc
/usr/share/doc/sendmail/doc/op
/usr/share/doc/sendmail/doc/op/Makefile
/usr/share/doc/sendmail/doc/op/op.me
/usr/share/doc/sendmail/doc/op/op.ps
/usr/share/man/man8/sendmail.8.gz
/usr/share/emacs/20.7/lisp/mail/sendmail.elc
/usr/share/emacs/20.7/lisp/mail/sendmail.el
/usr/share/sendmail-cf
/usr/share/sendmail-cf/README
/usr/share/sendmail-cf/cf
/usr/share/sendmail-cf/cf/Build
/usr/share/sendmail-cf/cf/Makefile
/usr/share/sendmail-cf/cf/chez.cs.mc
/usr/share/sendmail-cf/cf/clientproto.mc
/usr/share/sendmail-cf/cf/cs-hpux10.mc
--More--


All times are GMT -5. The time now is 06:24 PM.