Comments on: How to Create Custom Commands in Linux https://www.rosehosting.com/blog/create-custom-commands-in-linux/ Premium Linux Tutorials Since 2001 Wed, 05 Apr 2023 09:12:47 +0000 hourly 1 https://wordpress.org/?v=6.5.4 By: admin https://www.rosehosting.com/blog/create-custom-commands-in-linux/#comment-47090 Tue, 03 Jul 2018 11:53:32 +0000 https://www.rosehosting.com/blog/?p=27307#comment-47090 In reply to David.

Adding the file to an existing $PATH is the recommended method, as mentioned in the same article.

]]>
By: David https://www.rosehosting.com/blog/create-custom-commands-in-linux/#comment-47086 Mon, 02 Jul 2018 20:47:44 +0000 https://www.rosehosting.com/blog/?p=27307#comment-47086 Having the current working directory (“.”) in your PATH is a security vulnerability. It’s better to put the script in $HOME/bin, which as shown in the picture, was already in your PATH, so you didn’t even need to edit it. Of course, the particular example in this article would be better implemented as a function than a script anyway.

]]>