Skip to content
This repository was archived by the owner on Sep 15, 2021. It is now read-only.

Latest commit

History

351 Commits

Folders and files

NameName
Last commit message
Last commit date

Repository files navigation

ft_ls

Implementation of MacOS(Darwin) system command - ls, on C. [education project]

Additional info:

This project compiles using clang-compiler.

I also use submodules with SSH-key. For clone this project - be sure you are added SSH-key to your GitHub-profile and use this command:

git clone --recurse-submodules

Install\Compile project makefile rules:

RuleDescription
makeCompile libs and executable
preRe-compile only executable source files
debug[_all]Compile with -g3 only
sanitize[_all]Compile with the same rules as make debug but adding -fsanitize=address
debug_assembly[_all]Compile with the rules as make debug but adding -S -masm=intel
assembly[_all]Compile with default optimization rules but adding -S -masm=intel instead of -flto -fpic
reRe-compile all libs and executable source files
cleanDelete all libs and executable .o files
fcleanSame as make clean but also delete libs .a and executable files
*[_all] means exist two versions of the rule: *rule* and *rule*_all. The second one - for the re-build whole project via depended on make-rule compiler flags, when first one - only for compile changed files with specific flags.

Usage:

usage: ./ft_ls [-GRSTafglrtu1] [file ...]

Flags:

FlagDescription
-1Force output to be one entry per line. This is the default when output is not to a terminal.
-aInclude directory entries whose names begin with a dot '.'.
-fOutput is not sorted. This option implies -a.
-gList in long format as in -l, except that the owner is not printed.
-lList in long format.
-RRecursively list subdirectories encountered.
-rReverse order while sorting.
-SSort files by size.
-TDisplay complete time information for the file.
-tSort by modification time, newest first.
-uUse file's last access time instead of last modification time for sorting (-t) or printing.

About

Implementation of MacOS(Darwin) system command - ls, on C. [education project]

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Used by

Contributors

Languages