Skip to content
This repository has been archived by the owner on Nov 23, 2020. It is now read-only.
/ ls Public archive

implementation of Linux ls command

Notifications You must be signed in to change notification settings

holmanb/ls

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

25 Commits
 
 
 
 
 
 
 
 

Repository files navigation

ls

List information about the files. By default, the current directory is listed.

INSTALLATION

This program should be straightforward to run and work with once dependencies are installed.

$ git clone https://github.com/holmanbph/ls.git

$ cd ls

$ gcc ls.c -o ls -O2 

The program should now be ready to run!

$ ./ls

SYNOPSIS

ls [OPTIONS]... [FILE]...

Runtime Options

OPTIONS

-a 		 			prints all files, including files that start with . 

-l 					long format

-R					recursively print all subdirectories  

-h	  				help instructions

EXAMPLES

./ls -R /

./ls -l ../../

DIAGNOSTICS

Exit values:

0 - Success

1 - Failure due to inablity to find a file's information or file / directory not found

2 - Invalid command line option

AUTHOR

Written by Brett Holman in Spring 2018. This project can be found 
on GitHub at this url: https://github.com/holmanbph/ls.git 

About

implementation of Linux ls command

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published