Find the answer to your Linux question:
Results 1 to 5 of 5
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1

    command not found


    Can anyone here tell me why I would be getting this command line output ?

    I am attempting to install a HP C3180 PhotoSmart.

    cascade@~
    :-> sudo /etc/init.d/cups restart (input)
    Password:
    sudo: /etc/init.d/cups: command not found (output)
    cascade@~
    :->

    geovani
    Last edited by oz; 09-23-2008 at 12:42 AM. Reason: removed spam URL

  2. #2
    Linux Engineer khafa's Avatar
    Join Date
    Apr 2008
    Location
    Tokyo, Japan
    Posts
    858
    have you checked if you have cups startup script by running
    Code:
    ls -l /etc/init.d/cups
    Linux and me it's a love story

  3. #3
    Quote Originally Posted by khafa View Post
    have you checked if you have cups startup script by running
    Code:
    ls -l /etc/init.d/cups
    that command wont work...

    ls lists directory contents. You can't ask it to only list a file in a dir....



    To the poster:

    Are you a sudoer? By the way you wrote that sudo command it sounds like you are a Ubuntu user. Its ok most Ubuntu users cant find their way into the Ubuntu forum.

    But assuming that you are using a RedHat/Fedora/CentOS Linux distro and that you are a sudoer that has been granted rights to run init scripts as root...

    Than perhaps you are trying to run the /etc/init.d/cupsd script...

  4. $spacer_open
    $spacer_close
  5. #4
    Linux Engineer khafa's Avatar
    Join Date
    Apr 2008
    Location
    Tokyo, Japan
    Posts
    858
    Quote Originally Posted by r0x0rj00b0x0r View Post
    that command wont work...

    ls lists directory contents. You can't ask it to only list a file in a dir....
    you might want to read some man pages again. ls can be used on directories, files , links and what not.

    To the poster:
    Are you a sudoer? By the way you wrote that sudo command it sounds like you are a Ubuntu user. Its ok most Ubuntu users cant find their way into the Ubuntu forum.

    But assuming that you are using a RedHat/Fedora/CentOS Linux distro and that you are a sudoer that has been granted rights to run init scripts as root...

    Than perhaps you are trying to run the /etc/init.d/cupsd script...
    sudo is not proper to Ubuntu.
    if he is not on the sudolist the system will complain about that fact not throwing a "command not found" error
    Last edited by khafa; 09-23-2008 at 02:13 AM. Reason: redefined quoting boundaries
    Linux and me it's a love story

  6. #5
    Read what I said about sudo.

    Now explain the difference between files, links, FIFOs and sockets.

    Your right about ls though. My mistake... i guess I am just too used to piping ls to grep.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •