- mycp.cc -> replicates cp command
- cpcmd.c -> replicates cp command
- mvcmd.c -> replicates mv command
- catcmd.c -> replicates cat command
- lncmd.c -> replicates ln command
- filetype.cc -> Displays the type of a file
- filepermissions.cc -> Displays the permissions given to a file
- userandgroup.cc -> Tells which user and group a file belongs to
- linkcounter.cc -> Tells the number of links to the file
- quarantinewriter.cc, bytereader.cc, filereader.cc -> All show read and write api functioning
- dircreator.cc -> Create a directory and lists all the files in directory
- lockcheck.cc ->C++ program to check whether the region is locked or not. If the region is locked, print the PID of the print the pid of the process that is locked. If not locked, lock the region with an exclusive lock, read the last 10 bytes and unlock the region.
- FIFOcreate.cc -> Creates FIFO files
- readFIFO.cc -> Reads FIFO files
- writeFIFO.cc -> Writes FIFO files
- symlinkpath.cc -> Creates symbolic link and find the path of original file
- symlinkcontent.c -> Create symbolic link and reads content from the link
- readDir.c -> illustrates readdir api
- makeDir.c -> illustrates mkdir api
- rewindDir.c -> illustrates rewinddir api
- childandparent.c -> shows how to create parent and child processes
- circleandsquare.c -> shows how to achieve different tasks using child and parent processes
- zombie.c -> creates a zombie process
- orphan.c -> illustrates how to create orphan process
- race.c -> illustrates race condition
To run the files use the following in the terminal
gcc filename.c -o filename
./filename [arguments] //For cc files use g++ instead of gcc