Questions tagged [unlink]

Refers to removing a file from a filesystem.

This tag is appropriate for questions about deleting a file from a filesystem whether by using a language-specific function such as Perl or PHP's unlink or by making a system call such as Unix's unlink.

Wikipedia has more information about unlink.

526 questions
-7
votes
2 answers

Which one is better option to remove a file from linux system

I want to remove a file present in /tmp, say san.txt I have two approach, Which one is better and why ? approach one: int main(){ int status; pid_t pid = fork(); if(-1 == pid){ printf("fork() failed"); …
Sandeep_black
  • 1,352
  • 17
  • 18
1 2 3
35
36