operating system laboratory for cse engineering playlist
• Operating System (OS) Lab Programs In Tami...
Exp# 3a ls command
Date:
Aim
To simulate ls command using UNIX system calls.
Algorithm
1. Store path of current working directory using getcwd system call.
2. Scan directory of the stored path using scandir system call and sort the resultant
array of structure.
3. Display dname member for all entries if it is not a hidden file.
4. Stop.