Operating System-C language – Implement ls function with -lLR
Write a program that behaves exactly like the Unix command ls -lLR. The C program should be submitted as a source file called myls.c, with a Makefile called Makefile_myls that outputs a binary file called myls. You will want to use the stat system call from C and you will need to determine how to recurse into directories. Test your program by running ls itself (you MUST give the full ls path /bin/ls or your .bash_aliases may add some extra command switches you don’t want!):
$ /bin/ls -lLR /var/www > out1.txt