Removing Files
In this lesson, we learn how removal of files takes place.
At this point, we know how to create files and access them, either sequentially or not. But how do you delete files? If you’ve used UNIX, you probably think you know: just run the program rm
. But what system call does rm
use to remove a file?
Let’s use our old friend strace
again to find out. Here we remove that pesky file foo
:
Get hands-on with 1400+ tech skills courses.