Link to home
Start Free TrialLog in
Avatar of Taras Shumylo
Taras Shumylo

asked on

Explain the command ls -1tr | head -n -10 | xargs -d '\n' rm -f --

The command is from the post on http://superuser.com/questions/268344/how-do-i-delete-all-but-10-newest-files-in-linux
ls -1tr | head -n -10 | xargs -d '\n' rm -f --

Open in new window

What does the last
--

Open in new window

stands for in this command?
ASKER CERTIFIED SOLUTION
Avatar of SniperCode Sheva
SniperCode Sheva

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of Taras Shumylo
Taras Shumylo

ASKER

I open man page for xargs and can not find anything about
--

Open in new window

Why it's not on man page?
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
imagine deleting files \* and \-rf .... One who wrote the command did very good...