Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems. 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

I am trying to stop a syslog using chkconfig but bash says that command is not available. But when I do

man chkconfig

it opens man page.

This is the command i'm trying to execute.

**chkconfig syslog off && /etc/init.d/syslog stop**

Screen Cap

share|improve this question
Which distribition are you using? – Krzysztof Adamski Oct 13 '12 at 9:11
Oh sorry I forgot 686 i686 i386 GNU/Linux Version 5.5 .It is installed on virtual Box and Host OS ubuntu 12.04 – OmiPenguin Oct 13 '12 at 9:15
@UmairMustafa Please add such information to your question instead by editing it. That way people will spot it easier and it will not disappear among comments. – N.N. Oct 13 '12 at 9:19
output of echo $PATH – warl0ck Oct 13 '12 at 9:35
@warl0ck /usr/kerberos/bin:/usr/local/bin:/usr/bin:/bin:/usr/X11R6/bin:/home/Umair/bin – OmiPenguin Oct 13 '12 at 9:39
up vote 4 down vote accepted

You don't have chkconfig in your $PATH,

If you get your root prompt through su, try su - instead.

But anyway, export PATH=$PATH:/sbin:/usr/sbin will fix this issue

share|improve this answer
Thanku dear u have been very helpful :-) – OmiPenguin Oct 13 '12 at 10:12

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.