<?xml version="1.0" encoding="UTF-8"?><rss version="2.0" xmlns:content="http://purl.org/rss/1.0/modules/content/">
  <channel>
    <title>paste &amp;mdash; Paul Sutton</title>
    <link>https://personaljournal.ca/paulsutton/tag:paste</link>
    <description>Personal Blog</description>
    <pubDate>Tue, 05 May 2026 16:27:28 +0000</pubDate>
    <item>
      <title>Use pastebin from command line</title>
      <link>https://personaljournal.ca/paulsutton/use-pastebin-from-command-line</link>
      <description>&lt;![CDATA[Use pastebin from command line&#xA;&#xA;Use pastebin from command line&#xA;&#xA;Quite often, when you have a problem where, in order to get help you need to paste the contents of a file,or command output so that it can be shared,  for example on IRC (Chat) or a forum, this can be challenging to begin with.&#xA;&#xA;As it is depreciated that you paste more than 2 lines in to IRC chat.  The way round this is to use a service called pastebin.   Debian [1] has it&#39;s own service for this [2].   There is a tool called pastebinit which is really helpful from the command line. &#xA;&#xA;The first step is to switch to the root user. Sear for  and install the package pastebinit as per below.&#xA;&#xA;Search&#xA;&#xA;root@Desktop:/home/user# apt search pastebinit&#xA;Sorting... Done&#xA;Full Text Search... Done&#xA;pastebinit/stable 1.5.1-1 all&#xA;  command-line pastebin client&#xA;&#xA;Install&#xA;&#xA;root@Desktop:/home/user# apt install pastebinit&#xA;Reading package lists... Done&#xA;Building dependency tree... Done&#xA;Reading state information... Done&#xA;The following packages were automatically installed and are no longer required:&#xA;  linux-image-5.10.0-7-amd64 linux-image-5.10.0-8-amd64&#xA;Use &#39;apt autoremove&#39; to remove them.&#xA;The following NEW packages will be installed:&#xA;  pastebinit&#xA;0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded.&#xA;Need to get 46.6 kB of archives.&#xA;After this operation, 342 kB of additional disk space will be used.&#xA;Get:1 http://deb.debian.org/debian bullseye/main amd64 pastebinit all 1.5.1-1 [46.6 kB]&#xA;Fetched 46.6 kB in 0s (342 kB/s)&#xA;Selecting previously unselected package pastebinit.&#xA;(Reading database ... 190310 files and directories currently installed.)&#xA;Preparing to unpack .../pastebinit1.5.1-1all.deb ...&#xA;Unpacking pastebinit (1.5.1-1) ...&#xA;Setting up pastebinit (1.5.1-1) ...&#xA;Processing triggers for man-db (2.9.4-2) ...&#xA;root@Desktop:/home/user# &#xA;&#xA;Once complete switch back to normal user (usually type exit)&#xA;&#xA;user@Desktop:~$ cat /etc/apt/sources.list   pastebinit&#xA;user@Desktop:~$ cat /etc/apt/sources.list | pastebinit&#xA;https://paste.debian.net/1228146/&#xA;&#xA;In this example I have used the cat command and piped the contents in to pastebinit,  this has given me a url to paste in to chat, (or copy manually)&#xA;&#xA;Open this in a browser and you and others can see the contents, and people can help you further.  &#xA;&#xA;paste bin it output&#xA;&#xA;This is really useful too if you are stuck at the command prompt,  without a graphical interface.&#xA;&#xA;Links&#xA;&#xA;1 Debian&#xA;2 pastebin - debian&#xA;3 Paignton Library STEM Group&#xA;TAGS&#xA;&#xA;#Debian,#GNULinux,#Paste,#Text,#Pastebin,#Share,#Troubleshooting&#xA;&#xA;img src=&#34;https://socialhub.activitypub.rocks/uploads/default/original/2X/d/dd8ee2842d572bad100cde42f7c98232e69ea9f7.png&#34; target=&#34;_blank&#34; &#xA;&#xA;hr&#xA;&#xA;a href=&#34;https://liberapay.com/PaulSutton/donate&#34;img alt=&#34;Donate using Liberapay&#34; src=&#34;https://liberapay.com/assets/widgets/donate.svg&#34;/a&#xA;&#xA;a rel=&#34;license&#34; href=&#34;http://creativecommons.org/licenses/by-sa/4.0/&#34;img alt=&#34;Creative Commons Licence&#34; style=&#34;border-width:0&#34; src=&#34;https://i.creativecommons.org/l/by-sa/4.0/88x31.png&#34; //abr /This work is licensed under a a rel=&#34;license&#34; href=&#34;http://creativecommons.org/licenses/by-sa/4.0/&#34;Creative Commons Attribution-ShareAlike 4.0 International License/a&#xA;&#xA;hr&#xD;&#xA;&#xD;&#xA;table&#xD;&#xA;thead&#xD;&#xA;trtda rel=&#34;me&#34; href=&#34;https://qoto.org/@zleap&#34;Mastodon/a/td&#xD;&#xA;tda href=&#34;https://wiki.ircnow.org/?n=Shelllabs.Intro&#34;ShellLabs/td&#xD;&#xA;tda href=&#34;https://joinmastodon.org/&#34;Join Mastodon/a/td/tr/thead/table&#xD;&#xA;center&#xD;&#xA;AI statement : b Consent is NOT granted to use the content of this blog for the purposes of AI training or similar activity.  Consent CANNOT be assumed, it has to be granted. /b&#xD;&#xA;/center&#xD;&#xA;&#xD;&#xA;a href=&#34;https://liberapay.com/PaulSutton/donate&#34;img alt=&#34;Donate using Liberapay&#34; src=&#34;https://liberapay.com/assets/widgets/donate.svg&#34;/a&#xD;&#xA;]]&gt;</description>
      <content:encoded><![CDATA[<p>Use pastebin from command line</p>

<p><strong>Use pastebin from command line</strong></p>

<p>Quite often, when you have a problem where, in order to get help you need to paste the contents of a file,or command output so that it can be shared,  for example on IRC (Chat) or a forum, this can be challenging to begin with.</p>

<p>As it is <strong>depreciated</strong> that you paste more than 2 lines in to IRC chat.  The way round this is to use a service called pastebin.   Debian [1] has it&#39;s own service for this [2].   There is a tool called <em>pastebinit</em> which is really helpful from the command line.</p>

<p>The first step is to switch to the <strong>root</strong> user. Sear for  and install the package <strong>pastebinit</strong> as per below.</p>

<p><em>Search</em></p>

<pre><code>root@Desktop:/home/user# apt search pastebinit
Sorting... Done
Full Text Search... Done
pastebinit/stable 1.5.1-1 all
  command-line pastebin client
</code></pre>

<p><em>Install</em></p>

<pre><code>root@Desktop:/home/user# apt install pastebinit
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
The following packages were automatically installed and are no longer required:
  linux-image-5.10.0-7-amd64 linux-image-5.10.0-8-amd64
Use &#39;apt autoremove&#39; to remove them.
The following NEW packages will be installed:
  pastebinit
0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded.
Need to get 46.6 kB of archives.
After this operation, 342 kB of additional disk space will be used.
Get:1 http://deb.debian.org/debian bullseye/main amd64 pastebinit all 1.5.1-1 [46.6 kB]
Fetched 46.6 kB in 0s (342 kB/s)
Selecting previously unselected package pastebinit.
(Reading database ... 190310 files and directories currently installed.)
Preparing to unpack .../pastebinit_1.5.1-1_all.deb ...
Unpacking pastebinit (1.5.1-1) ...
Setting up pastebinit (1.5.1-1) ...
Processing triggers for man-db (2.9.4-2) ...
root@Desktop:/home/user# 
</code></pre>

<p>Once complete switch back to normal user (usually type exit)</p>

<pre><code>user@Desktop:~$ cat /etc/apt/sources.list &gt; pastebinit
user@Desktop:~$ cat /etc/apt/sources.list | pastebinit
https://paste.debian.net/1228146/
</code></pre>

<p>In this example I have used the cat command and piped the contents in to pastebinit,  this has given me a url to paste in to chat, (or copy manually)</p>

<p>Open this in a browser and you and others can see the contents, and people can help you further.</p>

<p><img src="https://git.qoto.org/zleap/documents/-/raw/master/debian/pastebin2.png" alt="paste bin it output"></p>

<p>This is really useful too if you are stuck at the command prompt,  without a graphical interface.</p>

<p><strong>Links</strong></p>

<p>1 <a href="https://www.debian.org" rel="nofollow">Debian</a>
2 <a href="https://paste.debian.net" rel="nofollow">pastebin – debian</a>
3 <a href="https://personaljournal.ca/paigntonlibrarystemgroup/" rel="nofollow">Paignton Library STEM Group</a>
<strong>TAGS</strong></p>

<p><a href="/paulsutton/tag:Debian" class="hashtag" rel="nofollow"><span>#</span><span class="p-category">Debian</span></a>,<a href="/paulsutton/tag:GNULinux" class="hashtag" rel="nofollow"><span>#</span><span class="p-category">GNULinux</span></a>,<a href="/paulsutton/tag:Paste" class="hashtag" rel="nofollow"><span>#</span><span class="p-category">Paste</span></a>,<a href="/paulsutton/tag:Text" class="hashtag" rel="nofollow"><span>#</span><span class="p-category">Text</span></a>,<a href="/paulsutton/tag:Pastebin" class="hashtag" rel="nofollow"><span>#</span><span class="p-category">Pastebin</span></a>,<a href="/paulsutton/tag:Share" class="hashtag" rel="nofollow"><span>#</span><span class="p-category">Share</span></a>,<a href="/paulsutton/tag:Troubleshooting" class="hashtag" rel="nofollow"><span>#</span><span class="p-category">Troubleshooting</span></a></p>

<p><a href="https://torresjrjr.com/archive/2020-07-19-guide-to-the-fediverse" rel="nofollow"><img src="https://socialhub.activitypub.rocks/uploads/default/original/2X/d/dd8ee2842d572bad100cde42f7c98232e69ea9f7.png"></a></p>

<hr>

<p><a href="https://liberapay.com/PaulSutton/donate" rel="nofollow"><img alt="Donate using Liberapay" src="https://liberapay.com/assets/widgets/donate.svg"></a></p>

<p><a href="http://creativecommons.org/licenses/by-sa/4.0/" rel="nofollow"><img alt="Creative Commons Licence" style="border-width:0" src="https://i.creativecommons.org/l/by-sa/4.0/88x31.png"/></a><br/>This work is licensed under a <a href="http://creativecommons.org/licenses/by-sa/4.0/" rel="nofollow">Creative Commons Attribution-ShareAlike 4.0 International License</a></p>

<hr>

<p><table>
<thead>
<tr><td><a href="https://qoto.org/@zleap" rel="nofollow">Mastodon</a></td>
<td><a href="https://wiki.ircnow.org/?n=Shelllabs.Intro" rel="nofollow">ShellLabs</td>
<td><a href="https://joinmastodon.org/" rel="nofollow">Join Mastodon</a></td></tr></thead></table>

AI statement : <b> Consent is NOT granted to use the content of this blog for the purposes of AI training or similar activity.  Consent CANNOT be assumed, it has to be granted. </b>
</p>

<p><a href="https://liberapay.com/PaulSutton/donate" rel="nofollow"><img alt="Donate using Liberapay" src="https://liberapay.com/assets/widgets/donate.svg"></a></p>
]]></content:encoded>
      <guid>https://personaljournal.ca/paulsutton/use-pastebin-from-command-line</guid>
      <pubDate>Mon, 24 Jan 2022 15:18:28 +0000</pubDate>
    </item>
  </channel>
</rss>