Find the answer to your Linux question:
Results 1 to 2 of 2
i recive this error : % % chmod +x script_name % script_name script_name: Command not found. % what to do ? ubuntu 7.10 / i have install tcsh & csh ...
  1. #1
    Just Joined!
    Join Date
    Aug 2007
    Posts
    2

    script in terminal ( chmod +x script_name)

    i recive this error :

    %
    % chmod +x script_name
    % script_name
    script_name: Command not found.
    %
    what to do ?



    ubuntu 7.10 / i have install tcsh & csh
    nabel058@gmail.com

  2. #2
    Linux Engineer hazel's Avatar
    Join Date
    May 2004
    Location
    Harrow, UK
    Posts
    955
    In Linux, unlike dos, your current working directory is not automatically on the default command path. This is a security feature; it means that if you unpack a piece of malicious software from an email and it has the same name as a system command, it won't run in preference to the real thing.

    To run a command that is in your home directory, you must give its full pathname to show Linux where to look for it. You can use "." as an abbreviation for the current working directory, e.g. ./script_name.
    "I'm just a little old lady; don't try to dazzle me with jargon!"

Posting Permissions

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