<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Debian Archives - ITEC4B</title>
	<atom:link href="https://itec4b.com/category/linux/debian/feed/" rel="self" type="application/rss+xml" />
	<link>https://itec4b.com/category/linux/debian/</link>
	<description>Information Technology Expert Consulting</description>
	<lastBuildDate>Sat, 25 Feb 2023 17:36:23 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=6.1.3</generator>
	<item>
		<title>Linux: ASCII random string generator</title>
		<link>https://itec4b.com/linux-ascii-random-string-generator/</link>
		
		<dc:creator><![CDATA[author]]></dc:creator>
		<pubDate>Thu, 23 Feb 2023 16:20:49 +0000</pubDate>
				<category><![CDATA[Debian]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Shell Scripting]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[password]]></category>
		<guid isPermaLink="false">https://itec4b.com/?p=1567</guid>

					<description><![CDATA[https://github.com/ITEC4B/ASCII-random-string-generator]]></description>
										<content:encoded><![CDATA[
<pre class="wp-block-code"><code><strong><span style="text-decoration: underline;">Generate a random ASCII string (40 printable characters without empty spaces)</span></strong>

$ cat /dev/urandom | tr -dc '&#91;:graph:]' | head -c 40
OR
$ cat /dev/urandom | tr -dc '&#91;:alnum:]&#91;:punct:]' | head -c 40

&#91;:lower:]   All lower case letters     abcdefghijklmnopqrstuvwxyz
&#91;:upper:]   All upper case letters     ABCDEFGHIJKLMNOPQRSTUVWXYZ
&#91;:alpha:]   All letters
&#91;:digit:]   All digits                 0123456789
&#91;:alnum:]   All letters and digits
&#91;:punct:]   All punctuation characters !"#$%&amp;'()*+,-./:;&lt;=>?@&#91;\]^_`{|}~
&#91;:graph:]   All printable characters, not including space
&#91;:print:]   All printable characters, including space</code></pre>



<p><a href="https://github.com/ITEC4B/ASCII-random-string-generator">https://github.com/ITEC4B/ASCII-random-string-generator</a></p>
]]></content:encoded>
					
		
		
			</item>
		<item>
		<title>Debian: C/C++ Development Environment</title>
		<link>https://itec4b.com/debian-c-c-development-environment/</link>
		
		<dc:creator><![CDATA[author]]></dc:creator>
		<pubDate>Wed, 01 Feb 2023 17:59:40 +0000</pubDate>
				<category><![CDATA[Debian]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Programming]]></category>
		<category><![CDATA[C]]></category>
		<category><![CDATA[C++]]></category>
		<category><![CDATA[programming]]></category>
		<guid isPermaLink="false">https://itec4b.com/?p=919</guid>

					<description><![CDATA[The GNU C Library (glibc) Reference ManualThe GNU C++ LibraryGCC online documentationGNU Make Manual ISO C programming language standardISO C++ Standards Package: build-essentialThis package is normally required for building Debian packages, it is OK to install it since it includes all what is necessary to get a C/C++ Development Environment. Package: gcc-docDocumentation for the GNU &#8230; <p class="link-more"><a href="https://itec4b.com/debian-c-c-development-environment/" class="more-link">Read more<span class="screen-reader-text"> "Debian: C/C++ Development Environment"</span></a></p>]]></description>
										<content:encoded><![CDATA[
<p><a href="https://www.gnu.org/software/libc/manual">The GNU C Library (glibc) Reference Manual</a><br><a href="https://gcc.gnu.org/onlinedocs/libstdc++">The GNU C++ Library</a><br><a href="https://gcc.gnu.org/onlinedocs">GCC online documentation</a><br><a href="https://www.gnu.org/software/make/manual">GNU Make Manual</a><br><br><a href="https://www.open-std.org/JTC1/SC22/WG14/www/projects#9899">ISO C programming language standard</a><br><a href="https://www.open-std.org/JTC1/SC22/WG21/docs/standards">ISO C++ Standards</a></p>



<p><br><span style="text-decoration: underline;">Package: <strong>build-essential</strong></span><br>This package is normally required for building Debian packages, it is OK to install it since it includes all what is necessary to get a C/C++ Development Environment.</p>



<pre class="wp-block-code"><code># apt install build-essential</code></pre>



<p><span style="text-decoration: underline;">Package: <strong>gcc-doc</strong></span><br>Documentation for the GNU compilers (gcc, gobjc, g++)</p>



<pre class="wp-block-code"><code># apt install gcc-doc</code></pre>



<div style="height:100px" aria-hidden="true" class="wp-block-spacer"></div>



<p><span style="text-decoration: underline;">Virtual Package: <strong>libc-dev</strong></span><br>Package: <strong>libc<span style="text-decoration: underline;">&lt;version&gt;</span>-dev</strong><br>GNU C Library: Development Libraries and Header Files<br>Contains the symlinks, headers, and object files needed to compile and link programs which use the standard C library<br><br><span style="text-decoration: underline;">Package: <strong>libstdc++-&lt;version&gt;-dev</strong></span><br>GNU Standard C++ Library v3 (development files)<br>This package contains the headers and static library files necessary for building C++ programs which use libstdc++.<br><br><span style="text-decoration: underline;">Package: <strong>libstdc++-&lt;version&gt;-doc</strong></span><br>GNU Standard C++ Library v3 (documentation files)<br>This package contains documentation files for the GNU stdc++ library.<br><br><span style="text-decoration: underline;">Package: <strong>gcc</strong></span><br>GNU C compiler<br>This is the GNU C compiler, a fairly portable optimizing compiler for C.<br><br><span style="text-decoration: underline;">Package: <strong>g++</strong></span><br>GNU C++ compiler<br>This is the GNU C++ compiler, a fairly portable optimizing compiler for C++.</p>



<p><span style="text-decoration: underline;">Package: <strong>make</strong></span><br>Utility for directing compilation<br>GNU make is a utility which controls the generation of executables and other target files of a program from the program&#8217;s source files.<br>It determines automatically which pieces of a large program need to be (re)created, and issues the commands to (re)create them.<br>make can be used to organize any task in which targets (files) are to be automatically updated based on input files whenever the corresponding input is newer. It is not limited to building computer programs. Indeed, make is a general purpose dependency solver.<br><br><span style="text-decoration: underline;">Package: <strong>manpages-dev</strong></span><br>Manual pages about using GNU/Linux for development<br>These man pages describe the Linux programming interface, including these two sections:<br>2 = Linux system calls.<br>3 = Library calls (note that a more comprehensive source of information may be found in the glibc-doc and glibc-doc-reference packages).<br><br><span style="text-decoration: underline;">Package: <strong>ccache</strong></span><br>Compiler cache for fast recompilation of C/C++ code<br>It speeds up recompilation by caching previous compilations and detecting when the same compilation is being done again.</p>
]]></content:encoded>
					
		
		
			</item>
		<item>
		<title>Debian: List/Check Installed Packages</title>
		<link>https://itec4b.com/debian-list-check-installed-packages/</link>
		
		<dc:creator><![CDATA[author]]></dc:creator>
		<pubDate>Wed, 01 Feb 2023 16:43:02 +0000</pubDate>
				<category><![CDATA[Debian]]></category>
		<category><![CDATA[Shell Scripting]]></category>
		<category><![CDATA[debian]]></category>
		<category><![CDATA[packages]]></category>
		<category><![CDATA[shell script]]></category>
		<guid isPermaLink="false">https://itec4b.com/?p=916</guid>

					<description><![CDATA[List All Installed Packages Look For Specific Package(s)]]></description>
										<content:encoded><![CDATA[
<h3>List All Installed Packages</h3>



<pre class="wp-block-code"><code>$ LC_ALL=C dpkg-query -f '${Package} ${Version} ${Status}\n' -W | awk '{print $1" "$2" "$4" "$5}' | column -t</code></pre>



<h3>Look For Specific Package(s)</h3>



<pre class="wp-block-code"><code>Multiple package names and glob patterns works

$ LC_ALL=C dpkg-query -f '${Package} ${Version} ${Status}\n' -W &lt;pkg_name&gt; | awk '{print $1" "$2" "$4" "$5}' | column -t</code></pre>
]]></content:encoded>
					
		
		
			</item>
		<item>
		<title>Debian Shell: List Files</title>
		<link>https://itec4b.com/debian-shell-list-files/</link>
		
		<dc:creator><![CDATA[author]]></dc:creator>
		<pubDate>Thu, 26 Jan 2023 20:29:25 +0000</pubDate>
				<category><![CDATA[Shell Scripting]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[shell script]]></category>
		<guid isPermaLink="false">https://itec4b.com/?p=365</guid>

					<description><![CDATA[IMPORTANT: You should NOT use empty spaces within files or directories names You can use a program to rename directories and files without empty spaces Recursive List/Delete Empty Directories List/Delete Empty Files List Top 100 biggest files from DIR Get directory size (content) List (sub)directories size + mtime from DIR, sort by size List (sub)directories &#8230; <p class="link-more"><a href="https://itec4b.com/debian-shell-list-files/" class="more-link">Read more<span class="screen-reader-text"> "Debian Shell: List Files"</span></a></p>]]></description>
										<content:encoded><![CDATA[
<p class="has-vivid-red-color has-text-color"><strong><span style="text-decoration: underline;">IMPORTANT</span>: You should NOT use empty spaces within files or directories names</strong></p>



<p>You can use a <a href="https://github.com/ITEC4B/rename-dir-files">program to rename directories and files</a> without empty spaces</p>



<pre class="wp-block-code"><code><strong><span style="text-decoration: underline;">List size files from DIR</span></strong>
<strong>OUTPUT: &lt;logical_size_bytes&gt; &lt;physical_size_bytes&gt; &lt;filepath&gt;</strong>

$ LC_ALL=C find DIR -type f -exec stat -c '%s %b %B %n' {} + 2&gt;/dev/null | awk '{ fname=""; for (i=4; i &lt;= NF; i++) fname=fname $i " "; print $1" "($2*$3)" "fname }'


<strong><span style="text-decoration: underline;">List files from DIR with physical size &gt;= nMB</span></strong>
<strong>OUTPUT: &lt;logical_size_bytes&gt; &lt;physical_size_bytes&gt; &lt;filepath&gt;</strong>

$ LC_ALL=C find DIR -type f -exec stat -c '%s %b %B %n' {} + 2&gt;/dev/null | awk '{ fname=""; for (i=4; i &lt;= NF; i++) fname=fname $i " "; print $1" "($2*$3)" "fname }' | awk '$2&gt;=nMB*(1024^2) {print $0}'</code></pre>



<pre class="wp-block-code has-black-color has-text-color"><code><strong><span style="text-decoration: underline;">List <strong>ALL files from</strong> DIR, No Sort, date (mtime)</span></strong>
<strong>STD_CMD_LS_ALL</strong>
<strong>OUTPUT:</strong>
<strong>&lt;mode?rwx&gt; &lt;links&gt; &lt;uname&gt; &lt;gname&gt; &lt;size_bytes&gt; &lt;mdate YYYY-MM-DD&gt; &lt;mtime hh:mm:ss&gt; &lt;filename&gt;</strong>
$ LC_ALL=C ls -al --time-style="+%F %T" DIR 2&gt;/dev/null | sed '/^total /d' | awk '($8 != "." &amp;&amp; $8 != "..") {print $0}'


<strong><span style="text-decoration: underline;">List ALL files from DIR, No Sort<strong>, date (mtime)</strong></span>
SPE_CMD_LS
OUTPUT: &lt;mdate YYYY-MM-DD&gt; &lt;mtime hh:mm:ss&gt; &lt;mode?rwx&gt; &lt;uname&gt; &lt;gname&gt; &lt;size_bytes&gt; &lt;filename&gt;</strong>
$ STD_CMD_LS_ALL | awk '{ fname=""; for (i=8; i &lt;= NF; i++) fname=fname $i " "; print $6" "$7" "$1" "$3" "$4" "$5" "fname }'


<strong><span style="text-decoration: underline;">List ALL files from DIR, No Sort<strong>, date (mtime)</strong></span>
SPE_CMD_STAT
OUTPUT: &lt;mdate YYYY-MM-DD&gt; &lt;mtime hh:mm:ss&gt; &lt;mode?rwx&gt; &lt;uname&gt; &lt;gname&gt; &lt;size_bytes&gt; &lt;filepath&gt;</strong>
$ LC_ALL=C stat -c '%y %A %U %G %s %n' DIR/{*,.*} 2&gt;/dev/null | sed -e 's;&#91;.]&#91;0-9]\{9\} +&#91;0-9]\{4\};;g'</code></pre>



<pre class="wp-block-code"><code><strong><span style="text-decoration: underline;">List regular files/dirs/symlinks from DIR, No Sort, date (mtime)</span>
STD_CMD_LS_FDL
OUTPUT: &lt;mode?rwx&gt; &lt;links&gt; &lt;uname&gt; &lt;gname&gt; &lt;size_bytes&gt; &lt;mdate YYYY-MM-DD&gt; &lt;mtime hh:mm:ss&gt; &lt;filepath&gt;</strong>
$ STD_CMD_LS_ALL | grep '^-\|^d\|^l'


<strong><span style="text-decoration: underline;">List regular files/dirs/symlinks from DIR, No Sort, date (mtime)</span>
SPE_CMD_LS_FDL
OUTPUT: &lt;mdate YYYY-MM-DD&gt; &lt;mtime hh:mm:ss&gt; &lt;mode?rwx&gt; &lt;uname&gt; &lt;gname&gt; &lt;size_bytes&gt; &lt;filename&gt;</strong>
$ STD_CMD_LS_FDL | awk '{ fname=""; for (i=8; i &lt;= NF; i++) fname=fname $i " "; print $6" "$7" "$1" "$3" "$4" "$5" "fname }'</code></pre>



<pre class="wp-block-code"><code><strong><span style="text-decoration: underline;"><strong>List <strong><strong><strong>regular files</strong></strong>/dirs/symlinks from</strong> DIR</strong>, Sort: ascending date (mtime)</span></strong>
<strong>CMD_LS_FDL_MTIME_SORT_ASC</strong>
<strong><span style="text-decoration: underline;">OUTPUT:</span> &lt;mdate YYYY-MM-DD&gt; &lt;mtime hh:mm:ss&gt; <strong>&lt;<strong>mode?rwx</strong>&gt;</strong> &lt;uname&gt; <strong><strong>&lt;gname&gt;</strong></strong></strong> <strong>&lt;size_bytes&gt; &lt;filename&gt;</strong>

$ SPE_CMD_LS_FDL | sort</code></pre>



<pre class="wp-block-code"><code><strong><span style="text-decoration: underline;">List regular files/dirs/symlinks from DIR, Sort: descending date (mtime)</span></strong>
<strong><strong>CMD_LS_FDL_MTIME_SORT</strong>_DESC</strong>
<strong><span style="text-decoration: underline;">OUTPUT</span>: &lt;mdate YYYY-MM-DD&gt; &lt;mtime hh:mm:ss&gt; <strong>&lt;<strong>mode?rwx</strong>&gt;</strong> &lt;uname&gt; <strong><strong><strong>&lt;gname&gt;</strong></strong></strong> &lt;size_bytes&gt; &lt;filename&gt;</strong>

$ SPE_CMD_LS_FDL | sort -r</code></pre>



<pre class="wp-block-code"><code><strong><span style="text-decoration: underline;"><strong>List regular files/dirs/symlinks from DIR</strong>, Latest and Oldest (mtime)</span></strong>
<strong><span style="text-decoration: underline;">OUTPUT</span>: &lt;mdate YYYY-MM-DD&gt; &lt;mtime hh:mm:ss&gt; <strong>&lt;<strong>mode?rwx</strong>&gt;</strong> &lt;uname&gt; <strong><strong><strong><strong>&lt;gname&gt;</strong></strong></strong> </strong>&lt;size_bytes&gt; &lt;filename&gt;</strong>

$ CMD_LS_FDL_MTIME_SORT_DESC | sed -n '1p;$p'</code></pre>



<pre class="wp-block-code"><code><strong><span style="text-decoration: underline;"><strong><strong>List regular files/dirs/symlinks from DIR</strong></strong>, Sort: ascending filename</span></strong>
<strong><span style="text-decoration: underline;">OUTPUT</span>: &lt;mdate YYYY-MM-DD&gt; &lt;mtime hh:mm:ss&gt; <strong>&lt;<strong>mode?rwx</strong>&gt;</strong> &lt;uname&gt;<strong> <strong><strong><strong><strong>&lt;gname</strong></strong></strong></strong></strong>&gt; &lt;size_bytes&gt; &lt;filename&gt;</strong>

$ SPE_CMD_LS_FDL | sort -k7</code></pre>



<pre class="wp-block-code"><code><strong><span style="text-decoration: underline;"><strong><strong><strong>List regular files/dirs/symlinks from DIR</strong></strong>,</strong> Sort: descending size</span></strong>
<strong><span style="text-decoration: underline;">OUTPUT</span>: &lt;mdate YYYY-MM-DD&gt; &lt;mtime hh:mm:ss&gt; <strong>&lt;<strong>mode?rwx</strong>&gt;</strong> &lt;uname&gt; <strong><strong><strong><strong><strong><strong>&lt;gname</strong></strong></strong></strong></strong>&gt; </strong>&lt;size_bytes&gt; &lt;filename&gt;</strong>

$ SPE_CMD_LS_FDL | sort -k6n,6nr</code></pre>



<h2>Recursive</h2>



<pre class="wp-block-code"><code><strong><span style="text-decoration: underline;">List ALL (not hidden) files from DIR, Recursive, No Sort, date (mtime)</span></strong>
<strong>Standard command ls -R without headers</strong>
<strong>OUTPUT: &lt;mode?rwx&gt; &lt;links&gt; &lt;uname&gt; &lt;gname&gt; &lt;size_bytes&gt; &lt;mdate YYYY-MM-DD&gt; &lt;mtime hh:mm:ss&gt; &lt;filepath&gt;
</strong>
$ LC_ALL=C ls -lR --time-style='+%F %T' DIR 2&gt;/dev/null | sed '/:$/,/^total &#91;0-9]\{1,\}/d' | tr -s '\n'


<strong><span style="text-decoration: underline;">List ALL (hidden) files from DIR, Recursive, No Sort, date (mtime)</span></strong>
<strong>Standard command ls -R without headers</strong>
<strong>OUTPUT: &lt;mode?rwx&gt; &lt;links&gt; &lt;uname&gt; &lt;gname&gt; &lt;size_bytes&gt; &lt;mdate YYYY-MM-DD&gt; &lt;mtime hh:mm:ss&gt; &lt;filepath&gt;
</strong>
$ LC_ALL=C ls -alR --time-style='+%F %T' DIR 2&gt;/dev/null | sed '/:$/,/^total &#91;0-9]\{1,\}/d' | tr -s '\n' | awk '($8 != "." &amp;&amp; $8 != "..") {print $0}'</code></pre>



<pre class="wp-block-code"><code><strong><span style="text-decoration: underline;"><strong><strong>List regular files/dirs/symlinks from DIR</strong></strong>, Recursive, No Sort, date (mtime)</span></strong>

<strong>CMD_FIND_FDL_RECURSIVE_STAT_MTIME</strong>
<strong><span style="text-decoration: underline;">OUTPUT</span>: &lt;mdate YYYY-MM-DD&gt; &lt;mtime hh:mm:ss&gt; <strong>&lt;<strong>mode?rwx</strong>&gt;</strong> &lt;uname&gt; <strong>&lt;gname&gt; </strong>&lt;size_bytes&gt; &lt;filepath&gt;</strong>

$ LC_ALL=C find DIR \( -type f -o -type d -o -type l \) -exec stat -c '%y %A %U %G %s %n' {} + 2&gt;/dev/null | sed 's;&#91;.]&#91;0-9]\{9\} &#91;+-]&#91;0-9]\{4\};;'


<strong>CMD_FIND_FDL_RECURSIVE_LS_MTIME</strong>
<strong>OUTPUT: &lt;mdate YYYY-MM-DD&gt; &lt;mtime hh:mm:ss&gt; <strong>&lt;<strong>mode?rwx</strong>&gt;</strong> &lt;uname&gt;<strong> <strong>&lt;gname&gt;</strong></strong> &lt;size_bytes&gt; &lt;filepath&gt;</strong>

$ LC_ALL=C find DIR \( -type f -o -type d -o -type l \) -exec ls -ld --time-style="+%F %T" {} + 2&gt;/dev/null | awk '{ fname=""; for (i=8; i &lt;= NF; i++) fname=fname $i " "; print $6" "$7" "$1" "$3" "$4" "$5" "fname }'


<strong>CMD_LS_FDL_RECURSIVE_MTIME</strong>
<strong>OUTPUT: &lt;mdate YYYY-MM-DD&gt; &lt;mtime hh:mm:ss&gt; <strong>&lt;<strong>mode?rwx</strong>&gt;</strong> &lt;uname&gt; <strong><strong><strong>&lt;gname&gt;</strong></strong> </strong>&lt;size_bytes&gt; &lt;filename&gt;</strong>

$ LC_ALL=C ls -alR --time-style="+%F %T" DIR 2&gt;/dev/null | grep '^-\|^d\|^l'  | awk '($8 != "." &amp;&amp; $8 != "..") {print $0}' | awk '{ fname=""; for (i=8; i &lt;= NF; i++) fname=fname $i " "; print $6" "$7" "$1" "$3" "$4" "$5" "fname }'
</code></pre>



<pre class="wp-block-code"><code><strong><span style="text-decoration: underline;"><strong><strong><strong><strong><strong><strong>List regular files/dirs/symlinks from DIR</strong></strong></strong></strong></strong></strong>, Recursive, Sort: descending date (mtime)</span></strong>

<strong>OUTPUT: &lt;mdate YYYY-MM-DD&gt; &lt;mtime hh:mm:ss&gt; <strong>&lt;<strong>mode?rwx</strong>&gt;</strong> &lt;uname&gt;<strong> <strong><strong><strong>&lt;gname&gt;</strong></strong></strong></strong> &lt;size_bytes&gt; &lt;filepath&gt;</strong>
<strong>CMD_FIND_FDL_RECURSIVE_STAT_MTIME_SORT_DESC</strong>

$ CMD_FIND_FDL_RECURSIVE_STAT_MTIME | sort -r


<strong>OUTPUT: &lt;mdate YYYY-MM-DD&gt; &lt;mtime hh:mm:ss&gt; <strong>&lt;<strong>mode?rwx</strong>&gt;</strong> &lt;uname&gt; <strong><strong><strong><strong><strong>&lt;gname&gt;</strong></strong></strong></strong></strong> &lt;size_bytes&gt; &lt;filepath&gt;</strong>
<strong>CMD_FIND_FDL_RECURSIVE_LS_MTIME_SORT_DESC</strong>

$ CMD_FIND_FDL_RECURSIVE_LS_MTIME | sort -r


<strong>OUTPUT: &lt;mdate YYYY-MM-DD&gt; &lt;mtime hh:mm:ss&gt; <strong>&lt;<strong>mode?rwx</strong>&gt;</strong> &lt;uname&gt; <strong><strong><strong><strong><strong>&lt;gname&gt;</strong></strong></strong></strong></strong></strong> <strong>&lt;size_bytes&gt; &lt;filename&gt;</strong>
<strong>CMD_LS_FDL_RECURSIVE_MTIME_SORT_DESC</strong>

$ CMD_LS_FDL_RECURSIVE_MTIME | sort -r</code></pre>



<pre class="wp-block-code"><code><strong><span style="text-decoration: underline;"><strong><strong><strong>List regular files/dirs/symlinks from DIR</strong></strong></strong>, Recursive, Latest and Oldest (mtime)</span></strong>

<strong>OUTPUT: &lt;mdate YYYY-MM-DD&gt; &lt;mtime hh:mm:ss&gt; <strong>&lt;<strong>mode?rwx</strong>&gt;</strong> &lt;uname&gt;<strong> <strong><strong><strong><strong><strong>&lt;gname&gt;</strong></strong></strong></strong></strong></strong> &lt;size_bytes&gt; &lt;filepath&gt;</strong>

$ CMD_FIND_FDL_RECURSIVE_STAT_MTIME_SORT_DESC | sed -n '1p;$p'
$ CMD_FIND_FDL_RECURSIVE_LS_MTIME_SORT_DESC | sed -n '1p;$p'


<strong>OUTPUT: &lt;mdate YYYY-MM-DD&gt; &lt;mtime hh:mm:ss&gt; <strong>&lt;<strong>mode?rwx</strong>&gt;</strong> &lt;uname&gt;<strong><strong> <strong><strong><strong><strong><strong>&lt;gname&gt;</strong></strong></strong></strong></strong></strong> </strong>&lt;size_bytes&gt; &lt;filename&gt;</strong>

$ CMD_LS_FDL_RECURSIVE_MTIME_SORT_DESC | sed -n '1p;$p'</code></pre>



<pre class="wp-block-code"><code><strong><span style="text-decoration: underline;"><strong><strong><strong><strong>List regular files/dirs/symlinks from DIR</strong></strong></strong></strong>, Recursive, Sort: ascending filepath</span></strong>

<strong>OUTPUT: &lt;mdate YYYY-MM-DD&gt; &lt;mtime hh:mm:ss&gt; <strong>&lt;<strong>mode?rwx</strong>&gt;</strong> &lt;uname&gt;<strong><strong> <strong><strong><strong><strong><strong>&lt;gname&gt;</strong></strong></strong></strong></strong></strong></strong> &lt;size_bytes&gt; &lt;filepath&gt;</strong>

$ CMD_FIND_FDL_RECURSIVE_STAT_MTIME | sort -k7
$ CMD_FIND_FDL_RECURSIVE_LS_MTIME | sort -k7


<strong>OUTPUT: &lt;mdate YYYY-MM-DD&gt; &lt;mtime hh:mm:ss&gt; &lt;mode?rwx&gt; &lt;uname&gt; &lt;gname&gt; &lt;size_bytes&gt; &lt;filename&gt;
</strong>
$ CMD_LS_FDL_RECURSIVE_MTIME | sort -k7</code></pre>



<pre class="wp-block-code"><code><strong><span style="text-decoration: underline;"><strong><strong><strong><strong><strong>List regular files/dirs/symlinks from DIR</strong></strong></strong></strong>,</strong> Recursive, Sort: descending size</span></strong>

<strong><strong>OUTPUT: &lt;mdate YYYY-MM-DD&gt; &lt;mtime hh:mm:ss&gt; <strong>&lt;<strong>mode?rwx</strong>&gt;</strong> &lt;uname&gt;<strong><strong> <strong><strong><strong><strong><strong>&lt;gname&gt;</strong></strong></strong></strong></strong></strong></strong> &lt;size_bytes&gt; &lt;filepath&gt;</strong></strong>

$ CMD_FIND_FDL_RECURSIVE_STAT_MTIME | sort -k6n,6nr
$ CMD_FIND_FDL_RECURSIVE_LS_MTIME | sort -k6n,6nr


<strong><strong>OUTPUT: &lt;mdate YYYY-MM-DD&gt; &lt;mtime hh:mm:ss&gt; &lt;mode?rwx&gt; &lt;uname&gt; &lt;gname&gt; &lt;size_bytes&gt; &lt;filename&gt;</strong></strong>
$ CMD_LS_FDL_RECURSIVE_MTIME | sort -k6n,6nr</code></pre>



<h2>List/Delete Empty Directories</h2>



<pre class="wp-block-code"><code><strong><span style="text-decoration: underline;">List Empty Directories</span></strong>
$ find DIR -type d -empty 2&gt;/dev/null

<strong><span style="text-decoration: underline;">Delete Empty Directories (verbose)</span></strong>
$ find DIR -type d -empty -exec rmdir -v {} +</code></pre>



<h2>List/Delete Empty Files</h2>



<pre class="wp-block-code"><code><strong><span style="text-decoration: underline;">List Empty Files</span></strong>
$ find DIR -type f -empty 2&gt;/dev/null

<strong><span style="text-decoration: underline;">Delete Empty Files (verbose)</span></strong>
$ find DIR -type f -empty -exec rm -v {} +</code></pre>



<h2>List Top 100 biggest files from DIR</h2>



<pre class="wp-block-code"><code><strong><span style="text-decoration: underline;">By default 'du' command print the real disk usage in blocks of 1024 bytes (number of used blocks) rather than the logical file' size (raw data in bytes). If you want to show the logical size use -b, --bytes equivalent to '--apparent-size --block-size=1' option</span></strong>.

$ man du
Display  values  are  in  units of the first available SIZE from --block-size, and the DU_BLOCK_SIZE, BLOCK_SIZE and BLOCKSIZE environment variables. <strong><span style="text-decoration: underline;">Otherwise, units default to 1024 bytes (or 512 if POSIXLY_CORRECT is set)</span></strong>.


<span style="text-decoration: underline;"><strong>Real disk usage in blocks</strong></span><strong><span style="text-decoration: underline;"> (default: 1block=1024bytes)</span></strong>
$ LC_ALL=C find DIR -type f -exec du {} + 2&gt;/dev/null | sort -nr | head -n100

<span style="text-decoration: underline;"><strong>Logical file's size in bytes</strong></span>
$ LC_ALL=C find DIR -type f -exec du -b {} + 2&gt;/dev/null | sort -nr | head -n100
$ LC_ALL=C find DIR -type f -exec du -b -h {} + 2&gt;/dev/null | sort -hr | head -n100

<strong><span style="text-decoration: underline;">List Top 100 biggest files in blocks</span></strong>
$ LC_ALL=C find / -type f -exec du {} + 2&gt;/dev/null | sort -nr | head -n100</code></pre>



<h2>Get directory size (content)</h2>



<pre class="wp-block-code"><code><span style="text-decoration: underline;"><strong>Real disk usage in blocks</strong></span><strong><span style="text-decoration: underline;"> (default: 1block=1024bytes), hidden subdirectories excluded</span></strong>
$ du -s --exclude=.* DIR 2&gt;/dev/null

<strong><span style="text-decoration: underline;">Logical directory's size in bytes (approximation), hidden subdirectories excluded</span></strong>
$ du -sb --exclude=.* DIR 2&gt;/dev/nul<strong><span style="text-decoration: underline;"></span></strong></code></pre>



<h2>List (sub)directories size + mtime from DIR, sort by size</h2>



<pre class="wp-block-code"><code><span style="text-decoration: underline;"><strong>Limiting Directory Tree Depth: 2</strong></span>

<strong><span style="text-decoration: underline;">Real disk usage in blocks (default: 1block=1024bytes), hidden subdirectories excluded</span></strong>
$ du -d2 --time --time-style='+%F %T' --exclude=.* DIR 2&gt;/dev/null | sort -nr

<strong><span style="text-decoration: underline;">Logical file's size in bytes (approximation), hidden subdirectories excluded</span></strong>
$ du  -d2 -b   --time --time-style='+%F %T' --exclude=.* DIR 2&gt;/dev/null | sort -nr
$ du  -d2 -bh --time --time-style='+%F %T' --exclude=.* DIR 2&gt;/dev/null | sort -hr</code></pre>



<h2>List (sub)directories size + mtime from DIR, sort by name</h2>



<pre class="wp-block-code"><code><strong><span style="text-decoration: underline;">Limiting Directory Tree Depth: 2</span></strong>

<strong><span style="text-decoration: underline;">Real disk usage in blocks (default: 1block=1024bytes), hidden subdirectories excluded</span></strong>
$ du -d2 --time --time-style='+%F %T' --exclude=.* DIR 2&gt;/dev/null | sort -k4

<strong><span style="text-decoration: underline;">Logical file's size in bytes (approximation), hidden subdirectories excluded</span></strong>
$ du  -d2 -b   --time --time-style='+%F %T' --exclude=.* DIR 2&gt;/dev/null | sort -k4
$ du  -d2 -bh --time --time-style='+%F %T' --exclude=.* DIR 2&gt;/dev/null | sort -k4</code></pre>
]]></content:encoded>
					
		
		
			</item>
		<item>
		<title>Downloading Debian CD/DVD images</title>
		<link>https://itec4b.com/downloading-debian-cd-dvd-images/</link>
		
		<dc:creator><![CDATA[author]]></dc:creator>
		<pubDate>Sat, 14 Jan 2023 22:21:26 +0000</pubDate>
				<category><![CDATA[Debian]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[debian]]></category>
		<category><![CDATA[linux]]></category>
		<guid isPermaLink="false">https://itec4b.com/?p=127</guid>

					<description><![CDATA[https://www.debian.org/CD/http-ftp DVD 64-bit x86 (amd64) FR https://mirrors.ircam.fr/pub/debian-cd/current/amd64/iso-dvd DVD 32-bit x86 (i386) FR https://mirrors.ircam.fr/pub/debian-cd/current/i386/iso-dvd Live Images 64-bit x86 (amd64) FR https://mirrors.ircam.fr/pub/debian-cd/current-live/amd64/iso-hybrid Live Images 32-bit x86 (i386) FR https://mirrors.ircam.fr/pub/debian-cd/current-live/i386/iso-hybrid https://debian-cd.debian.net Debian worldwide mirror sites https://www.debian.org/mirror/list-full The Debian Administrator&#8217;s Handbook https://www.debian.org/doc/manuals/debian-handbook]]></description>
										<content:encoded><![CDATA[
<p><a href="https://www.debian.org/CD/http-ftp">https://www.debian.org/CD/http-ftp</a></p>



<figure class="wp-block-table"><table><tbody><tr><td>DVD 64-bit x86 (amd64)</td><td>FR</td><td><a href="https://mirrors.ircam.fr/pub/debian-cd/current/amd64/iso-dvd">https://mirrors.ircam.fr/pub/debian-cd/current/amd64/iso-dvd</a></td></tr><tr><td>DVD 32-bit x86 (i386)</td><td>FR</td><td><a href="https://mirrors.ircam.fr/pub/debian-cd/current/i386/iso-dvd">https://mirrors.ircam.fr/pub/debian-cd/current/i386/iso-dvd</a></td></tr><tr><td>Live Images 64-bit x86 (amd64)</td><td>FR</td><td><a href="https://mirrors.ircam.fr/pub/debian-cd/current-live/amd64/iso-hybrid">https://mirrors.ircam.fr/pub/debian-cd/current-live/amd64/iso-hybrid</a></td></tr><tr><td>Live Images 32-bit x86 (i386)</td><td>FR</td><td><a href="https://mirrors.ircam.fr/pub/debian-cd/current-live/i386/iso-hybrid">https://mirrors.ircam.fr/pub/debian-cd/current-live/i386/iso-hybrid</a></td></tr><tr><td></td><td></td><td><a href="https://debian-cd.debian.net">https://debian-cd.debian.net</a></td></tr></tbody></table></figure>



<h2>Debian worldwide mirror sites</h2>



<p><a href="https://www.debian.org/mirror/list-full">https://www.debian.org/mirror/list-full</a></p>



<h2>The Debian Administrator&#8217;s Handbook</h2>



<p><a href="https://www.debian.org/doc/manuals/debian-handbook">https://www.debian.org/doc/manuals/debian-handbook</a></p>
]]></content:encoded>
					
		
		
			</item>
	</channel>
</rss>
