Professional Web Applications Themes

Newb Questions #2: Environment Variables for CLI? (I get "command not found" errors ) - Linux Setup, Configuration & Administration

Hello Caught Napping wrote: > [newbielinux newbie]$ remove newbster.text > bash: remove: command not found > [newbielinux newbie]$ > > Any idea what the problem is? This happens when I'm logged in as "ROOT" > too. That's probably because the command is called "rm". If you want to use "remove", you have to define an alias. For example by adding alias remove='rm' to your .bashrc (if you use bash). best regards Andreas Janssen -- Andreas Janssen [email]andreas.janssenbigfoot.com[/email] PGP-Key-ID: 0xDC801674 Registered Linux User #267976...

  1. #1

    Default Re: Newb Questions #2: Environment Variables for CLI? (I get "command not found" errors )

    Hello

    Caught Napping wrote:
    > [newbielinux newbie]$ remove newbster.text
    > bash: remove: command not found
    > [newbielinux newbie]$
    >
    > Any idea what the problem is? This happens when I'm logged in as "ROOT"
    > too.
    That's probably because the command is called "rm". If you want to use
    "remove", you have to define an alias. For example by adding
    alias remove='rm'
    to your .bashrc (if you use bash).

    best regards
    Andreas Janssen

    --
    Andreas Janssen
    [email]andreas.janssenbigfoot.com[/email]
    PGP-Key-ID: 0xDC801674
    Registered Linux User #267976
    Andreas Janssen Guest

  2. #2

    Default Re: Newb Questions #2: Environment Variables for CLI? (I get "command not found" errors )

    On Sat, 26 Jul 2003 19:13:49 GMT, Caught Napping wrote:
    > I recently installed Red Hat 9 and when I try to initiate CLI commands I
    > get "command not found" errors like this:
    >
    > [newbielinux newbie]$ remove newbster.text
    First the command is processed by the shell (builtin) or the program
    is executed by the shell if it exists in the directories
    found in the $PATH variable.

    man builtins for the quick list

    To verify the file (remove in this case) exists. Run the command
    locate remove
    if it returns
    /home/your/bin/remove
    we know that it exists.
    Next verify if the file is marked as executable.
    ls -al /home/your/bin/remove
    where you see something like
    -rwxr-xr-x 1 . . .. . . . .
    the x indicate it is executable.

    Now you check if /home/your/bin is in the $PATH variable
    echo $PATH
    to see what you can see.

    Now any time you want to understand a command try
    man remove
    or
    info man

    Bit Twister Guest

Similar Threads

  1. "Weld" command in "Corel Draw"
    By Ayres_Ben@adobeforums.com in forum Adobe Illustrator Windows
    Replies: 2
    Last Post: April 14th, 07:08 PM
  2. "Unknown command found"
    By Intersag webforumsuser@macromedia.com in forum Macromedia Freehand
    Replies: 4
    Last Post: March 4th, 02:29 PM
  3. Replies: 5
    Last Post: August 11th, 07:44 PM
  4. Replies: 0
    Last Post: August 7th, 08:59 PM
  5. executing "DB2 load command" from perl return errors
    By Ian D. Bjorhovde in forum PERL Miscellaneous
    Replies: 5
    Last Post: July 2nd, 02:17 PM

Bookmarks

Posting Permissions

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

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139