Language Selection

English French German Italian Portuguese Spanish

Linux Commands for 99 Bottles of Beer

Filed under
Linux
HowTos
Humor

Linux server admins need good scripting skills and command-line chops, but who says they can't be fun? Learn Bash Karaoke with 99 Bottles of Beer on the Wall, quickly find disk hogs, and display used/free disk space.

99 Bottles of Beer on the Wall

How about a bit of geek Karaoke? Just copy and paste this into a Bash session, and it will look like this:

$ x="bottles of beer";y="on the wall";for b in {99..1};do echo "$b $x $y, $b $x. Take one down pass it around, $(($b-1)) $x $y"; sleep 3;done

99 bottles of beer on the wall, 99 bottles of beer. Take one down pass it around, 98 bottles of beer on the wall
98 bottles of beer on the wall, 98 bottles of beer. Take one down pass it around, 97 bottles of beer on the wall
97 bottles of beer on the wall, 97 bottles of beer. Take one down pass it around, 96 bottles of beer on the wall

And so on, until it finishes.

rest here




More in Tux Machines

NGINX moves towards web server dominance with European expansion

Web server NGINX powers more than 317 million sites around the globes, and has rapidly replaced Apache as the engine of choice for the world's 100,000 busiest, counting Netflix, Airbnb and Dropbox among its high-profile clients. NGINX Inc - the company set up to commercialise the open source technology - has now set its sights on developing its business in Europe and recently opened a new EMEA headquarters in Cork, Ireland as a launching point to the region. NGINX began life as a web server written by a Russian engineer called Igor Syosev in 2002 while he was working as a system administrator for the portal site Rambler. Read more

Red Hat and Fedora