<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
  <channel>
    <title>Cpu on </title>
    <link>https://wassimaouadi.com/tags/cpu/</link>
    <description>Recent content in Cpu on </description>
    <generator>Hugo</generator>
    <language>en</language>
    <lastBuildDate>Mon, 08 Jun 2026 21:31:13 +0200</lastBuildDate>
    <atom:link href="https://wassimaouadi.com/tags/cpu/index.xml" rel="self" type="application/rss+xml" />
    <item>
      <title>Miscellaneous Operations in Linux</title>
      <link>https://wassimaouadi.com/technotes/linuxoperations/</link>
      <pubDate>Mon, 08 Jun 2026 21:31:13 +0200</pubDate>
      <guid>https://wassimaouadi.com/technotes/linuxoperations/</guid>
      <description>&lt;h1 id=&#34;recursive-lookup&#34;&gt;recursive lookup&lt;/h1&gt;&#xA;&lt;p&gt;To lookup a string or file name recursively in every file, directory and subdirectory starting at a current position, use &lt;code&gt;grep -r&lt;/code&gt;. In the example, the command found instances of &lt;em&gt;journald.conf&lt;/em&gt; in the file named &lt;em&gt;a&lt;/em&gt; and in the &lt;em&gt;.bash_history&lt;/em&gt; file:&lt;/p&gt;&#xA;&lt;pre tabindex=&#34;0&#34;&gt;&lt;code&gt;user1@rhel10-vm2:~$ pwd&#xA;/home/user1&#xA;user1@rhel10-vm2:~$ ls -l&#xA;total 152&#xA;-rw-r--r--. 1 user1 user1   2470 Aug 21 19:40 a&#xA;-rw-r--r--. 1 user1 user1 150459 Aug 19 18:13 q&#xA;drwxr-xr-x. 2 user1 user1      6 Aug 21 19:49 test&#xA;user1@rhel10-vm2:~$ &#xA;&lt;/code&gt;&lt;/pre&gt;&lt;pre tabindex=&#34;0&#34;&gt;&lt;code&gt;user1@rhel10-vm2:~$ grep -r journald.conf&#xA;.bash_history:ls /etc/systemd/journald.conf&#xA;.bash_history:find /etc -mindepth 1 -name &amp;#34;journald.conf&amp;#34; -type f 2&amp;gt;/dev/null&#xA;.bash_history:find /  -mindepth 1 -name &amp;#34;journald.conf&amp;#34; -type f 2&amp;gt;/dev/null&#xA;.bash_history:ls /usr/lib/systemd/journald.conf&#xA;.bash_history:cat /usr/lib/systemd/journald.conf&#xA;.bash_history:find / -mindepth 1 -name &amp;#34;journald.conf&amp;#34; -type f 2&amp;gt;/dev/null&#xA;.bash_history:find / -maxdepth 4 -name &amp;#34;journald.conf&amp;#34; -type f 2&amp;gt;/dev/null&#xA;.bash_history:cat /usr/lib/systemd/journald.conf&#xA;.bash_history:systemd-analyze cat-config systemd/journald.conf&#xA;.bash_history:cat /run/lib/systemd/journald.conf&#xA;.bash_history:cat /usr/lib/systemd/journald.conf&#xA;a:# journald.conf/usr/lib/systemd/journald.conf&#xA;a:# the /etc/systemd/journald.conf.d/ directory. The latter is generally&#xA;a:# Use &amp;#39;systemd-analyze cat-config systemd/journald.conf&amp;#39; to display the full config.&#xA;a:# See journald.conf(5) for details.&#xA;user1@rhel10-vm2:~$ &#xA;&lt;/code&gt;&lt;/pre&gt;&lt;p&gt;To return only the first occurrence of the files which contain the search string, instead of returning the lines where the string appears, use &lt;code&gt;grep -l&lt;/code&gt;:&lt;/p&gt;</description>
    </item>
  </channel>
</rss>
