Skip to content

kfalia-f/ft_ls

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ls

Custom realization of UNIX utility ls (for MacOS)

Compile

make

Usage

./ft_ls [-flags] [files or/and dirs]

Flags

-G -- Enable colorized output
-R -- Recursively list subdirectories encountered
-U -- Use time of file creation, instead of last modification
      for sorting (-t) or long output (-l)
-a -- Include directory entries whose names begin with a dot (.)
-d -- Directories are listed as plain files
      (not searched recursively)
-f -- Output is not sorted.  This option turns on the -a option
-g -- This option is only available for compatibility with POSIX;
      it is used to display the group name in the long (-l) format
      output (the owner name is suppressed)
-l -- List in long format
-r -- Reverse the order of the sort to get reverse lexicographical
      order or the oldest entries first (or largest files last,
      if combined with sort by size)
-t -- Sort by time modified (most recently modified first) before
      sorting the operands by lexicographical order
-u -- Use time of last access, instead of last modification of the 
      file for sorting (-t) or long printing (-l)
-1 -- Force output to be one entry per line.  This is the default 
      when output is not to a terminal

General impact by author kfalia-f R, l; by koparker (llama-0) G, U, a, d, f, g, r, t, u, 1

Architecture is based on linked list data structure, sorting - on merge sort algorithm.

About

School 21 project in UNIX learning curve

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 2

  •  
  •