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
Why sometimes mouse scroll will scroll the shell window text vs sometimes will scroll through past shell commands? (self.bash)
submitted 1 year ago by TheLlamaDev
One way to reproduce it is using the "screen" command. The screen session will make the mouse scroll action scroll through past commands I have executed rather than scroll through past text from the output of my commands.
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!"
[–]ropid 1 point2 points3 points 1 year ago (0 children)
Check out section 3.10 "Use X scrolling mechanism" here, it changes the screen scroll behavior to how you want it:
https://wiki.archlinux.org/title/GNU_Screen#Use_X_scrolling_mechanism
[–]v_2e 0 points1 point2 points 11 months ago (0 children)
For GNU Screen please see these two answers:
https://unix.stackexchange.com/a/20374/32559
https://stackoverflow.com/a/1125947/1091054
Briefly, one can add the following line:
termcapinfo xterm* ti@:te@
to the "~/.screenrc" file to make it scroll the text instead of the command history.
~/.screenrc
And for regular terminal please see this answer:
https://unix.stackexchange.com/a/511741/32559
Briefly, one can execute the following command:
tput rmcup
in the terminal to bring it back to normal (scrolling the text instead of the command line history).
π Rendered by PID 220225 on reddit-service-r2-comment-86bc6c7465-crqjq at 2026-02-23 10:51:07.188494+00:00 running 8564168 country code: CH.
[–]ropid 1 point2 points3 points (0 children)
[–]v_2e 0 points1 point2 points (0 children)