Dec 112017
 
Some simple programs that mimic many Unix utilities. C source is included.
File UNIXTOOL.ZIP from The Programmer’s Corner in
Category C Source Code
Some simple programs that mimic many Unix utilities. C source is included.
File Name File Size Zip Size Zip Type
CLSIZE.ASM 915 383 deflated
DF.C 3144 1245 deflated
DF.EXE 20954 14018 deflated
DU.C 5349 1856 deflated
DU.EXE 8486 5395 deflated
LS.C 13679 3819 deflated
LS.EXE 11146 6811 deflated
MAKEFILE 434 186 deflated
MV.C 3811 1228 deflated
MV.EXE 10824 6825 deflated
READ.ME 2542 1162 deflated
RM.C 5105 1498 deflated
RM.EXE 11564 7264 deflated
WILD.C 3651 1366 deflated

Download File UNIXTOOL.ZIP Here

Contents of the READ.ME file


Here are some utilitys, made by a UNIX addict, to imitate closely
the corresponding UNIX commands.
All of you know these commands, so I don't think manual pages
are required.

Some brief explanation:

df:
Usage: df [drive:]
When called without arguments, it will display the space
used / free in Kbytes and in clusters, of all available drives
from C: on upwards.
With an drive identifier as argument, it will display the same
info for the given drive, followed by the default info.

du:
Usage: du -s [directory]
Du will give you the disk usage in Kbytes from the current or
given directory downwards. The -s option only gives a summary.

ls:
Usage: ls -Flrst [file [file ...]] (or directory)
Options: -F : Add '/' for subdirectorys, and * for executable files.
-l : Long listing, status and date/time info is displayed.
-r : Reverse the sort order.
-s : Also display the size in Kbytes before the filename.
-t : Sort by modify time instead of alphabetically

rm:
Usage: rm [-rf] file/directory [file...]
Allows multiple file arguments (not like 'del')
Options: -r : Recursive delete of all files and subdirs.
-f : Delete read-only files also.
Warning: rm -rf \ is FATAL!!

mv:
Usage: mv file file
mv file [file ..] directory
Allows full path names in both source and destination (on same drive).
This command actually moves links, not files.
Existing destination files will be overwritten!

------------------------------------------------------------------------------

Compiling:
The sources supplied are for Microsoft C 4.0, I haven't tried other
compilers, so maybe some others will work too.
Also you need MASM to assemble the clsize.asm file.
The file 'all' is the makefile for Microsoft make. Just type 'make all'.

Status of the software:
These programs are freeware, please distribute freely, and without
additional costs, exept for disks or postage.
But please distribute the complete package only, including this notice.

Disclaimer:
I have used the software for quite a time now, and now harmful bugs
have appeared. But I don't take any responsibility for any harm
caused by the use (or misuse) of these programs.

All programs written by K.van Houten
Delft University of Technology
Delft / The Netherlands
[email protected]



 December 11, 2017  Add comments

 Leave a Reply

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>

(required)

(required)