/Unix-commands-clones

Scripts in C that works similar to some of the popular basic Unix commands

Primary LanguageC

Unix commands clones

Scripts in C that simulate the work of some Unix commands.

cp :

copy the content from a file into another (and create it if it doesn't exist)

Usage :

cp.exe <source> <destination>

ls :

print the content of a directory with the ability to add an option for 'directories only' or 'files only'

Usage:

ls.exe <dir>[optional] <option>[optional]

options:

  • -r : directories only
  • -f : files only