Editing linux source code
I want to modify the way linux commands work. Meaning i want to  execute own custome logic when a  file is copied or deleted from my hard disk.For example my say  custom logic may write some log that a new file is being created and then copy the file .OR when somone tries to delete some file i just want to put a log without deleting the actual file.
This is just for example.

How can i overide default behavior of my linux of?I think i can download linux src code and modify it.If am correct then from where i should download the code?
Also i want to install the linux in a vmware .

How can i go about setting up dev env for editing linux src code?Is there any ide?or else i should use only gcc?Can i build linux in a linux running as a vm?and then run my new linux as vm?



Editing linux source code
===

I want to modify the way linux commands work. Meaning i want to  execute own custome logic when a  file is copied or deleted from my hard disk.For example my say  custom logic may write some log that a new file is being created and then copy the file .OR when somone tries to delete some file i just want to put a log without deleting the actual file.
This is just for example.

How can i overide default behavior of my linux of?I think i can download linux src code and modify it.If am correct then from where i should download the code?
Also i want to install the linux in a vmware .

How can i go about setting up dev env for editing linux src code?Is there any ide?or else i should use only gcc?Can i build linux in a linux running as a vm?and then run my new linux as vm?


