Can't execute files I can see in the directory

Discussion in 'Linux VPS/Dedicated - cPanel' started by AKDan, May 13, 2014.

  1. AKDan

    AKDan New Member

    Hello,

    I have had similar issues before, but it seems like I am not able to execute some files, even as the root user. i will get an error that the command is not found. For instance, I tried to run sa-update and received:

    -bash: sa-update: command not found

    I am not an expert user by any means, is there some "linux thing" that I am missing that is preventing me from executing these commands?

    Thank you in advance for your help,

    Dan
     
  2. Dan

    Dan Moderator

    Hey there Dan,

    Do you change to the directory where the files are located when you try to run them? Sometimes executables aren't in the path or don't have their paths updated or added, not sure what it is on a Linux machine but you need to either give the path when you try to run it or change to the directory that they're in before running them.

    If that's not it we'll have to keep digging as from what I looked up what you did looks just fine.

    Hope that helps
     
  3. AKDan

    AKDan New Member

    Hi Dan,
    I did change the directory, with those results. I know there are issues sometimes with links or paths, but this is a brand new box. I am just trying to figure out if it's me or if this is something that warrants a support ticket. I appreciate any advice!
    Dan
     
  4. Dan

    Dan Moderator

    Dan,

    From what I read it looks like you did everything correct. Try running it again as ./sa-update once in the directory and see if that works.
     
  5. AKDan

    AKDan New Member

    That did it. Could I bother to have you explain what that did? I am having a hard time googling that one and finding a straight answer.

    Thanks again for the help!
     
  6. Dan

    Dan Moderator

    Hi Dan,

    To be honest I didn't know! I did find this though so we both learn something today! :D
     

Share This Page