I\'ve been curious how rem in Linux works and trying to write my own C code that can delete a file but when I searched for the answer, I only got t
rem
C
The traditional way to delete a file is to use the unlink(2) function, which is called from remove(3), if path is a file.