Skip to content

cvoorhees15/MyCoreUtils

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

MyCoreUtils

An attempt at rewriting some of the basic UNIX core utils to learn different system calls.

Details

  • my-cat: Concatenate and display file contents.
  • my-cp: Copy files from source to destination.
  • my-mkdir: Create directories.
  • my-ls: List directories.

Requirements

  • CMake (version 3.10 or higher)
  • A C compiler (e.g., GCC or Clang)

Build Instructions

  1. Clone or navigate to the project directory.
  2. Create a build directory:
    mkdir build cd build 
  3. Generate build files with CMake:
    cmake .. 
  4. Build the project:
    make 
  5. The executables (my-cat, my-cp, my-mkdir, my-ls) will be located in the bin/ directory.

Usage

  • my-cat <file>: Display the contents of <file>.
  • my-cp <source> <destination>: Copy <source> to <destination>.
  • my-mkdir <directory>: Create the directory <directory>.
  • my-ls <directory>: List directories within directory.

About

An attempt at rewriting some of the basic UNIX core utils to learn different system calls.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors