Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

c program to implement the unix or linux command to
implement
ls -l >output.txt

Answer Posted / rucha

read the files in current directory using opendir and
readdir system calls. readdir will return filenames in the
directory. For each entry returned by readdir system call,
use stat system call to read statistics of the file. Stat
system call will give all the info about the file as that
of ls -l command.

Is This Answer Correct ?    17 Yes 4 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Tell me how to protect a process from others to kill?

784


The very first process created by the kernel in unix is?

801


Explain the difference between command and utility in unix?

889


Name the command which is used to execute system calls from exe?

882


Explain the unmount system calls?

894


What is the difference between command and utility in unix?

872


Explain the mount and unmount system calls?

960


Explain the mount system calls?

884


What is the first process created by the kernel in unix?

814


What is the fork() system call?

885


How to protect a process from others to kill?

894


Explain c program to implement the unix or linux command to implement ls -l >output.txt?

778


What are the possible return values of kill() system call?

799