Help in writing custom Linux commands

Discussion in 'C' started by manofwords, Jan 28, 2011.

  1. manofwords

    manofwords New Member

    Joined:
    Jan 28, 2011
    Messages:
    1
    Likes Received:
    0
    Trophy Points:
    0
    Hi,
    I want to know about how to write the following custom commands using c code: It is also worthy to be noticed that there must not be any use of system(), fork(), exec() commands:

    1. cp copy a file
    2. mv move a file
    3. rm remove a file
    4. cd ability to change directory
    5. rmdir for removing directory

    So let me know how to write code in c language to emulate the above commands.

    I would be grateful for fast and reasonable help to get started on this work.

    Regards
    Murtaza
     

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice