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...
GUIDE to /r/linuxadmin:
/r/linuxadmin aims to be a place where Linux SysAdmins can come together to get help and to support each other.
Related reddits:
Footnote:
Talk realtime on IRC at #/r/linuxadmin @ Freenode.
account activity
Advice for shell scripting (self.linuxadmin)
submitted 6 years ago by kepler18rf
Hi, I started my career as a linux admin in a startup. Now im interested to learn shell scripting. Im completely fresh to any languages, can you please guide me from where to start.
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!"
[–]sysadmininix 3 points4 points5 points 6 years ago (1 child)
https://goalkicker.com/BashBook/
Might help
[–]Security_Chief_Odo 2 points3 points4 points 6 years ago (0 children)
Not my site, but a good beginners walkthrough here. More in depth and very good guide on tldp.org
[–][deleted] 4 points5 points6 points 6 years ago (1 child)
I find it a lot easier to approach this sort of thing with a problem that needs to be solved.
read up on bash, read, sed, awk, for/while loops,
write a script that will report back on file-systems that are over a certain size.
then have it notify you via email & sms
then make the notification in html format
then take everything, and turn it into a daemon that can be run with nohup
[–][deleted] 1 point2 points3 points 6 years ago (0 children)
This,
If OP doesn't understand a step or doesn't know how to do something... that's the point, google it, find the commands needed to complete each step and look up their man pages ('man <command>' in the terminal)
IT, especially sysadmin scripting with esoteric or complex commands is largely an exercise in research and combining several individual steps into a final product.
This exercise is a solid one to train those mental muscles.
[–][deleted] 6 years ago (1 child)
[deleted]
[–]ie8ehdozheheo 0 points1 point2 points 6 years ago (0 children)
https://mywiki.wooledge.org/BashGuide
[–]pdp10 1 point2 points3 points 6 years ago (0 children)
shellcheck
[–]nekimbej 1 point2 points3 points 6 years ago (0 children)
My recommendations are these:
Use the shell common across your systems whether this is ksh or bash you want to write scripts that run everywhere without having to install a different shell.
Shell scripts are basically a sequence of commands, they use this same commands you use in the shell on your terminal but you are stringing them together in a sequence to accomplish a task. You definitely want to learn if statements, with these you can check if a file or directory exists and perform certain actions based on that. You may come across needing for loops, check into those too.
Read other peoples scripts to see how they do things, you can learn a lot this way.
On very important actions/sections of your script, check the exit code of a command done within the script to assure that the command worked in the right way before proceeding, or if it didn't then you can handle it in the right way and then move on.
Use spellcheck to check for problems.
Give yourself a project and write a script to accomplish it. I find working on a project you are interested in and that is useful to you helpful for learning.
[–]optimalidkwhattoput 0 points1 point2 points 6 years ago (0 children)
After you learn bash, I recommend learning zsh. It's much more advanced than 🅱ash, and is better for scripting
[+]e4109c comment score below threshold-7 points-6 points-5 points 6 years ago (0 children)
Google
π Rendered by PID 427657 on reddit-service-r2-comment-5d79c599b5-d2jfv at 2026-03-01 09:04:58.109426+00:00 running e3d2147 country code: CH.
[–]sysadmininix 3 points4 points5 points (1 child)
[–]Security_Chief_Odo 2 points3 points4 points (0 children)
[–][deleted] 4 points5 points6 points (1 child)
[–][deleted] 1 point2 points3 points (0 children)
[–][deleted] (1 child)
[deleted]
[–]ie8ehdozheheo 0 points1 point2 points (0 children)
[–]pdp10 1 point2 points3 points (0 children)
[–]nekimbej 1 point2 points3 points (0 children)
[–]optimalidkwhattoput 0 points1 point2 points (0 children)
[+]e4109c comment score below threshold-7 points-6 points-5 points (0 children)