Termbin shortcut alias

Asphyxia

Owner
Administrator
Joined
Apr 25, 2015
Messages
1,661
Reaction score
2,086
Points
287
Age
26
Location
North America
If you are using Linux and want to make life simpler, just run:
Code:
alias termbin="nc termbin.com 9999"
Now try:
Code:
ls | termbin
You will be shown a link with a copy/paste URL to show the results of what your terminal had.. stdout or whatever.

Let's hope people can pass this around.
 

Asphyxia

Owner
Administrator
Joined
Apr 25, 2015
Messages
1,661
Reaction score
2,086
Points
287
Age
26
Location
North America
Also, a while back I made something for clearing logs:

Let's make a shortcut to clear logs, eh?

First, how about we make an alias to list all users?

Code:
alias allusers="cut -d: -f1 /etc/passwd"
Now how about allhomes?
Code:
alias allhomes="cd /home/;ls"
Now that we know all the users, all the homes, and therefore what logs there should be - we can purge the history and .bash_history easily.

Code:
alias thepurge="cat /dev/null > ~/.bash_history && history -c"
We could combine allhomes with automating su (maybe), or fetch configs to homedirs so we can wipe all variances of .bash_history - simple stuff.

But anyway, this should do.
 

Top