Creating a Linux command
This article is valid for UNIX systems as well.
What is a command?
Many persons are discouraged to start Linux due to the complex syntax uses(mostly known as Linux command), but what is really a Linux command?
It is a binary file that is launched by typing its name and is intended to achieve a specific action.
Where are these binaries?
The basic commands of Linux (man, cd, ls, pwd, cp, mv, mount, umount ... And so on) are initially found in the /bin directory of your system. The same goes for UNIX. However, files created by the user are placed in /usr/local for reasons of ergonomics.
Using a script
Probably a bit lost at the start in this new environment, here is a little script that you can edit as you wish to understand the commands with the text editor:
http://www.adminscripteditor.com/editor/download.asp
To run the script must be an administrator, therefore root.
Once on the main menu is with the keypad that is moving through the menus by entering the number of the selected menu!
Conclusion
To create Linux commands or Unix, just write the code of this command, to compile and place the binary file in/bin directory of your system.
Remember to make it executable with chmod a + x file.