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
Tell me how to protect a process from others to kill?
The very first process created by the kernel in unix is?
Explain the difference between command and utility in unix?
Name the command which is used to execute system calls from exe?
Explain the unmount system calls?
What is the difference between command and utility in unix?
Explain the mount and unmount system calls?
Explain the mount system calls?
What is the first process created by the kernel in unix?
What is the fork() system call?
How to protect a process from others to kill?
Explain c program to implement the unix or linux command to implement ls -l >output.txt?
What are the possible return values of kill() system call?