ls
is a command to list computer files and directories in Unix and Unix-like operating systems
Flags:
-R
Recursively list subdirectories encountered.-a
Include directory entries whose names begin with a dot (.).-l
List files in the long format, as:-rwxr-xr-x 1 nik staff 53944 Jun 5 09:24 ft_ls
-r
Reverse the order of the sort.-t
Sort by descending time modified (most recently modified first).- output is colored by default
- Download the repository. Run:
git clone https://github.com/nikGrape/ft_ls.git
- Compile the project. Run:
make all
- Use. Run:
./ft_ls -l
usge: ft_ls [-Rlart] [file ...]
![usage gif](https://private-user-images.githubusercontent.com/48928594/298402137-038ebca1-6271-460d-b3a5-495747e4458c.gif?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjU4MjY2OTgsIm5iZiI6MTcyNTgyNjM5OCwicGF0aCI6Ii80ODkyODU5NC8yOTg0MDIxMzctMDM4ZWJjYTEtNjI3MS00NjBkLWIzYTUtNDk1NzQ3ZTQ0NThjLmdpZj9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNDA5MDglMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjQwOTA4VDIwMTMxOFomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPTI0NTIxNGRkOGE0ODMwZmI0MTI4ZDNhYjIwZGE4YWI0N2M3NTkxYTRhZWFmZTE3ZGNjNzRhMmM1NTEzMGZhNjYmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0JmFjdG9yX2lkPTAma2V5X2lkPTAmcmVwb19pZD0wIn0.hHzEKNyBGez-khJBSsHETYRG3V1YNb-eh6GG50YQa3Q)