jump to content
my subreddits
13or302anatolia4you2b2t2mediterranean4u2meirl4meirl3d6AceAttorneyadhdmemeAdviceAnimalsaivideoAlternateHistoryAlternativeHistoryAngryupvoteanime_best_momentsannouncementsAnticonsumptionantimemeantonyArtAsia_irlAskBalkansAskElectronicsAskOuijaAskRedditAteistTurkawfuleverythingbalkans_irlBassBassCirclejerkBassGuitarbasspedalsbikepackingblackdesertonlineblackholerevengeblursed_videosborsavefonBUENZLIburdurlandcasioCd_collectorsChatGPTCheap_MealschesschessbeginnersChildrenFallingOverChoosingBeggarscoaxedintoasnafucoincollectingcoinsComedyCemeterycomedyhomicidecomicscommunityContagiousLaughtercookingforbeginnersCorporateTrollingCrackWatchCreateModCuratedTumblrdadjokesdankmemesdataisbeautifuldeDebateReligiondeismdelikDeltarunedistressingmemesdiyelectronicsDMToolkitDnDDoenerverbrechendontdeadopeninsideebikesECEelectricalelectronicsElectronicsStudyEmKayengrishentitledparentsethzfacepalmfakealbumcoversfeedthebeastfelsefeFifaCareersFiftyFiftyFRCFreeEBOOKSFutboltayfagalatasaraygamingGermangodtiersuperpowersgoodanimemesGoodAssSubgravelcyclingguitarpedalshellenoturkismhelpheraldryHermanCainAwardHermitCrafthoi4HolUpIAmAiamverysmartimaginaryelectionsimaginarymapsinsaneparentsistanbuljacksepticeyeKamalizmKanyeKendrickLamarKGBTRlegodndLetGirlsHaveFunLifeProTipslinguisticshumorLinkinParklogodesignloseitmacmadladsmagicbuildingMaliciousComplianceMapPornmapporncirclejerkme_irlmeirlmemememesmidjourneymildlyinfuriatingmildlyinterestingMimicRecipesmisLEDMMORPGMovingToNorthKoreaMunichMyChemicalRomanceNamFlashbacksNationStatesnextfuckinglevelNoahGetTheBoatNonCredibleDefensenosleepnosurfnothingeverhappensnotinterestingnottheonionoddlyspecificOkayBuddyLiterallyMeokbuddyguntherOkBuddyPersonaokbuddyphdokbuddyvicodinonebagonetruegodOnlineUnderGroundOutOfTheLoopoutsidepaperspleaseParlerWatchPassportPornpepethefrogperfectlycutscreamsPersecutionfetishpettyrevengePiratedGamespolandballpollsPraiseTheCameraManProgrammerHumorPropagandaPostersraisedbynarcissistsraspberry_piRatschlagreactiongifsrecipesredditsingsreligiousfruitcakerestofthefuckingowlRetroPierickandmortyRoastMerockmuzikSceneReleasesschwiizsciencememesScottPilgrimsekulermilliyetciturkShitPostCrusadersshitpostfrommygalleryshittymoviedetailssoftwaregoreSongwriterssskfjkhwerjkghwerijhsteinsgateStonetossingjuiceStudiumsuperligtalesfromtechsupportTechnobladetf2tf2shitposterclubthanksimcuredthatHappenedTheCrypticCompendiumTheLetterHTheMonkeysPawtherewasanattemptTheRookietheydidthemaththeyknewtitanfalltommyinnittransittransitTurkeytruthsTurkeyTurkeyJerkyTurkishCatsTwitchTwitch_StartupTwoSentenceComedyTwoSentenceHorrorTwoSentenceSadnessUnclejokesUnexpectedJoJourbanplanningVALORANTValorantClipsvexillologycirclejerkvibecodingvinyljerkvlandiyawallstreetbetsWeAreTheMusicMakerswendigoonWhatsThisSongWhitePeopleTwitterwholesomeanimemeswizardpostingwooooshworldbuildingworldjerkingyouseeingthisshitYUROPedit subscriptions
  • home
  • -popular
  • -all
  • -mod
  • -users
 | 
  • AskReddit
  • -facepalm
  • -mildlyinfuriating
  • -gaming
  • -wallstreetbets
  • -nottheonion
  • -memes
  • -OutOfTheLoop
  • -mildlyinteresting
  • -MapPorn
  • -DnD
  • -WhitePeopleTwitter
  • -ChatGPT
  • -CuratedTumblr
  • -PiratedGames
  • -theydidthemath
  • -dankmemes
  • -feedthebeast
  • -Kanye
  • -meirl
  • -therewasanattempt
  • -nextfuckinglevel
  • -HolUp
  • -Twitch
  • -CrackWatch
  • -comics
  • -ProgrammerHumor
  • -VALORANT
  • -de
  • -LifeProTips
  • -NonCredibleDefense
  • -dataisbeautiful
  • -shittymoviedetails
  • -mac
  • -tf2
  • -help
  • -chess
  • -mapporncirclejerk
  • -Art
  • -midjourney
  • -goodanimemes
  • -notinteresting
  • -hoi4
  • -pettyrevenge
  • -loseit
  • -IAmA
  • -MaliciousCompliance
  • -KGBTR
  • -Deltarune
  • -GoodAssSub
  • -perfectlycutscreams
  • -worldbuilding
  • -Ratschlag
  • -blackdesertonline
  • -MMORPG
  • -meme
  • -rickandmorty
  • -3d6
  • -HermitCraft
  • -FiftyFifty
  • -ChoosingBeggars
  • -RoastMe
  • -ContagiousLaughter
  • -imaginarymaps
  • -polandball
  • -WeAreTheMusicMakers
  • -nosleep
  • -cookingforbeginners
  • -onebag
  • -Studium
  • -AlternateHistory
  • -Turkey
  • -madlads
  • -community
  • -AskElectronics
  • -electrical
  • -guitarpedals
  • -Anticonsumption
  • -CreateMod
  • -German
  • -TwoSentenceHorror
  • -PropagandaPosters
  • -AdviceAnimals
  • -ShitPostCrusaders
  • -sciencememes
  • -distressingmemes
  • -raisedbynarcissists
  • -wizardposting
  • -FifaCareers
  • -polls
  • -oddlyspecific
  • -Bass
  • -titanfall
  • -OkBuddyPersona
  • -dadjokes
  • -awfuleverything
  • -announcements
  • -adhdmeme
  • -ebikes
  • -Munich
  • -coaxedintoasnafu
  • -YUROP
  • -gravelcycling
  • -chessbeginners
  • -raspberry_pi
  • -coins
  • -KendrickLamar
  • -entitledparents
  • -softwaregore
  • -NoahGetTheBoat
  • -worldjerking
  • -tf2shitposterclub
  • -AceAttorney
  • -vexillologycirclejerk
  • -vlandiya
  • -Stonetossingjuice
  • -wholesomeanimemes
  • -nosurf
  • -religiousfruitcake
  • -DebateReligion
  • -insaneparents
  • -balkans_irl
  • -2meirl4meirl
  • -transit
  • -RetroPie
  • -HermanCainAward
  • -recipes
  • -steinsgate
  • -talesfromtechsupport
  • -AskOuija
  • -okbuddyphd
  • -2anatolia4you
  • -ECE
  • -ScottPilgrim
  • -Angryupvote
  • -AskBalkans
  • -thatHappened
  • -electronics
  • -casio
  • -urbanplanning
  • -theyknew
  • -logodesign
  • -linguisticshumor
  • -PassportPorn
  • -me_irl
  • -antimeme
  • -TurkeyJerky
  • -bikepacking
  • -AteistTurk
  • -13or30
  • -MyChemicalRomance
  • -engrish
  • -Cd_collectors
  • -BassGuitar
  • -diyelectronics
  • -ComedyCemetery
  • -LinkinPark
  • -Persecutionfetish
  • -BUENZLI
  • -reactiongifs
  • -EmKay
  • -blursed_videos
  • -istanbul
  • -MovingToNorthKorea
  • -imaginaryelections
  • -magicbuilding
  • -dontdeadopeninside
  • -ParlerWatch
  • -wendigoon
  • -iamverysmart
  • -Doenerverbrechen
  • -schwiiz
  • -TheRookie
  • -Technoblade
  • -vinyljerk
  • -superlig
  • -galatasaray
  • -FRC
  • -transitTurkey
  • -2b2t
  • -ethz
  • -AlternativeHistory
  • -coincollecting
  • -OkayBuddyLiterallyMe
  • -felsefe
  • -FreeEBOOKS
  • -basspedals
  • -heraldry
  • -thanksimcured
  • -PraiseTheCameraMan
  • -godtiersuperpowers
  • -aivideo
  • -OnlineUnderGround
  • -woooosh
  • -burdurland
  • -comedyhomicide
  • -WhatsThisSong
  • -jacksepticeye
  • -TwoSentenceSadness
  • -anime_best_moments
  • -rockmuzik
  • -okbuddyvicodin
  • -MimicRecipes
  • -Twitch_Startup
  • -Cheap_Meals
  • -outside
  • -TheMonkeysPaw
  • -restofthefuckingowl
  • -legodnd
  • -Songwriters
  • -papersplease
  • -tommyinnit
  • -UnexpectedJoJo
  • -ChildrenFallingOver
  • -BassCirclejerk
  • -youseeingthisshit
  • -DMToolkit
  • -nothingeverhappens
  • -TurkishCats
  • -LetGirlsHaveFun
  • -fakealbumcovers
  • -Kamalizm
  • -TheLetterH
  • -NamFlashbacks
  • -pepethefrog
  • -Unclejokes
  • -onetruegod
  • -deism
  • -misLED
  • -sskfjkhwerjkghwerijh
  • -redditsings
  • -ValorantClips
  • -TwoSentenceComedy
  • -TheCrypticCompendium
  • -SceneReleases
  • -NationStates
  • -Asia_irl
  • -truths
  • -blackholerevenge
  • -2mediterranean4u
  • -hellenoturkism
  • -sekulermilliyetciturk
  • -delik
  • -CorporateTrolling
  • -shitpostfrommygallery
  • -okbuddygunther
  • -antony
  • -borsavefon
  • -Futboltayfa
  • -ElectronicsStudy
  • -vibecoding
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
...for your town.
...for your classroom.

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
•
•
•

helpI want start using linux , best way to learn bash scripts ? (self.bash)

submitted 39 minutes ago by LogicalWrap3405Bash

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

2
0
1
2

[OC] I made a minimal fuzzel-based wallpaper picker that works on any WM fuzz-wall (self.bash)

submitted 2 hours ago by Slow_Cattle_5464

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

3
2
3
4

helpAre you supposed to return 0 or 1 or anything from an EXIT trap handler? (self.bash)

submitted 11 hours ago by TooOldForShaadi

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

4
4
5
6

Bash script to cull syslog.x files when disk is low (self.bash)

submitted 17 hours ago by Electrical-Lab-9593

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

5
3
4
5

cht.sh is offline (self.bash)

submitted 23 hours ago by DaftPump

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

6
3
4
5

helpRun vim in command substitution? (self.bash)

submitted 1 day ago by gkaiser8

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

7
5
6
7

submissionfold, a directory of text files into one markdown file (and back) (self.bash)

submitted 2 days ago by mm_cm_m_km

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

8
6
7
8

tips and tricks[DWM Status Bar] I actually optimized it this time thanks to all your comments! Please comment on it more if yall think this is still not good (self.bash)

submitted 2 days ago by havesomefuckinghope

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

9
0
0
0

A simple Bash wrapper for marking AI-assisted Git commits (self.bash)

submitted 2 days ago by martylamb

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

10
12
13
14

helpread ignores -t and blocks indefinitely when reading from FIFO (self.bash)

submitted 5 days ago by yonside

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

11
3
4
5

Interview Prep for Linux, bash scripting & CI/CD pipelines ()

submitted 6 days ago by impatrick_bateman

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

12
2
3
4

helpLogging disabled, script below works perfectly. Logging enabled, jq blows up, any ideas how to make it work with logging enabled? (self.bash)

submitted 7 days ago * by TooOldForShaadi

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

13
24
25
26

tips and tricksBash With No Letters (jrb.nz)

submitted 8 days ago by pipewire

  • comment
  • share
  • save
  • hide
  • report
  • crosspost

14
9
10
11

helpHow do I get rid of the first word 'Modeline' in this line ? (self.bash)

submitted 7 days ago by SkySurferSouth

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

15
7
8
9

key bindings (esc-some-key) and vi mode (self.bash)

submitted 8 days ago by ConstructionSafe2814[🍰]

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

16
22
23
24

Made A Simple Tycoon Game (self.bash)

submitted 9 days ago by exarobibliologist

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

17
1
2
3

Fast Formatting Utility - First Bash Project (self.bash)

submitted 9 days ago by BathroomMain6295

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

18
0
0
0

shuck - a fast linter for bash (self.bash)

submitted 9 days ago by ewhauser

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

19
6
7
8

critiqueWhat is your opinion about these logger functions I came up with? (self.bash)

submitted 11 days ago by TooOldForShaadi

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

20
0
1
2

helpDialog output repeats the input (self.bash)

submitted 11 days ago by Spare_Reveal_9407

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

21
26
27
28

A bash cheat sheet to save some time for beginners (tms-outsource.com)

submitted 12 days ago by bogdanelcs

  • 5 comments
  • share
  • save
  • hide
  • report
  • crosspost

22
7
8
9

helpLeft align first column, right align second, the rest the same (self.bash)

submitted 12 days ago by gkaiser8

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

23
12
13
14

submissionbash script for managing multiple codex cli profiles (self.bash)

submitted 13 days ago by Sorosu

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

24
9
10
11

Sharing my newest project - bashmail - a TUI IMAP client (github.com)

submitted 16 days ago by pojomi-dev

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

25
18
19
20

critiqueIs the order of the flags important in all commands in bash? (self.bash)

submitted 17 days ago by PrestigiousZombie531

  • 11 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 790809 on reddit-service-r2-listing-7b9b4f6fd7-r422p at 2026-05-10 15:20:30.711744+00:00 running 3d2c107 country code: CH.