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?
Linux

Avatar of undefined
Last Comment
gheist

8/22/2022 - Mon
ASKER CERTIFIED SOLUTION
SniperCode Sheva

Log in or sign up to see answer
Become an EE member today7-DAY FREE TRIAL
Members can start a 7-Day Free trial then enjoy unlimited access to the platform
Sign up - Free for 7 days
or
Learn why we charge membership fees
We get it - no one likes a content blocker. Take one extra minute and find out why we block content.
Not exactly the question you had in mind?
Sign up for an EE membership and get your own personalized solution. With an EE membership, you can ask unlimited troubleshooting, research, or opinion questions.
ask a question
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
gheist

Log in or sign up to see answer
Become an EE member today7-DAY FREE TRIAL
Members can start a 7-Day Free trial then enjoy unlimited access to the platform
Sign up - Free for 7 days
or
Learn why we charge membership fees
We get it - no one likes a content blocker. Take one extra minute and find out why we block content.
Not exactly the question you had in mind?
Sign up for an EE membership and get your own personalized solution. With an EE membership, you can ask unlimited troubleshooting, research, or opinion questions.
ask a question
gheist

imagine deleting files \* and \-rf .... One who wrote the command did very good...
Your help has saved me hundreds of hours of internet surfing.
fblack61