Created
March 27, 2020 00:06
-
-
Save santaklouse/611b239b5e83cf3f81418b58e2dd8b70 to your computer and use it in GitHub Desktop.
Save text from cli (get url like pastebin)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| bash# command 2>&1 | curl -F 'f:1=<-' ix.io | |
| Or as function in .bashrc | |
| function pastebin() { curl -F -s 'f:1=<-' ix.io; } | |
| And | |
| # ps aux | pastebin | |
| Will return url to text file (output of ps aux) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment