Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add tree command to user space #55

Open
suhani-arora opened this issue Sep 9, 2024 · 1 comment
Open

Add tree command to user space #55

suhani-arora opened this issue Sep 9, 2024 · 1 comment

Comments

@suhani-arora
Copy link

Tree command: displays the directory structure of the file system in a hierarchical format.

Plan:
Recursively list directories and subdirectories in an indented tree format, showing all files and folders.
It also summarizes the total number of directories and files at the end.

Add flags:
‘-L ’ to limit the depth of the tree
‘-F ’ to filter for specific file types like .txt, .s, .c, .h
‘-S’ to show the size of each file
‘-D ’ to filter files by the created or modified date

Files to be added/modified:
Create user/tree.c, including the main implementation of tree command with additional utilities.
Modify user/Makefile to include tree.c
Modify kernel/syscall.h to ensure any new system calls are defined here
Modify kernel/syscall.c to add entries to the system call table (if any new syscalls are required for retrieving file information)
Modify user/user.h to add new function prototypes for syscalls/utility functions used by tree

Team: Chandana Srinivas, Suhani Arora, Riya Mathur

@malensek
Copy link
Contributor

👍 I like it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants