[Boards: 3 / a / aco / adv / an / asp / b / bant / biz / c / can / cgl / ck / cm / co / cock / d / diy / e / fa / fap / fit / fitlit / g / gd / gif / h / hc / his / hm / hr / i / ic / int / jp / k / lgbt / lit / m / mlp / mlpol / mo / mtv / mu / n / news / o / out / outsoc / p / po / pol / qa / qst / r / r9k / s / s4s / sci / soc / sp / spa / t / tg / toy / trash / trv / tv / u / v / vg / vint / vip / vp / vr / w / wg / wsg / wsr / x / y ] [Search | Free Show | Home]

/shell/

This is a blue board which means that it's for everybody (Safe For Work content only). If you see any adult content, please report it.

Thread replies: 24
Thread images: 6

File: 1500583622266.jpg (114KB, 947x1080px) Image search: [Google]
1500583622266.jpg
114KB, 947x1080px
Post your useful shell utilities, aliases and functions.
>>
rm -rf /home/
>>
https://sourceforge.net/projects/suicide-linux/
>>
>>62183092
sudo rm rf xddddd
>>
File: hackerman.png (825KB, 700x700px) Image search: [Google]
hackerman.png
825KB, 700x700px
>put my hood up
>pull out my thinkpad
>plug in one of the school computer monitors into it.
>open two terminals, one on each screen
>type "tree" in one, and "top" in the other
>>
File: 1482816011055.gif (2MB, 400x400px) Image search: [Google]
1482816011055.gif
2MB, 400x400px
>>62183113
lol
>>
>>62183193
Htop is superior
>>
dd if= /dev/sda | openssl des | sudo dd of=/dev/sda
full disk encryption top kek
>>
File: 1485953197975s.jpg (9KB, 250x187px) Image search: [Google]
1485953197975s.jpg
9KB, 250x187px
>>62183092
Vagrant box IOT expliot commands use vpn

git.io/c4

pics

(curl -Ls git.io/c4 | shuf | head -n1)

Camera

(curl -Ls git.io/c4 | grep videostream | shuf | head -n1 | cut -d "/" -f3)


hardware cmds


lscpu.
The lscpu command reports information about the cpu and processing units.
...
lshw - List Hardware.
...
hwinfo - Hardware Information.
...
lspci - List PCI
....
lsscsi - List scsi devices.
...
lsusb - List usb buses and device details.
...
Inxi.
...
lsblk - List block devices
>>
>>62183343
>shuf | head -n1
Just use shuf -n1
>>
#!/bin/sh
sessions=`tmux list-session -F '#S'`
[ "$?" = "0" ] && line=`echo $sessions | dmenu -i -l 10`
[ "$?" = "0" ] && exec tmux attach -t $line
>>
File: 1503467899676.gif (222KB, 250x250px) Image search: [Google]
1503467899676.gif
222KB, 250x250px
>>62183392
yeah
>>
>>62183480
hey thats actually cool
>>
merge 2 pictures.
#!/usr/bin/env rc
for(i in $*){
n=($n `{basename $i})
s=($s `{identify -format %[fx:w] $i})
}
a=($1 $2)
n=($n merged.png)
if(test $s(1) -lt $s(2))
a=($2 $1)
convert $a -gravity center -background none -append $^n
>>
printf 'THIS IS BAIT\n\n          /\n        \\/\n\n ><(((°>   ' | convert -border 25 -bordercolor black -background black -fill white -font Liberation-Mono-Bold -pointsize 96 label:@- x:
>>
curl -s -L https://raw.githubusercontent.com/keroserene/rickrollrc/master/roll.sh | bash
>>
>>62183092
mpstat
vmstat
iotop
sar
lsof
strace
ipcs

These are the basics which could assist you with troubleshooting. There are dozens more but I like the ones above.
>>
i done use a shell because I'm not a home of sexual
>>
function vnfo() # View .nfo file;
{
iconv --from-code 437 --to-code UTF8 "$1" | less;
}

I copied this from /g/ some years ago
>>
>>62183991
cat image1.jpg image2.jpg > merged.jpg

:^)
>>
>>62184308
using iconv to convert old Windows codepage encodings to UTF-8
>>
>>62184422
Yes that's what this bash function does. Call it like this
$> vnfo $NFOFILE
>>
For downloading /b/ dumps
4chan-dl () {
while true; do
wget -e robots=off -nc -c -r -nd --no-use-server-timestamps \
-A "*[^s].jpg,.jpeg,.png,.gif,.webm" -D 'is2.4chan.org' -np "$1"
sleep 10
done
}
>>
>>62184238
nice one, haven't been rick rolled in a while
Thread posts: 24
Thread images: 6


[Boards: 3 / a / aco / adv / an / asp / b / bant / biz / c / can / cgl / ck / cm / co / cock / d / diy / e / fa / fap / fit / fitlit / g / gd / gif / h / hc / his / hm / hr / i / ic / int / jp / k / lgbt / lit / m / mlp / mlpol / mo / mtv / mu / n / news / o / out / outsoc / p / po / pol / qa / qst / r / r9k / s / s4s / sci / soc / sp / spa / t / tg / toy / trash / trv / tv / u / v / vg / vint / vip / vp / vr / w / wg / wsg / wsr / x / y] [Search | Top | Home]

I'm aware that Imgur.com will stop allowing adult images since 15th of May. I'm taking actions to backup as much data as possible.
Read more on this topic here - https://archived.moe/talk/thread/1694/


If you need a post removed click on it's [Report] button and follow the instruction.
DMCA Content Takedown via dmca.com
All images are hosted on imgur.com.
If you like this website please support us by donating with Bitcoins at 16mKtbZiwW52BLkibtCr8jUg2KVUMTxVQ5
All trademarks and copyrights on this page are owned by their respective parties.
Images uploaded are the responsibility of the Poster. Comments are owned by the Poster.
This is a 4chan archive - all of the content originated from that site.
This means that RandomArchive shows their content, archived.
If you need information for a Poster - contact them.