Create Custom Command in Linux
Submitted by leopathu on Thu, 11/10/2016 - 21:29
Linux Operating System allows custom commands, So anyone can write their own commands for their needs. That’s the power of Linux. I am going to show you how to create custom commands ( now - to shows current time) in Linux System,
Create Bash Script :
The First thing is to create bash script in /usr/bin/ Directory which will run your commands,
$ cd /usr/bin $ sudo vim now
Write the following code in the file,