Adding new function in Linux

Now we try to implement our well known ‘dus’ alias as a function in our terminal.
It is quite easy to do this. You just have to follow the instructions below:

1. Download this file.

Here you can see the source code of this file:

2. Switch to root user.

3. Copy ‘dus’ file to ‘/bin’.

4. Set umask.

That’s it! Done!

Here you can see the prove that it works:

I tested this procedure with a 3.2.0-4-amd64 Debian system and it works perfectly.
If you are faced any issues or do you have questions, feel free to write an Email or to comment this post.

Cheers,
Miau

 

Leave a Reply

Your email address will not be published. Required fields are marked *