Linux - SoftwareThis forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
I just need to develop a new command for deleting a file in LINUX Character mode , same like as windows instead of deleting the file , it should move to a folder name trash .
I just started reading the source code of coreutil , need to write a code for the new command "delete".
Am a MS student with BITS , want to do my dessertation in this , can anyone help me out .
Hi all thanks , but i need to study the code for commands rm & mv , so that i can try to develop a new command "delete" ,as while deleting a file a zipped copy of the file is moving to a marked location.
Can any one get me the actual code for the commands...
You are really going to have a hard time to do this if you can't even figure that out...
Code:
$ tar xf /var/portage/distfiles/coreutils-7.5.tar.gz
$ cd coreutils-7.5/
$ ls src/rm*
src/rm.c src/rmdir.c
$ ls src/mv*
src/mv.c
The names of the files are evident enough. If you truly have looked into the source of coreutils (I think you didn't) it's very hard to miss these, the names of the files are self-explanatory.
Thanks , From coreutil/src/rm & coreutils/src/mv i have started learning the codes for rm & mv .
hope after studying i can edit the code in such a way once giving the rm command the marking file will dump to a destination folder.
Please let us know apart from this coreutil/src/rm & coreutils/src/mv what are all the supporting files that i should check and edit while applying this to kernel.
If any one aware of these script ,please let us know how to edit this rm script what are the supporting scripts for this.....
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.