Find the answer to your Linux question:
Results 1 to 2 of 2
Hi,can anyone send me source code for implementing linux commands like ls,cat,cp,pwd,rm in c language.urgent!!!...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Just Joined!
    Join Date
    Sep 2007
    Posts
    2

    Exclamation linux commasnds in c


    Hi,can anyone send me source code for implementing linux commands like ls,cat,cp,pwd,rm in c language.urgent!!!

  2. #2
    Linux Engineer Thrillhouse's Avatar
    Join Date
    Jun 2006
    Location
    Arlington, VA, USA
    Posts
    1,377
    Try using the system() function. Link. I think you have to #include stdlib.h.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •