LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old Today, 11:24 PM   #1
exerceo
Member
 
Registered: Oct 2022
Posts: 68

Rep: Reputation: 18
Question When would one use unlink instead of rm?


[Log in to get rid of this advertisement]
The "unlink" command can delete up to one file at a time, whereas the "rm" file can delete multiple files at once.

As far as I know, the "unlink" command uses fewer syscalls so it is better for performance. Also, "unlink" doesn't refuse to delete read-only files (chmod -w readonlyfile) whereas "rm" asks first.

Are there any other reasons I am not aware of?
 
  


Reply

Tags
commands



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Kinds of links in Linux and use of unlink FilipN Linux - Newbie 2 04-18-2015 09:31 AM
when to use unlink port moonmoth Linux - Networking 1 07-20-2005 06:32 AM
cannot unlink cannot remove Rob Ellsworth Linux - General 1 10-01-2002 12:27 PM
cannot unlink simon Linux - General 1 07-31-2001 08:25 PM
How to unlink a directory? _TK_ Linux - General 4 04-25-2001 09:32 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 11:28 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration