An attempt at rewriting some of the basic UNIX core utils to learn different system calls.
- my-cat: Concatenate and display file contents.
- my-cp: Copy files from source to destination.
- my-mkdir: Create directories.
- my-ls: List directories.
- CMake (version 3.10 or higher)
- A C compiler (e.g., GCC or Clang)
- Clone or navigate to the project directory.
- Create a build directory:
mkdir build cd build - Generate build files with CMake:
cmake .. - Build the project:
make - The executables (
my-cat,my-cp,my-mkdir,my-ls) will be located in thebin/directory.
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 withindirectory.