https://github.com/aliscott/simplels
A simple implementation of the ls program created as a programming exercise
https://github.com/aliscott/simplels
Last synced: 3 months ago
JSON representation
A simple implementation of the ls program created as a programming exercise
- Host: GitHub
- URL: https://github.com/aliscott/simplels
- Owner: aliscott
- License: other
- Created: 2010-05-01T18:49:14.000Z (about 15 years ago)
- Default Branch: master
- Last Pushed: 2010-05-01T18:57:48.000Z (about 15 years ago)
- Last Synced: 2025-02-07T12:49:06.450Z (5 months ago)
- Language: C
- Homepage:
- Size: 97.7 KB
- Stars: 1
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README
- License: LICENSE
Awesome Lists containing this project
README
A Makefile is provided to compile the program.
make ls compiles the ls program
make clean removes the compiled programTo run the program use: ./ls () ()
Supports the following flags:
-l produces a detailed listing of the files
-a includes files beginning with ‘.’ (hidden files)
-i prints the index number of the file
-F appends a symbol to the filename to represent the classification of the file:
- / directory
- @ symbolic link
- = socket
- - FIFO
- * executable
-S sorts files by file size
-t sorts files by time last modified
-X sorts files by file extension