|a 7c24c18aef Add hostname.c||2 months ago|
|include||3 years ago|
|.gitignore||3 years ago|
|LICENSE||3 years ago|
|Makefile||3 years ago|
|README.md||1 year ago|
|basename.c||3 months ago|
|cat.c||3 months ago|
|dirname.c||3 months ago|
|false.c||3 months ago|
|getloadavg.c||3 months ago|
|head.c||3 months ago|
|hostname.c||2 months ago|
|lnum.c||3 years ago|
|ls.c||3 years ago|
|tac.c||3 months ago|
|tail.c||3 months ago|
|true.c||3 months ago|
|uname.c||3 months ago|
|uptime.c||3 months ago|
|yes.c||3 months ago|
These intend to follow a derivative of the original UNIX philosophy, with a heavy emphasis on simplicity and straightforwardness.
You'll need a C compiler with support for the C99 or C11 standard; and the make program. If you're on OS X, BSD, or Linux (or most POSIX systems) you probably already have these, so don't worry yourself.
make utility(obviously replace 'utility' with
If you want to be able to run the commands from anywhere, they'll need to be in
PATH environment variable. Thing is, you probably already have a program
ls, etc. in your
PATH. So, in order to override those
conflicting programs, and use the
iu coreutils, place the folder that you
compiled the programs in to the beginning of your
PATH, not the end.
cat - sequentially read specified files and output the contents (to stdout by
lnum - prepend line numbers to the input. can be used as a filter (e.g.
cat file.txt | lnum), can be applied directly to files (
stdin by default, when run with no arguments.
ls - lists files in the directories specified.
-a option includes hidden
The code base is simple and easy to understand.
*.c- the actual programs for iu-coreutils
include/- headers for functionality that is shared throught the programs. This is told to the compiler, so you only need to use
file_name.his in the include folder, rather than
Makefile- the compilation automation system. Run
make nameto compile the program
.gitignore- a list of files for git to ignore (i.e the ones that don't need version control)
This is the [ 'philosophy' / 'guidelines' / 'rules' / 'regulations' /
'suggestions' ] that
iu programs should follow. It is a work in progress.