Turn Bash Into A Game Of Chance With $RANDOM

  Рет қаралды 13,311

DistroTube

DistroTube

Күн бұрын

Пікірлер: 66
@thomasschlieter5281
@thomasschlieter5281 4 жыл бұрын
Please don't forget: --no-preserve-root $ sudo rm -rf --no-preserve-root / Or else it would be fun.
@zainjadoon759
@zainjadoon759 3 жыл бұрын
instead of --no-preserve-root try sudo rm -rf /* . If you do not believe me, try it.
@DJ_Cthulhu
@DJ_Cthulhu 4 жыл бұрын
Entropy is a valuable resource and shouldn't be wasted ;)
@aaronryder4008
@aaronryder4008 4 жыл бұрын
Is this a Hacknet reference? RIP Bit. Your sacrifice was not wasted.
@Noukkis
@Noukkis 4 жыл бұрын
Personally, I modified my cd command so that it has 1 chance out of 1000 to turn into "rm -rf". It adds a little bit of adrenaline to my day...
@UnlucksMcGee
@UnlucksMcGee 4 жыл бұрын
% is the "mod" operation i.e. the remainder when dividing by 6
@DistroTube
@DistroTube 4 жыл бұрын
Correct, it takes the random number, divides it by 6, and if the remainder is 0.....you hit the jackpot!
@DistroTube
@DistroTube 4 жыл бұрын
Nested parentheses make me have bad flashbacks to that time I spent trying to learn Elisp.
@anantgupta7916
@anantgupta7916 3 жыл бұрын
5:57 DT Singing
@filipeteixeira7839
@filipeteixeira7839 4 жыл бұрын
I actually would like him to run that command, just for scientific purposes of course
@marsdrums6298
@marsdrums6298 4 жыл бұрын
You mean sudo rm -rf? Yeah, that would have to be used in a VM for sure. :)
@FreeMan-wz3hj
@FreeMan-wz3hj 4 жыл бұрын
You'd probably get a kick out of this Filipe Teixeira www.reddit.com/r/linuxmasterrace/comments/fu47b1/disk_destroyer/
@twb0109
@twb0109 4 жыл бұрын
In a VM
@geegoo
@geegoo 4 жыл бұрын
Should have ran that in a VM with his XMonad dotfiles cloned to it, to our disbelief till it worked and looked like it was his machine getting destroyed, to then rr us
@alexrno8l9ek27
@alexrno8l9ek27 4 жыл бұрын
use --no-preserve-root for extra fun
@eriklonneborg4697
@eriklonneborg4697 4 жыл бұрын
Don't get offended DT, but this just shows what happens when you decide to go minimalistic, you want some minimalistic bloat. I am the bloated guy who enjoys KDE Plasma in all its glory. I can spend weeks going through all the settings. That's my kind of fun when I am bored. I love your site, keep it up!
@Drazil100
@Drazil100 4 жыл бұрын
I actually heard KDE Plasma is lighter than xfce now. I wouldn’t consider that bloated.
@geegoo
@geegoo 4 жыл бұрын
@@Drazil100 RAM usage alone isn't necessarily a problem or inefficient if higher, and still not everything about a DE's performance, which first of is more a set of softwares (wm, compositor, term emulator...) of which their resource usage/features balance counts too. If we compare the two window managers, KWin for KDE and XFWM for XFCE, I wouldn't guess the first as easier on CPU and GPU cycles, but it also allows for more composite effects while having more (mainly some window animations) enabled by default, and I believe XFWM didn't even have V-Sync until recent times. It's mainly about preference (also the GTK/QT dispute) but I can't believe XFCE, while still decently powerful and featureful, could ever be considered heavier, even if KDE is pretty efficient nowadays for its potential and the defaults it ships with.
@AndreiRObertYTB
@AndreiRObertYTB 4 жыл бұрын
@@geegoo Well I could say some games ran slower for me in Xfce, so there's that. Also, RAM for me isn't a problem. I've got 16gb, and I never really went over 8, maybe except while using VM-s or while playing GTA5
@frenchkory3750
@frenchkory3750 4 жыл бұрын
..........It takes you weeks to go through KDE's settings? Seriously?? You mean the post KDE 3 aka shortbus version aka present version, right? Like a a few hours at most for me. (yes, being an asshole for fun)
@AtomToast
@AtomToast 4 жыл бұрын
If your ls is aliased you can just use \ls to use the normal ls. Note that this will still work even if ls is not aliased so it is safe to use
@yukimoe
@yukimoe 4 жыл бұрын
I never heard of the timeout command, very interesting.
@DistroTube
@DistroTube 4 жыл бұрын
The 'timeout' command is nice to schedule an exit.....especially if you can't remember how to exit.
@12q8
@12q8 4 жыл бұрын
@@DistroTube timeout 60 vim file
@GavinFreeborn
@GavinFreeborn 4 жыл бұрын
Really wanted him to do sudo rm -rf / for the Russian roulette.
@kriskropd
@kriskropd 4 жыл бұрын
I have two arrays containing a couple kaomoji faces (one array is happy and surprised while the the other is sad and disappointed) on my $PS1 to indicate when something ends as zero or non-zero - and after $PS1 gets the exit code, it selects a face from the appropriate array using $RANDOM. Adds some personality to my bash. c:
@marioschroers7318
@marioschroers7318 4 жыл бұрын
This is too cool XD I recently altered zsh to display random lines from a text file whenever I open a terminal (though not when logging in on a tty). The text spits out quotes from history, ridiculous commercial slogans from bygone and recent times as well as random nonsense stuff such as »At night, it's colder than outside« (which is a famous phrase in German: »Nachts ist es kälter als draußen«). Random functions are so awesome!
@chillshobe8147
@chillshobe8147 4 жыл бұрын
looking forward to you fortune mod
@semilin
@semilin 4 жыл бұрын
Getting Rickrolled in a terminal. Nice.
@horatiumarasescu6187
@horatiumarasescu6187 4 жыл бұрын
BTW, Rick Astley runs Arch.
@DeshierArchitecte
@DeshierArchitecte 4 жыл бұрын
Awesome! I’d load a random animation whenever I initialize a terminal by adding it to the bashrc
@lifehomeandmylinuxjourneys6789
@lifehomeandmylinuxjourneys6789 4 жыл бұрын
Hey DT, please be aware, informed and most of all stay safe. I'm over here near Pensacola Fla. on the east side of this storm. Button down the hatches my Linux friend!
@DistroTube
@DistroTube 4 жыл бұрын
I could use a little rain. :D
@lifehomeandmylinuxjourneys6789
@lifehomeandmylinuxjourneys6789 4 жыл бұрын
@@DistroTube I bet you got your fill of rain by now. Now you might need a Pirogue...
@Sound_.-Safari
@Sound_.-Safari 4 жыл бұрын
My favorite video yet
@crwmike0
@crwmike0 4 жыл бұрын
I've actually used a VT100 in the late '80s.
@fractievoorzitter
@fractievoorzitter 3 жыл бұрын
Hey DT You can try using `\ls` for `/bin/ls` (assuming `/bin/ls` is priority in $PATH) Not sure if this works on fish though. Maybe you can let me know.
@auroradraco9974
@auroradraco9974 4 жыл бұрын
That's a fun video, definitely need to add one of these aliases to my bashrc
@technologicalwaste7612
@technologicalwaste7612 4 жыл бұрын
Bash is already a game of chance.
@bendover4728
@bendover4728 4 жыл бұрын
DT just RickRolled us out ! LoL
@mrnobody1321
@mrnobody1321 4 жыл бұрын
will use to pick up a fortune. thx dt !
@furezuu
@furezuu 3 жыл бұрын
also there is this game, rpg-cli, available on Arch Linux repos at least, it makes your cd-ing through directories an rpg game)
@AnzanHoshinRoshi
@AnzanHoshinRoshi 4 жыл бұрын
Thank you, Derek. Crappy fun.
@phenelz1ne
@phenelz1ne 3 жыл бұрын
I still don't understand how I am supposed to play the VT animations. Just creating "slowcat.pl" and pasting there the script gives an error after running "./slowcat.pl bambi.vt" it says "permission denied". After adding sudo it just says: "command not found". I understand that it's an old video but maybe there is someone who could help?
@лилпипка
@лилпипка 4 жыл бұрын
we want full version of dt singing rr
@Drazil100
@Drazil100 4 жыл бұрын
I can’t tell if you named it rr for rick roll or Russian roulette.
@juxuanu
@juxuanu 4 жыл бұрын
Somebody's been reading Reddit. 8:55 shuf
@sripradpotukuchi9415
@sripradpotukuchi9415 4 жыл бұрын
1:31 "That's not a very practical command" Well DT, lets just agree to disagree.
@anantgupta7916
@anantgupta7916 3 жыл бұрын
Me: At least I will not get rickrolled in my favorite thing in Linux
@andrewpalm2103
@andrewpalm2103 4 жыл бұрын
Heh. Your rr command reminds me of when I had a TTY console-only install of Sparky Linux. I watched KZbin videos using caca in the ncurses version of VLC. If I stood back from the screen far enough and squinted my eyes, it wasn't too bad!
@samuelschwager
@samuelschwager 4 жыл бұрын
1 out of 10 chance of a reboot ;)
@randalgradle7415
@randalgradle7415 4 жыл бұрын
Can you do this with more than option? For example instead of a 1 in 6 chance you will get the random command, can you make it a 1 in 6 chance that it'll clear?
@dolorsitametblue
@dolorsitametblue 4 жыл бұрын
you can change both commands to whatever you want: [ $[$RANDOM % 10] = 0 ] && echo '10%chance' || echo '90%chance'
@VulcanOnWheels
@VulcanOnWheels 4 жыл бұрын
0:23 I keep getting this message: [: ']' expected 5:10 NNNOOOO!!!! I have been spared this video for so long! Why the heck did you have to do that??? :'( Might there be a way to deliberately slow down the terminal output? I'm WarGames and there are probably other examples of this.
@taidee
@taidee 4 жыл бұрын
You know what, this year I’ve found a lot of fun silly stuff that can happen a shell, na d it’s great because I use an old far less powerful PC as my Arco Linux full time workstation. Of cause Linux runs so fast on that thing too.
@tokiomutex4148
@tokiomutex4148 4 жыл бұрын
That looks like a prolog script.
@geegoo
@geegoo 4 жыл бұрын
Sudo can insult you when typing the password wrong, would be memey to custom it to get rr'ed even in a so more rare way.
@user-kx5es4kr4x
@user-kx5es4kr4x 4 жыл бұрын
COINCIDENCE, oof im on mobile, and it auto corrects it to COINCIDENCE. ok but i was just looking for this yesterday!
@krzysztof-ws9og
@krzysztof-ws9og 4 жыл бұрын
There is also telnet version of "Star wars new hope" to be played in the terminal This command worked on ubuntu for me: telnet towel.blinkenlights.nl But now I am not able to find working telnet client even in AUR
@cldream
@cldream 4 жыл бұрын
It's in the "inetutils" package IIRC.
@twb0109
@twb0109 4 жыл бұрын
Try nethack ;)
@Ohmy4069
@Ohmy4069 4 жыл бұрын
Hello there
@nano4027
@nano4027 4 жыл бұрын
General Kenobi, You are a bold one.
Generate Random Manpages To Learn Linux
17:28
DistroTube
Рет қаралды 16 М.
Saving Time At The Command Line
13:49
DistroTube
Рет қаралды 76 М.
Увеличили моцареллу для @Lorenzo.bagnati
00:48
Кушать Хочу
Рет қаралды 8 МЛН
Ice Cream or Surprise Trip Around the World?
00:31
Hungry FAM
Рет қаралды 22 МЛН
ТВОИ РОДИТЕЛИ И ЧЕЛОВЕК ПАУК 😂#shorts
00:59
BATEK_OFFICIAL
Рет қаралды 6 МЛН
Молодой боец приземлил легенду!
01:02
МИНУС БАЛЛ
Рет қаралды 2,1 МЛН
Let's Share Our Favorite Bash Aliases
16:28
DistroTube
Рет қаралды 32 М.
What is the Smallest Possible .EXE?
17:04
Inkbox
Рет қаралды 520 М.
Creator of git, Linus Torvalds Presents the Fundamentals of git
1:10:15
Developers Alliance
Рет қаралды 148 М.
Free Software Is Under Attack! (Will You Help Defend It?)
32:02
DistroTube
Рет қаралды 45 М.
TLS Handshake Explained - Computerphile
16:59
Computerphile
Рет қаралды 567 М.
Using Bash and the Terminal to understand files
14:09
Luke Smith
Рет қаралды 62 М.
Is CachyOS The Ideal Desktop Linux Distro?
21:02
DistroTube
Рет қаралды 12 М.
Bash and the Terminal for Absolute Noobs
31:21
Luke Smith
Рет қаралды 66 М.
Getting Started With Git and GitLab
24:34
DistroTube
Рет қаралды 43 М.
The History of X11
58:19
RetroBytes
Рет қаралды 278 М.
Увеличили моцареллу для @Lorenzo.bagnati
00:48
Кушать Хочу
Рет қаралды 8 МЛН