Operating System-C language – Implement ls function with -lLR Write a program that behaves exactly like the Unix command ls -lLR . The C program…