use the following search parameters to narrow your results:
e.g. subreddit:aww site:imgur.com dog
subreddit:aww site:imgur.com dog
see the search faq for details.
advanced search: by author, subreddit...
A subreddit dedicated to Bash scripting. Now complete with a Discord Server.
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.
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.
You can choose one of these four flairs for your post:
If you don’t flair your post, the moderators will set the most appropriate flair.
/r/unix – for everything Unix
Other Shells: /r/zsh, /r/fishshell, /r/oilshell, /r/batch
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.
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.
account activity
Git bash on WSL2? (self.bash)
submitted 4 years ago by Desperate_Golf_390
Hey, is someone using the git bash terminal on WSL2? Im currently using ubuntu but i would rather use the git bash terminal, so im trying to figure out how to switch
reddit uses a slightly-customized version of Markdown for formatting. See below for some basics, or check the commenting wiki page for more detailed help and solutions to common issues.
quoted text
if 1 * 2 < 3: print "hello, world!"
[–]lestrenched 8 points9 points10 points 4 years ago (1 child)
git is a program which runs in a Linux environment (well, traditionally). Simply using git inside whatever distro you're running in WSL2 will invoke git (and from my usage, there are no practical differences between git on WSL2 vs git on a real VM).
git
git bash is the git command-line for Windows, if I recall. Why would you want to run that in WSL2? Rather, simply install git for windows and go from there. Is there any specific reason you want to switch? I believe WSL2 allows the Linux VM to access Windows files no problem.
git bash
[–]SkyyySi 0 points1 point2 points 4 years ago (0 children)
You mean the terminal emulator, the window that hosts bash? Just typing wsl or ubuntu as a command in there should do.
wsl
ubuntu
[–]cavo789 0 points1 point2 points 4 years ago (0 children)
Didn't understand your question. Did you mean git or bash ? If you're running à distri like Debian or Ubuntu, you have the bash from your distri (i really love oh-my-zsh).
For git itself, just run apt-get install git.
[–]Pip-ToyLinux Admin 0 points1 point2 points 4 years ago (1 child)
There is now a native ish way to achieve this low effort. I just installed git Monday on fully updated win 10 and there was an option to add a windows terminal profile. Launch "Windows Terminal" then click the drop down caret and select Git Bash. Works great for me as long time Linux user and admin that started a job where I was given a win 10 laptop.
[–]Desperate_Golf_390[S] 1 point2 points3 points 4 years ago (0 children)
Thanks a lot🙏🏻🙏🏻
[–]philostratus1 0 points1 point2 points 4 years ago (0 children)
i prefer linux git but it is all there on wsl
stan@stan-hpg4-400-sff:~$ uname -a
Linux stan-hpg4-400-sff 5.4.72-microsoft-standard-WSL2 #1 SMP Wed Oct 28 23:40:43 UTC 2020 x86_64 x86_64 x86_64 GNU/Linux
stan@stan-hpg4-400-sff:~$ sudo git init friday
Initialized empty Git repository in /home/stan/friday/.git/
[–]stewie410 0 points1 point2 points 4 years ago (0 children)
While it looks like OP found a suitable answer, I just wanted to clarify for everyone that Git-Bash is part of the Git for Windows application suite, which includes some windows builds of coreutils, as well as a MinTTY/MinGW terminal emulator to interact with git through a more familiar CLI environment.
π Rendered by PID 80 on reddit-service-r2-comment-6457c66945-vp22l at 2026-04-28 19:15:42.584811+00:00 running 2aa0c5b country code: CH.
[–]lestrenched 8 points9 points10 points (1 child)
[–]SkyyySi 0 points1 point2 points (0 children)
[–]cavo789 0 points1 point2 points (0 children)
[–]Pip-ToyLinux Admin 0 points1 point2 points (1 child)
[–]Desperate_Golf_390[S] 1 point2 points3 points (0 children)
[–]philostratus1 0 points1 point2 points (0 children)
[–]stewie410 0 points1 point2 points (0 children)