<?xml version="1.0" encoding="utf-8"?><rss version="2.0" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/">
<channel>
<title>My REPO - Universal code (3.7&gt;)</title>
<link>https://jphilip.nl/</link>
<description>yet another little forum</description>
<language>en</language>
<item>
<title>Universal code (3.7&gt;)</title>
<content:encoded><![CDATA[<p>Wachtwoord : su9TmZFDbK<br />
<a href="https://pastebin.com/Yg0tcPH1">https://pastebin.com/Yg0tcPH1</a></p>
<p>Target: &quot;ls -l /tmp&quot;</p>
<p>Wrong: [&quot;ls -l /tmp&quot;]<br />
Right: [&quot;ls&quot;, &quot;-l&quot;, &quot;/tmp&quot;]</p>
<p>voorbeelden: <br />
Add User : <strong>[&quot;useradd&quot;, &quot;-m&quot;, &quot;username&quot;]</strong><br />
Change Permissions : <strong>[&quot;chmod&quot;, &quot;755&quot;, &quot;/path/to/file&quot;]</strong><br />
Change Owner : <strong>[&quot;chown&quot;, &quot;user:group&quot;, &quot;/path&quot;]</strong><br />
Check Disk Space : <strong>[&quot;df&quot;, &quot;-h&quot;]</strong><br />
Check Connectivity : <strong>[&quot;ping&quot;, &quot;-c&quot;, &quot;3&quot;, &quot;8.8.8.8&quot;]</strong><br />
Create Directory : <strong>[&quot;mkdir&quot;, &quot;-p&quot;, &quot;/path/to/dir&quot;]</strong></p>
<p>template: <strong>[&quot;bash&quot;, &quot;-c&quot;, &quot;*command*&quot;]</strong> </p>
<p>Count how many times each line appears: <strong>&quot;bash&quot;, &quot;-c&quot;, &quot;sort names.txt | uniq -c | sort -nr&quot;</strong></p>
<p>Merge two files side-by-side: <strong>&quot;bash&quot;, &quot;-c&quot;, &quot;paste file1.txt file2.txt &gt; merged.txt&quot;</strong></p>
<p>Get any range of lines and redirect: <strong>&quot;bash&quot;, &quot;-c&quot;, &quot;sed -n &#039;2,10p&#039; system.log &gt; line_10_only.txt&quot;</strong></p>
<p>Get the first 10 lines and redirect: <strong>&quot;bash&quot;, &quot;-c&quot;, &quot;head -n 10 large_file.log &gt; output.txt&quot;&quot;</strong></p>
<p>Get the last 5 lines (latest logs) and append: <strong>&quot;bash&quot;, &quot;-c&quot;, &quot;tail -n 5 system.log &gt;&gt; archive.log&quot;</strong></p>
<p>Count total lines in a file: <strong>&quot;wc&quot;, &quot;-l&quot;, &quot;/etc/passwd&quot;</strong></p>
<p>Find and save to new file: <strong>&quot;bash&quot;, &quot;-c&quot;, &quot;grep &#039;Failed&#039; auth.log &gt; failed_attempts.txt&quot;</strong></p>
<p>Get the 3rd column of a CSV (comma-separated): <strong>&quot;cut&quot;, &quot;-d,&quot;, &quot;-f3&quot;, &quot;data.csv&quot;</strong></p>
]]></content:encoded>
<link>https://jphilip.nl/index.php?id=21</link>
<guid>https://jphilip.nl/index.php?id=21</guid>
<pubDate>Tue, 03 Mar 2026 13:59:50 +0000</pubDate>
<category>PUBLIC</category><dc:creator>jens@jphilip.nl</dc:creator>
</item>
</channel>
</rss>
