<?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>Autarchy of the Private Cave &#187; mc</title> <atom:link href="https://bogdan.org.ua/tags/mc/feed" rel="self" type="application/rss+xml" /><link>https://bogdan.org.ua</link> <description>Tiny bits of bioinformatics, [web-]programming etc</description> <lastBuildDate>Wed, 28 Dec 2022 16:09:04 +0000</lastBuildDate> <language>en-US</language> <sy:updatePeriod>hourly</sy:updatePeriod> <sy:updateFrequency>1</sy:updateFrequency> <generator>https://wordpress.org/?v=3.8.27</generator> <item><title>Midnight Commander: panelize or select all files newer than specified date</title><link>https://bogdan.org.ua/2017/02/03/midnight-commander-panelize-or-select-all-files-newer-than-specified-date.html</link> <comments>https://bogdan.org.ua/2017/02/03/midnight-commander-panelize-or-select-all-files-newer-than-specified-date.html#comments</comments> <pubDate>Fri, 03 Feb 2017 14:56:52 +0000</pubDate> <dc:creator><![CDATA[Bogdan]]></dc:creator> <category><![CDATA[*nix]]></category> <category><![CDATA[Notepad]]></category> <category><![CDATA[find]]></category> <category><![CDATA[mc]]></category> <guid
isPermaLink="false">http://bogdan.org.ua/?p=2482</guid> <description><![CDATA[If you ever need to select lots (hundreds, thousands) of files by their modification date, and your directory contains many more files (thousands, tens of thousands), then angel_il has the answer for you: touch -d &#8220;Jun 01 00:00 2011&#8243; /tmp/.date1 enter into your BIG dir press C-x ! (External panelize) add new command like a [&#8230;]]]></description> <content:encoded><![CDATA[<p>If you ever need to select lots (hundreds, thousands) of files by their modification date, and your directory contains many more files (thousands, tens of thousands), then angel_il has the <a
href="https://midnight-commander.org/ticket/2718#comment:5">answer</a> for you:</p><blockquote><ol><li>touch -d &#8220;Jun 01 00:00 2011&#8243; /tmp/.date1</li><li>enter into your BIG dir</li><li>press C-x ! (External panelize)</li><li>add new command like a &#8220;find . -type f \( -newer /tmp/.date1 \) -print&#8221;</li></ol></blockquote><p>I&#8217;ve used a slightly different approach, specifying desired date right in the command line of External Panelize:</p><blockquote><ol><li>enter your directory with many files</li><li>press <code>C-x !</code> (External Panelize)</li><li>add a command like <code>find . -type f -newermt "2017-02-01 23:55:00" -print</code> (<code>man find</code> for more details)</li></ol></blockquote><p>In both cases, the created panel will only have files matching your search condition.</p><p><a
class="a2a_button_citeulike" href="https://www.addtoany.com/add_to/citeulike?linkurl=https%3A%2F%2Fbogdan.org.ua%2F2017%2F02%2F03%2Fmidnight-commander-panelize-or-select-all-files-newer-than-specified-date.html&amp;linkname=Midnight%20Commander%3A%20panelize%20or%20select%20all%20files%20newer%20than%20specified%20date" title="CiteULike" rel="nofollow noopener" target="_blank"></a><a
class="a2a_button_pocket" href="https://www.addtoany.com/add_to/pocket?linkurl=https%3A%2F%2Fbogdan.org.ua%2F2017%2F02%2F03%2Fmidnight-commander-panelize-or-select-all-files-newer-than-specified-date.html&amp;linkname=Midnight%20Commander%3A%20panelize%20or%20select%20all%20files%20newer%20than%20specified%20date" title="Pocket" rel="nofollow noopener" target="_blank"></a><a
class="a2a_button_kindle_it" href="https://www.addtoany.com/add_to/kindle_it?linkurl=https%3A%2F%2Fbogdan.org.ua%2F2017%2F02%2F03%2Fmidnight-commander-panelize-or-select-all-files-newer-than-specified-date.html&amp;linkname=Midnight%20Commander%3A%20panelize%20or%20select%20all%20files%20newer%20than%20specified%20date" title="Kindle It" rel="nofollow noopener" target="_blank"></a><a
class="a2a_button_evernote" href="https://www.addtoany.com/add_to/evernote?linkurl=https%3A%2F%2Fbogdan.org.ua%2F2017%2F02%2F03%2Fmidnight-commander-panelize-or-select-all-files-newer-than-specified-date.html&amp;linkname=Midnight%20Commander%3A%20panelize%20or%20select%20all%20files%20newer%20than%20specified%20date" title="Evernote" rel="nofollow noopener" target="_blank"></a><a
class="a2a_button_pinterest" href="https://www.addtoany.com/add_to/pinterest?linkurl=https%3A%2F%2Fbogdan.org.ua%2F2017%2F02%2F03%2Fmidnight-commander-panelize-or-select-all-files-newer-than-specified-date.html&amp;linkname=Midnight%20Commander%3A%20panelize%20or%20select%20all%20files%20newer%20than%20specified%20date" title="Pinterest" rel="nofollow noopener" target="_blank"></a><a
class="a2a_dd addtoany_share_save addtoany_share" href="https://www.addtoany.com/share#url=https%3A%2F%2Fbogdan.org.ua%2F2017%2F02%2F03%2Fmidnight-commander-panelize-or-select-all-files-newer-than-specified-date.html&#038;title=Midnight%20Commander%3A%20panelize%20or%20select%20all%20files%20newer%20than%20specified%20date" data-a2a-url="https://bogdan.org.ua/2017/02/03/midnight-commander-panelize-or-select-all-files-newer-than-specified-date.html" data-a2a-title="Midnight Commander: panelize or select all files newer than specified date"><img
src="https://static.addtoany.com/buttons/share_save_120_16.png" alt="Share"></a></p>]]></content:encoded> <wfw:commentRss>https://bogdan.org.ua/2017/02/03/midnight-commander-panelize-or-select-all-files-newer-than-specified-date.html/feed</wfw:commentRss> <slash:comments>0</slash:comments> </item> <item><title>Resume broken scp/mc/fish transfer with rsync</title><link>https://bogdan.org.ua/2013/10/17/resume-broken-scpmcfish-transfer-with-rsync.html</link> <comments>https://bogdan.org.ua/2013/10/17/resume-broken-scpmcfish-transfer-with-rsync.html#comments</comments> <pubDate>Thu, 17 Oct 2013 20:24:32 +0000</pubDate> <dc:creator><![CDATA[Bogdan]]></dc:creator> <category><![CDATA[Notepad]]></category> <category><![CDATA[fish]]></category> <category><![CDATA[mc]]></category> <category><![CDATA[resume]]></category> <category><![CDATA[rsync]]></category> <category><![CDATA[scp]]></category> <category><![CDATA[transfer]]></category> <guid
isPermaLink="false">http://bogdan.org.ua/?p=1229</guid> <description><![CDATA[Note: this is a draft post back from 2010. As it is still useful to me, I&#8217;ve decided to publish it as is. I had already mused on the powers of rsync before. This time, a reminder to self on how to resume copying broken scp/mc/fish transfers, using rsync. First, an assortment of example commands. [&#8230;]]]></description> <content:encoded><![CDATA[<p><em>Note: this is a draft post back from 2010. As it is still useful to me, I&#8217;ve decided to publish it <strong>as is</strong>.</em></p><p>I had already mused on the <a
href="http://bogdan.org.ua/2009/07/06/harness-the-power-of-rsync.html">powers of rsync</a> before.</p><p>This time, a reminder to self on how to resume copying broken scp/mc/fish transfers, using rsync.</p><p>First, an assortment of example commands.<br
/> <code>export RSYNC_RSH=ssh</code><br
/> <code>rsync --partial file_to_transfer user@remotehost:/path/remote_file</code><br
/> <code>rsync -av --partial --progress --inplace SRC DST</code><br
/> <code>rsync --partial --progress --rsh=ssh host:/work/source.tar.bz2 .</code><br
/> <code>rsync --partial --progress --rsh=ssh -r me@host.com:/datafiles/ ./</code></p><p>One could also try the <code>--append</code> option of rsync to base the transfer resumption on the sizes of the two files rather than verifying that their contents match.</p><p>Now a single command line explained in a little more details:<br
/> <code>rsync -vrPtz -e ssh host:/remote_path/* /local_path/</code><br
/> Explained:<br
/> <code>-e ssh</code> rsync will use ssh client instead of rsh, which makes data exchange encrypted<br
/> -z compress file transfer<br
/> -t preserve time (other attributes, such as owner and permissions are also possible)<br
/> -P resume incomplete file transfer<br
/> -r recurse into subdirectories<br
/> -v verbose</p><p>To specify a port when using ssh you must add it to the ssh command.<br
/> Example: <code>rsync --partial --progress --rsh="ssh -p 16703" user@host:path</code></p><p><a
class="a2a_button_citeulike" href="https://www.addtoany.com/add_to/citeulike?linkurl=https%3A%2F%2Fbogdan.org.ua%2F2013%2F10%2F17%2Fresume-broken-scpmcfish-transfer-with-rsync.html&amp;linkname=Resume%20broken%20scp%2Fmc%2Ffish%20transfer%20with%20rsync" title="CiteULike" rel="nofollow noopener" target="_blank"></a><a
class="a2a_button_pocket" href="https://www.addtoany.com/add_to/pocket?linkurl=https%3A%2F%2Fbogdan.org.ua%2F2013%2F10%2F17%2Fresume-broken-scpmcfish-transfer-with-rsync.html&amp;linkname=Resume%20broken%20scp%2Fmc%2Ffish%20transfer%20with%20rsync" title="Pocket" rel="nofollow noopener" target="_blank"></a><a
class="a2a_button_kindle_it" href="https://www.addtoany.com/add_to/kindle_it?linkurl=https%3A%2F%2Fbogdan.org.ua%2F2013%2F10%2F17%2Fresume-broken-scpmcfish-transfer-with-rsync.html&amp;linkname=Resume%20broken%20scp%2Fmc%2Ffish%20transfer%20with%20rsync" title="Kindle It" rel="nofollow noopener" target="_blank"></a><a
class="a2a_button_evernote" href="https://www.addtoany.com/add_to/evernote?linkurl=https%3A%2F%2Fbogdan.org.ua%2F2013%2F10%2F17%2Fresume-broken-scpmcfish-transfer-with-rsync.html&amp;linkname=Resume%20broken%20scp%2Fmc%2Ffish%20transfer%20with%20rsync" title="Evernote" rel="nofollow noopener" target="_blank"></a><a
class="a2a_button_pinterest" href="https://www.addtoany.com/add_to/pinterest?linkurl=https%3A%2F%2Fbogdan.org.ua%2F2013%2F10%2F17%2Fresume-broken-scpmcfish-transfer-with-rsync.html&amp;linkname=Resume%20broken%20scp%2Fmc%2Ffish%20transfer%20with%20rsync" title="Pinterest" rel="nofollow noopener" target="_blank"></a><a
class="a2a_dd addtoany_share_save addtoany_share" href="https://www.addtoany.com/share#url=https%3A%2F%2Fbogdan.org.ua%2F2013%2F10%2F17%2Fresume-broken-scpmcfish-transfer-with-rsync.html&#038;title=Resume%20broken%20scp%2Fmc%2Ffish%20transfer%20with%20rsync" data-a2a-url="https://bogdan.org.ua/2013/10/17/resume-broken-scpmcfish-transfer-with-rsync.html" data-a2a-title="Resume broken scp/mc/fish transfer with rsync"><img
src="https://static.addtoany.com/buttons/share_save_120_16.png" alt="Share"></a></p>]]></content:encoded> <wfw:commentRss>https://bogdan.org.ua/2013/10/17/resume-broken-scpmcfish-transfer-with-rsync.html/feed</wfw:commentRss> <slash:comments>0</slash:comments> </item> <item><title>Using FTP usernames with @-symbol in midnight commander</title><link>https://bogdan.org.ua/2009/05/07/using-ftp-usernames-with-at-symbol-mc-midnight-commander-how-to.html</link> <comments>https://bogdan.org.ua/2009/05/07/using-ftp-usernames-with-at-symbol-mc-midnight-commander-how-to.html#comments</comments> <pubDate>Thu, 07 May 2009 12:44:07 +0000</pubDate> <dc:creator><![CDATA[Bogdan]]></dc:creator> <category><![CDATA[*nix]]></category> <category><![CDATA[how-to]]></category> <category><![CDATA[ftp]]></category> <category><![CDATA[linux]]></category> <category><![CDATA[mc]]></category> <guid
isPermaLink="false">http://bogdan.org.ua/?p=691</guid> <description><![CDATA[MC is a console file manager. It supports FTP connections, and in my experience is faster in FTP than both Krusader and Gnome Commander. However, the default FTP connection format string [username[:password]@]hostname has a drawback of not allowing the use of usernames with &#8216;@&#8217;-symbol in them &#8211; which is very common for virtual hostings. One [&#8230;]]]></description> <content:encoded><![CDATA[<p><abbr
title="midnight commander">MC</abbr> is a console file manager. It supports FTP connections, and in my experience is faster in FTP than both Krusader and Gnome Commander.</p><p>However, the default FTP connection format string [username[:password]@]hostname has a drawback of not allowing the use of usernames with &#8216;@&#8217;-symbol in them &#8211; which is very common for virtual hostings.</p><p>One of the solutions is (done in your home directory):</p><ol><li>if there is no <strong>.netrc</strong> file in your home directory &#8212; <strong>touch  .netrc &#038;&#038; chmod 600  .netrc</strong></li><li><strong>mcedit  .netrc</strong> (or use vi, nano, or any other editor you prefer)</li><li>add the following line to the file (replace all-caps words with your actual credentials): <strong>machine HOSTNAME login USER@HOSTNAME password PASSWORD</strong></li></ol><p>Now, start MC, choose FTP connect, and enter only the hostname. You will be automatically logged in to the remote FTP.<br
/> This will also work for console ftp clients like lftp.</p><p><a
class="a2a_button_citeulike" href="https://www.addtoany.com/add_to/citeulike?linkurl=https%3A%2F%2Fbogdan.org.ua%2F2009%2F05%2F07%2Fusing-ftp-usernames-with-at-symbol-mc-midnight-commander-how-to.html&amp;linkname=Using%20FTP%20usernames%20with%20%40-symbol%20in%20midnight%20commander" title="CiteULike" rel="nofollow noopener" target="_blank"></a><a
class="a2a_button_pocket" href="https://www.addtoany.com/add_to/pocket?linkurl=https%3A%2F%2Fbogdan.org.ua%2F2009%2F05%2F07%2Fusing-ftp-usernames-with-at-symbol-mc-midnight-commander-how-to.html&amp;linkname=Using%20FTP%20usernames%20with%20%40-symbol%20in%20midnight%20commander" title="Pocket" rel="nofollow noopener" target="_blank"></a><a
class="a2a_button_kindle_it" href="https://www.addtoany.com/add_to/kindle_it?linkurl=https%3A%2F%2Fbogdan.org.ua%2F2009%2F05%2F07%2Fusing-ftp-usernames-with-at-symbol-mc-midnight-commander-how-to.html&amp;linkname=Using%20FTP%20usernames%20with%20%40-symbol%20in%20midnight%20commander" title="Kindle It" rel="nofollow noopener" target="_blank"></a><a
class="a2a_button_evernote" href="https://www.addtoany.com/add_to/evernote?linkurl=https%3A%2F%2Fbogdan.org.ua%2F2009%2F05%2F07%2Fusing-ftp-usernames-with-at-symbol-mc-midnight-commander-how-to.html&amp;linkname=Using%20FTP%20usernames%20with%20%40-symbol%20in%20midnight%20commander" title="Evernote" rel="nofollow noopener" target="_blank"></a><a
class="a2a_button_pinterest" href="https://www.addtoany.com/add_to/pinterest?linkurl=https%3A%2F%2Fbogdan.org.ua%2F2009%2F05%2F07%2Fusing-ftp-usernames-with-at-symbol-mc-midnight-commander-how-to.html&amp;linkname=Using%20FTP%20usernames%20with%20%40-symbol%20in%20midnight%20commander" title="Pinterest" rel="nofollow noopener" target="_blank"></a><a
class="a2a_dd addtoany_share_save addtoany_share" href="https://www.addtoany.com/share#url=https%3A%2F%2Fbogdan.org.ua%2F2009%2F05%2F07%2Fusing-ftp-usernames-with-at-symbol-mc-midnight-commander-how-to.html&#038;title=Using%20FTP%20usernames%20with%20%40-symbol%20in%20midnight%20commander" data-a2a-url="https://bogdan.org.ua/2009/05/07/using-ftp-usernames-with-at-symbol-mc-midnight-commander-how-to.html" data-a2a-title="Using FTP usernames with @-symbol in midnight commander"><img
src="https://static.addtoany.com/buttons/share_save_120_16.png" alt="Share"></a></p>]]></content:encoded> <wfw:commentRss>https://bogdan.org.ua/2009/05/07/using-ftp-usernames-with-at-symbol-mc-midnight-commander-how-to.html/feed</wfw:commentRss> <slash:comments>1</slash:comments> </item> </channel> </rss>