<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
  <channel>
    <title>Beginner on Linux Café</title>
    <link>https://mrtomlinux.org/tags/beginner/</link>
    <description>Recent content in Beginner on Linux Café</description>
    <generator>Hugo</generator>
    <language>en</language>
    <lastBuildDate>Sat, 14 Nov 2026 08:47:45 +0200</lastBuildDate>
    <atom:link href="https://mrtomlinux.org/tags/beginner/index.xml" rel="self" type="application/rss+xml" />
    <item>
      <title>How to Use `find` and `xargs` Together to Delete Old Log Files Without Accidentally Removing Your Home Folder</title>
      <link>https://mrtomlinux.org/post/2026-11-14-how-to-use-find-and-xargs-together-to-delete-/</link>
      <pubDate>Sat, 14 Nov 2026 08:47:45 +0200</pubDate>
      <guid>https://mrtomlinux.org/post/2026-11-14-how-to-use-find-and-xargs-together-to-delete-/</guid>
      <description>&lt;h2 id=&#34;the-findxargs-combo-is-a-classic-for-cleaning-up-old-logs-but-it-can-be-a-doubleedged-sword-if-youre-not-careful&#34;&gt;The “find + xargs” combo is a classic for cleaning up old logs, but it can be a double‑edged sword if you’re not careful.&lt;/h2&gt;&#xA;&lt;p&gt;Below is a step‑by‑step guide that shows how to target only the log files you want to delete, keep your home folder safe, and understand the trade‑offs of the different options you’ll see.&lt;/p&gt;&#xA;&lt;hr&gt;&#xA;&lt;h3 id=&#34;why-find-and-xargs-instead-of-rm--r&#34;&gt;Why &lt;code&gt;find&lt;/code&gt; and &lt;code&gt;xargs&lt;/code&gt; instead of &lt;code&gt;rm -r&lt;/code&gt;?&lt;/h3&gt;&#xA;&lt;p&gt;&lt;code&gt;find&lt;/code&gt; is the Swiss‑army knife of file searching: you can filter by name, age, size, permissions, and more.&lt;br&gt;&#xA;&lt;code&gt;xargs&lt;/code&gt; takes the list that &lt;code&gt;find&lt;/code&gt; spits out and feeds it to another command, usually &lt;code&gt;rm&lt;/code&gt;.&lt;br&gt;&#xA;The pair is efficient because it processes files in batches, sidestepping the “argument list too long” error that can bite you if you try to delete thousands of files with a single &lt;code&gt;rm&lt;/code&gt;.&lt;/p&gt;</description>
    </item>
  </channel>
</rss>
