/ls

Implement UNIX Shell command ls using UNIX System calls

Primary LanguageC

Compile : run make

Execute : ./a.out [OPTION]... [FILE]...

Options implemented:

  • a do not ignore entries starting with .
  • d list directory entries instead of contents.
  • l use a long listing format
  • R list subdirectories recursively
  • S sort by file size
  • t sort by modification time

Features implemented :

  • Coloring
  • Output formatting
  • Displaying output columnwise
  • Number of columns displayed depends on the terminal size
  • Sticky bits , special files like FIFO , character device , socket , block device.