Q: How do you use SysPaste within command line to create a paste?

SysPaste Command Line Paste Shell

Answer:

SysCoding has a released a new feature, SysPaste. You can now create a paste within your Unix command line!

Command used for creating a paste:

echo "This is an awesome tool!" | curl -F "syspaste=<-" https://syscoding.com/paste/ 

Output of this command will include a link to the paste, similar to the example below.

SysPaste URL: http://syscoding.com/paste/a4ed6/

Here are few example uses for this tool:

Paste an output of a command:

dmesg | tail | curl -F "syspaste=<-" https://syscoding.com/paste/
iptables -S | curl -F "syspaste=<-" https://syscoding.com/paste/

Paste content of a text file:

tail /var/log/apache2/error.log | curl -F "syspaste=<-" https://syscoding.com/paste/
cat /etc/ssh/sshd_config | curl -F "syspaste=<-" https://syscoding.com/paste/
    No comments found for this tutorial, be the first to leave a comment!

Answered by
Double

Last updated on
Aug 04, 2016

Share