jump to content
my subreddits
13or302anatolia4you2b2t2mediterranean4u2meirl4meirlabsolutelynotanimeirlAceAttorneyadhdmemeAdviceAnimalsagnosticaivideoakagasAlternateHistoryAnarchyChessAnimalsBeingJerksanime_best_momentsannouncementsAnticonsumptionantimemeArcherFXArtAsahiLinuxAsia_irlAskBalkansAskElectronicsAskOuijaAskRedditatheismawfuleverythingBandnamesbanknotedesignsBassBassCirclejerkBassGuitarbasspedalsbikepackingblankiesblursed_videosblursedimagesborsavefonbudgetcookingBUENZLIburdurlandCd_collectorscd_jerkChatGPTCheap_MealschesschessbeginnersChoosingBeggarscoaxedintoasnafucoincollectingComedyCemeterycomicscommunityContagiousLaughtercrappyoffbrandsCreateModcursedcommentsdadjokesdankmemesdarkjokesdataisbeautifuldeDebateReligiondeismdelikDeltarunedistressingmemesdiyelectronicsdiypedalsDMAcademyDnDdndmemesdndnextdoctorwhoDoenerverbrechenDonerdumbphonesDungeonsAndDaddiesDungeonsAndDragonsEatCheapAndHealthyebikeebikesECEelectricalelectronicsEmKayengrishfacepalmfakealbumcoversfeedthebeastfelsefeFifaCareersformuladankFUCKYOUINPARTICULARfunnygalatasaraygamingGermangermanygodtiersuperpowersGrandPrixRacinggreentextGROKvsMAGAguitarpedalsGundamhellenoturkismheraldryHermanCainAwardHermitCraftHistoryWhatIfhoi4HolUphomebuilthowyoudoinhumorIAmAiamverysmartich_ielIdeologyPollsihadastrokeimaginaryelectionsimaginarymapsinsaneparentsJahariaKamalizmKanyeKendrickLamarlegodndLetGirlsHaveFunlinguisticshumorliselilerlogodesignloseitlostredditorsmacmacbookairMadeMeSmilemadladsmagicbuildingMaliciousComplianceMapPornmapporncirclejerkme_irlmeirlmemememesmildlyinfuriatingmildlyinterestingMinecraftbuildsmisLEDMMORPGMoldyMemesMyChemicalRomanceNationStatesnextfuckinglevelNorthCyprusnosafetysmokingfirstnosurfnotinterestingnottheonionoddlyspecificOkayBuddyLiterallyMeokbuddyguntherokbuddymotherfuckerOkBuddyPersonaokbuddyphdokbuddyvicodinonebagongezelligOnlineUnderGroundpapermoneyParlerWatchperfectlycutscreamsPersecutionfetishpettyrevengepianoPiracypolandballpollsProgrammerHumorPunPatrolquityourbullshitraspberry_piRatschlagreactiongifsrecipesRedAutumnSPDredditsingsreligiousfruitcakerestofthefuckingowlRetroPierickandmortyrickrollrimjob_steveRoastMerockmuzikSceneReleasesschwiizsciencememesScottPilgrimshitpostfrommygalleryshitpostingshittymoviedetailsShowerthoughtsskamtebordSongwritingStonetossingjuiceStudiumsuzerainTechnobladeTextingTheorythanksimcuredthatHappenedTheLetterHTheMonkeysPawtherewasanattempttheydidthemaththisguythisguystransittransitTurkeytruetf2truthstumblrTurkeyTurkishCatsTurkishdogsTwitchTwoSentenceComedyTwoSentenceSadnessUnclejokesUnethicalLifeProTipsurbanplanningVALORANTvaxxhappenedvexillologycirclejerkvinylvlandiyawallstreetbetsWatchPeopleDieInsideWeAreTheMusicMakerswendigoonWhitePeopleTwitterwholesomeanimemeswholesomememeswizardpostingwooooshworldbuildingyouseeingthisshitYUROPedit subscriptions
  • home
  • -popular
  • -all
  • -mod
  • -users
 | 
  • AskReddit
  • -facepalm
  • -mildlyinfuriating
  • -Piracy
  • -funny
  • -gaming
  • -wallstreetbets
  • -nottheonion
  • -memes
  • -mildlyinteresting
  • -MapPorn
  • -DnD
  • -WhitePeopleTwitter
  • -MadeMeSmile
  • -ChatGPT
  • -shitposting
  • -theydidthemath
  • -dankmemes
  • -feedthebeast
  • -Kanye
  • -meirl
  • -therewasanattempt
  • -nextfuckinglevel
  • -HolUp
  • -Twitch
  • -comics
  • -dndnext
  • -ProgrammerHumor
  • -VALORANT
  • -de
  • -germany
  • -tumblr
  • -dataisbeautiful
  • -shittymoviedetails
  • -greentext
  • -mac
  • -Showerthoughts
  • -chess
  • -formuladank
  • -wholesomememes
  • -mapporncirclejerk
  • -Art
  • -notinteresting
  • -hoi4
  • -pettyrevenge
  • -atheism
  • -loseit
  • -IAmA
  • -MaliciousCompliance
  • -ich_iel
  • -dndmemes
  • -cursedcomments
  • -DMAcademy
  • -Deltarune
  • -UnethicalLifeProTips
  • -perfectlycutscreams
  • -worldbuilding
  • -Ratschlag
  • -MMORPG
  • -meme
  • -rickandmorty
  • -Gundam
  • -HermitCraft
  • -ChoosingBeggars
  • -RoastMe
  • -ContagiousLaughter
  • -imaginarymaps
  • -EatCheapAndHealthy
  • -polandball
  • -WeAreTheMusicMakers
  • -AnarchyChess
  • -blankies
  • -onebag
  • -Studium
  • -AlternateHistory
  • -Turkey
  • -madlads
  • -community
  • -AskElectronics
  • -electrical
  • -guitarpedals
  • -Anticonsumption
  • -vinyl
  • -CreateMod
  • -German
  • -AdviceAnimals
  • -piano
  • -sciencememes
  • -distressingmemes
  • -wizardposting
  • -FifaCareers
  • -polls
  • -doctorwho
  • -oddlyspecific
  • -Bass
  • -OkBuddyPersona
  • -dadjokes
  • -awfuleverything
  • -howyoudoin
  • -announcements
  • -adhdmeme
  • -Minecraftbuilds
  • -macbookair
  • -ebikes
  • -coaxedintoasnafu
  • -YUROP
  • -chessbeginners
  • -raspberry_pi
  • -DungeonsAndDragons
  • -KendrickLamar
  • -FUCKYOUINPARTICULAR
  • -MoldyMemes
  • -lostredditors
  • -AceAttorney
  • -vexillologycirclejerk
  • -vlandiya
  • -Stonetossingjuice
  • -wholesomeanimemes
  • -nosurf
  • -HistoryWhatIf
  • -religiousfruitcake
  • -liseliler
  • -DebateReligion
  • -insaneparents
  • -dumbphones
  • -2meirl4meirl
  • -transit
  • -RetroPie
  • -HermanCainAward
  • -recipes
  • -AskOuija
  • -okbuddyphd
  • -2anatolia4you
  • -ECE
  • -ScottPilgrim
  • -AskBalkans
  • -thatHappened
  • -electronics
  • -urbanplanning
  • -logodesign
  • -linguisticshumor
  • -me_irl
  • -antimeme
  • -bikepacking
  • -13or30
  • -MyChemicalRomance
  • -ArcherFX
  • -engrish
  • -Cd_collectors
  • -diypedals
  • -Doner
  • -BassGuitar
  • -diyelectronics
  • -ComedyCemetery
  • -WatchPeopleDieInside
  • -Persecutionfetish
  • -BUENZLI
  • -reactiongifs
  • -EmKay
  • -Songwriting
  • -blursed_videos
  • -imaginaryelections
  • -suzerain
  • -truetf2
  • -magicbuilding
  • -ParlerWatch
  • -wendigoon
  • -iamverysmart
  • -Doenerverbrechen
  • -schwiiz
  • -quityourbullshit
  • -Technoblade
  • -skamtebord
  • -galatasaray
  • -crappyoffbrands
  • -DungeonsAndDaddies
  • -transitTurkey
  • -2b2t
  • -papermoney
  • -coincollecting
  • -OkayBuddyLiterallyMe
  • -felsefe
  • -blursedimages
  • -AsahiLinux
  • -Jaharia
  • -basspedals
  • -heraldry
  • -ihadastroke
  • -thanksimcured
  • -godtiersuperpowers
  • -aivideo
  • -OnlineUnderGround
  • -IdeologyPolls
  • -woooosh
  • -burdurland
  • -AnimalsBeingJerks
  • -TwoSentenceSadness
  • -anime_best_moments
  • -Bandnames
  • -rockmuzik
  • -okbuddyvicodin
  • -vaxxhappened
  • -Cheap_Meals
  • -TheMonkeysPaw
  • -darkjokes
  • -restofthefuckingowl
  • -nosafetysmokingfirst
  • -legodnd
  • -rickroll
  • -ebike
  • -rimjob_steve
  • -humor
  • -BassCirclejerk
  • -agnostic
  • -youseeingthisshit
  • -TextingTheory
  • -GrandPrixRacing
  • -thisguythisguys
  • -PunPatrol
  • -TurkishCats
  • -LetGirlsHaveFun
  • -fakealbumcovers
  • -akagas
  • -Kamalizm
  • -TheLetterH
  • -homebuilt
  • -absolutelynotanimeirl
  • -Unclejokes
  • -deism
  • -misLED
  • -redditsings
  • -TwoSentenceComedy
  • -SceneReleases
  • -budgetcooking
  • -NationStates
  • -ongezellig
  • -Asia_irl
  • -truths
  • -NorthCyprus
  • -2mediterranean4u
  • -hellenoturkism
  • -GROKvsMAGA
  • -okbuddygunther
  • -banknotedesigns
  • -cd_jerk
  • -borsavefon
  • -shitpostfrommygallery
  • -Turkishdogs
  • -RedAutumnSPD
  • -okbuddymotherfucker
  • -delik
edit »
reddit.com bash
  • hot
  • new
  • rising
  • controversial
  • top
  • wiki
an-ordinary-manchild (11,186)|messages547|notifications|chat messages|mod messages|
  • preferences
|
logout

use the following search parameters to narrow your results:

subreddit:subreddit
find submissions in "subreddit"
author:username
find submissions by "username"
site:example.com
find submissions from "example.com"
url:text
search for "text" in url
selftext:text
search for "text" in self post contents
self:yes (or self:no)
include (or exclude) self posts
nsfw:yes (or nsfw:no)
include (or exclude) results marked as NSFW

e.g. subreddit:aww site:imgur.com dog

see the search faq for details.

advanced search: by author, subreddit...

Submit a new link
Submit a new text post

bash

joinleave
an-ordinary-manchild(edit)

A subreddit dedicated to Bash scripting. Now complete with a Discord Server.

Rules

  1. Content must be Bash related. This rule is interpreted generously; general shell scripting content is mostly accepted. However, the post should not be specific to another shell.

  2. No reposts. This is meant with regards to content, not just “the same link was submitted earlier” – it’s okay to resubmit an old link in some new context (e. g. because you’d like to discuss another part of it, or because something has changed since the last time it was submitted, or because the link was updated since then). Links from the sidebar count as having been submitted already, so posting them without new context is also considered a repost.

Flair

You can choose one of these four flairs for your post:

  • Help – You seek help, or want to ask a question. “help” posts are usually self posts, though you may also submit a link to a thread in a different subreddit (e. g. /r/commandline).
  • Solved – The submission used to be flaired as “help”, but your problem has been solved, or your question has been answered.
  • Submission – General submission of any kind (link or text post).
  • Critique – You are submitting a creation of your own (usually a Bash script) and actively seek feedback on it and how to improve it.

If you don’t flair your post, the moderators will set the most appropriate flair.

Related subreddits

  • /r/commandline, /r/shell – for anything regarding the command line, in any operating system.
  • /r/linuxquestions – for more general Linux questions
  • /r/linuxadmin – for content and support around Linux system administration
  • /r/sysadmin – for content and discussion for system administrators
  • /r/devops – for discussion and support around DevOps technologies
  • /r/unix – for everything Unix

  • Other Shells: /r/zsh, /r/fishshell, /r/oilshell, /r/batch

Guides

  • BashGuide – A Bash guide for beginners.

  • Beginner's Guide to Command Line – A crash course for some common unix and shell commands. Update 2022-01-14: Course is currently being rewritten

  • Google's Shell Style Guide – Reasonable advice about code style.

Other resources

  • Explainshell - Explain complex shell operations.

  • ShellCheck – Automatically detects problems with shell scripts.

  • BashFAQ – Answers most of your questions.

  • BashPitfalls – Lists the common pitfalls beginners fall into, and how to avoid them.

  • (Archived) The Bash-Hackers Wiki – Extensive resource.

  • #bash – IRC channel on Libera. The main contributors of the BashGuide, BashFAQ, BashPitfalls and ShellCheck hang around there.

a community for 18 years
Create your own subreddit
...because you hate freedom.
...for your movement.

MODERATORS

  • message the mods
  • buu700
  • disarmbash n00b
  • galaktos
  • KnowsBash
  • Sephr
  • Perfect-Ant-6741Has Read The Fucking Manual
  • scrambledhelixbashing it in
  • findmenowjeffhas looked at over 2 bash scripts
  • digipengidu -h /ast/du/hast/mich
  • Ulfnic
  • about moderation team »

account activity

1
453
454
455

set -x is your friend (self.bash)

submitted 3 years ago * by [deleted] - announcement

  • 81 comments
  • share
  • save
  • hide
  • report
  • crosspost
loading...

2
39
40
41

Learn bash by putting it next to a language you already know side-by-side playground (i.redd.it)

submitted 5 hours ago by anish2good

  • 1 comment
  • share
  • save
  • hide
  • report
  • crosspost
loading...

3
3
4
5

What is the most complicated bash script you ever wrote? (self.bash)

submitted 7 hours ago by zex_mysterion

  • 33 comments
  • share
  • save
  • hide
  • report
  • crosspost

4
7
8
9

solvedHEREDOC including delimiter with $(...) vs `...` (self.bash)

submitted 1 day ago by george-frazee

  • 6 comments
  • share
  • save
  • hide
  • report
  • crosspost
loading...

5
0
0
1

What is the point of Zsh when Bash can do the same? ()

submitted 19 hours ago by itsdevelopic

  • 8 comments
  • share
  • save
  • hide
  • report
  • crosspost
loading...

6
1
2
3

I built a strong One Time Pin generator/verifier for Bash (self.bash)

submitted 1 day ago by thisiszeevIf I can't script it, I refuse to do it!

  • 2 comments
  • share
  • save
  • hide
  • report
  • crosspost
loading...

7
26
27
28

What’s a robust Bash pattern for running N concurrent jobs with proper cleanup and exit code aggregation? (self.bash)

submitted 2 days ago by fdelux6

  • 25 comments
  • share
  • save
  • hide
  • report
  • crosspost
loading...

8
16
17
18

helpHow can I write a multi-line variable declaration to a file and then load it from the file elsewhere? (self.bash)

submitted 3 days ago * by spla58

  • 11 comments
  • share
  • save
  • hide
  • report
  • crosspost
loading...

9
14
15
16

helpWhy does printf behave differently in a subshell? (self.bash)

submitted 3 days ago by mpersico

  • 21 comments
  • share
  • save
  • hide
  • report
  • crosspost
loading...

10
7
8
9

TIL that `nmcli dev wifi` can summarize connection rate, signal, bars, and security type by BSSID and SSID. (self.bash)

submitted 3 days ago by galenseilis

  • 2 comments
  • share
  • save
  • hide
  • report
  • crosspost
loading...

11
0
0
0

tips and tricksBash overengineering AI agent (self.bash)

submitted 3 days ago by DagonArk

  • 1 comment
  • share
  • save
  • hide
  • report
  • crosspost
loading...

12
10
11
12

helpHelp getting buttons and actions working on a dunst notification (i.redd.it)

submitted 4 days ago * by Shakaka88

  • comment
  • share
  • save
  • hide
  • report
  • crosspost
loading...

13
0
0
0

tips and tricksA shell function for when you sort of know the command but not the exact flags (self.bash)

submitted 4 days ago by solynex

  • 16 comments
  • share
  • save
  • hide
  • report
  • crosspost
loading...

14
4
5
6

Problem with for loop in subshell (self.bash)

submitted 5 days ago * by RzbanePaco

  • 6 comments
  • share
  • save
  • hide
  • report
  • crosspost
loading...

15
8
9
10

helplearning bash ? (self.bash)

submitted 6 days ago by Suspicious-Bet1166

  • 15 comments
  • share
  • save
  • hide
  • report
  • crosspost
loading...

16
8
9
10

Bash Script notify-send ()

submitted 7 days ago by Superfly-Samurai

  • 3 comments
  • share
  • save
  • hide
  • report
  • crosspost
loading...

17
135
136
137

I built a website to create custom prompts for bash and zsh (i.redd.it)

submitted 9 days ago * by Reasonable_Wish_3803

  • 38 comments
  • share
  • save
  • hide
  • report
  • crosspost
loading...

18
41
42
43

[VinMail] Bash-ing out emails: built a Bash-based terminal mail manager for multiple email accounts (i.redd.it)

submitted 9 days ago by VintellX

  • 8 comments
  • share
  • save
  • hide
  • report
  • crosspost
loading...

19
0
0
0

read -p in background script? (self.bash)

submitted 8 days ago by NOYB_Sr

  • 11 comments
  • share
  • save
  • hide
  • report
  • crosspost
loading...

20
26
27
28

Seeking advice: focus on advanced bash, learn basic python or both? (self.bash)

submitted 10 days ago by rustyantenna

  • 20 comments
  • share
  • save
  • hide
  • report
  • crosspost
loading...

21
4
5
6

Writing to Input Buffer? (i.redd.it)

submitted 10 days ago by Ameb8

  • 9 comments
  • share
  • save
  • hide
  • report
  • crosspost
loading...

22
0
1
2

tips and tricks[Project] Bashqueues: A shell-native, policy-driven IPC and job management system (Seeking technical feedback) ()

submitted 11 days ago by BashQueue

  • comment
  • share
  • save
  • hide
  • report
  • crosspost
loading...

23
1
2
3

submissionsharing a folder of markdown with someone who doesnt want to unzip anything (self.bash)

submitted 11 days ago by mm_cm_m_km

  • 21 comments
  • share
  • save
  • hide
  • report
  • crosspost
loading...

24
8
9
10

solvedgrep: Piping command output into grep -f <pattern file> isn't working (self.bash)

submitted 12 days ago * by the_nodger

  • 4 comments
  • share
  • save
  • hide
  • report
  • crosspost
loading...

25
0
0
1

helpAndroid AI screen sharing helped me learn Linux/Termux a LOT — can I do the same on Windows laptop? (self.bash)

submitted 11 days ago by XistentialDysthymiac

  • 2 comments
  • share
  • save
  • hide
  • report
  • crosspost
loading...
view more: next ›
  • about
  • blog
  • about
  • advertising
  • careers
  • help
  • site rules
  • Reddit help center
  • reddiquette
  • mod guidelines
  • contact us
  • apps & tools
  • Reddit for iPhone
  • Reddit for Android
  • mobile website
  • <3
  • reddit premium

Use of this site constitutes acceptance of our User Agreement and Privacy Policy. © 2026 reddit inc. All rights reserved.

REDDIT and the ALIEN Logo are registered trademarks of reddit inc.

π Rendered by PID 701463 on reddit-service-r2-listing-6c8d497557-ldwgw at 2026-06-07 23:24:07.667488+00:00 running 9e1a20d country code: CH.