LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 01-23-2019, 02:12 PM   #1
Chrislw324
Member
 
Registered: Oct 2018
Posts: 40

Rep: Reputation: Disabled
Couple questions about getting a linux job and scripting


If I want to get an entry level linux admin job, what skills should I start learning?
Currently have A+, Network+, about to take Linux Essentials, and 1 year of Help Desk job.


And second, I'm learning Bash scripting (or is it shell scripting? same thing?) from a book. Is this something I should continue learning, or is it being replaced with scripting in other languages.
Can you do with a python script everything that you can do with a shell script? I haven't been able to find any books on amazon the teach how to write linux scripts in python, so what are some good resources to learn?
 
Old 01-23-2019, 03:38 PM   #2
MensaWater
LQ Guru
 
Registered: May 2005
Location: Atlanta Georgia USA
Distribution: Redhat (RHEL), CentOS, Fedora, CoreOS, Debian, FreeBSD, HP-UX, Solaris, SCO
Posts: 7,831
Blog Entries: 15

Rep: Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669
BASH is Bourne Again Shell (original Bourne shell was just sh and these days that is often linked to bash). Other shells such as KornShell (ksh) were enhancements on Bourne shell. Writing for any these to interpret is indeed "shell scripting". I'd recommend understanding that kind of shell scripting first as it will server you well on almost any Linux/UNIX system because by default you'll be logged into a shell.

There are other "shells" such as csh which is quite different from the Bourne derived shells. They're available also on most Linux/UNIX systems but these days aren't as prevalent in use as the others.

Also "scripting" as you suggest might be any number of things such as Python, Perl, PHP etc...

I've been doing systems administration for the last 25+ years mainly using Bourne shell and its cousins (mostly bash these days - used to do mostly ksh before Linux). Though I've written in Perl and delved into other scripting/coding I get by well in just bash/ksh. It often amazes me how many admins don't even know how to script in bash/ksh. Doing ad hoc scripts and loops save tons of time.
 
Old 01-27-2019, 08:21 AM   #3
TB0ne
LQ Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 26,634

Rep: Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965
Quote:
Originally Posted by Chrislw324 View Post
If I want to get an entry level linux admin job, what skills should I start learning? Currently have A+, Network+, about to take Linux Essentials, and 1 year of Help Desk job.

And second, I'm learning Bash scripting (or is it shell scripting? same thing?) from a book. Is this something I should continue learning, or is it being replaced with scripting in other languages. Can you do with a python script everything that you can do with a shell script? I haven't been able to find any books on amazon the teach how to write linux scripts in python, so what are some good resources to learn?
I agree with MensaWater; bash scripting is pretty ubiquitous, and will save you TONS of time in the future, but **DO NOT** approach things with the attitude of "I only need to learn one"...you do not. The more knowledge you have, the better you can do your job. Learn Python...and perl, bash, and whatever else you can get your hands on. It's not a race, and you don't have to master it the first day, but BEGIN.

And if you want to be an admin, you need to learn admin skills. How do you configure service(x)?? Doesn't matter what...but research/read up on how to configure things. Load up NTP, SMTP, NFS, <whatever> on your own Linux system. Learn where configs typically go, how to diagnose issues when they WON'T start (where to look for logs and how to figure that out). Differences between systemd and non-systemd systems. Learn how to logically walk a chain, to figure out things and how to troubleshoot. It's always easy to say "Well, you just had to edit /etc/xxxxx, and change line 15 to get the problem fixed!!!", but getting TO that solution is what makes you valuable to an employer.

You'll get asked how you would approach things if xxx isn't working. What would you check? How would you check it? THOSE are admin-related tasks that you'll spend your days doing. Writing a script to HELP you do such things is just another tool in your toolbox.
 
1 members found this post helpful.
Old 01-28-2019, 08:09 AM   #4
onebuck
Moderator
 
Registered: Jan 2005
Location: Central Florida 20 minutes from Disney World
Distribution: SlackwareŽ
Posts: 13,925
Blog Entries: 44

Rep: Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159
Member Response

Hi,

I'll chime in here a bit. Diagnostic techniques are valuable for any admin. Lot of what has been said by fellow LQ members are valid suggestions. But to identify, learn and verify issues can be a challenge. Once you know the system and how to break down a problem to lead you to a solution is very important. Learn to use the proper tools to help diagnose issues. Logs can be very helpful to identify and provide the pathway to getting things working again.

Try to keep things simple whenever possible. Looking at the whole picture at once can sometimes complicate problem solving. Once you know how to break things down to the simplest terms then you will soon be able to take the required steps to solve things. No one can look at equation as a whole but must break it down to lead to the solution/answer therefore understanding by breaking down and flowing through the equation.

I suggest that you look at 'man bash' and the following;
Quote:
Just a few links to aid you to gaining some understanding;


1
Linux Documentation Project
2
Rute Tutorial & Exposition
3
Linux Command Guide
4 Bash Beginners Guide
5
Bash Reference Manual
6
Advanced Bash-Scripting Guide
7
Linux Newbie Admin Guide
8
LinuxSelfHelp
9
Utimate Linux Newbie Guide

The above links and others can be found at '
Slackware-Links'. More than just SlackwareŽ links!
Hardware issues may require one to use tools to identify the problem.
Maybe this will help; Tools, Recovery, Diagnostic, Emergency to provide tools.
Quote:
"Knowledge is of two kinds. We Know a subject ourselves, or we know where we can find information upon it."- Samuel Johnsonp
Hope this helps.
Have fun & enjoy!
 
1 members found this post helpful.
Old 02-02-2019, 04:18 PM   #5
Chrislw324
Member
 
Registered: Oct 2018
Posts: 40

Original Poster
Rep: Reputation: Disabled
https://www.amazon.com/Classic-Shell...VP288K87VBB69A

This book was last published in 2005.
Would this be outdated at all for learning bash scripting?
 
Old 02-02-2019, 08:40 PM   #6
berndbausch
LQ Addict
 
Registered: Nov 2013
Location: Tokyo
Distribution: Mostly Ubuntu and Centos
Posts: 6,316

Rep: Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002
Quote:
Originally Posted by Chrislw324 View Post
https://www.amazon.com/Classic-Shell...VP288K87VBB69A

This book was last published in 2005.
Would this be outdated at all for learning bash scripting?
Not outdated, but you asked for a Linux job specifically. This book seems to cover the Bourne Shell, whereas the standard on Linux distros is the Bash ("Born Again Shell", one of the many puns you encounter in open source software names).

Perhaps "Learning the bash Shell" is more pertinent.
 
Old 02-04-2019, 05:07 AM   #7
l0f4r0
Member
 
Registered: Jul 2018
Location: Paris
Distribution: Debian
Posts: 900

Rep: Reputation: 290Reputation: 290Reputation: 290
Quote:
Originally Posted by berndbausch View Post
Perhaps "Learning the bash Shell" is more pertinent.
If OP really wants to learn bash and not sh, I can suggest bash Cookbook: Solutions and Examples for bash Users 2nd Edition as well. Pay attention to the 2nd edition which is recent (end of 2017). Otherwise, you can find the 1st edition (2007) on the Internet.
I've just bought the 2nd edition. So far, it's a pretty good read

Quote:
Originally Posted by berndbausch View Post
[...]whereas the standard on Linux distros is the Bash ("Born Again Shell", one of the many puns you encounter in open source software names).
"Bourne Again Shell"

Last edited by l0f4r0; 02-04-2019 at 05:11 AM.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
LXer: Shell Scripting Part I: Getting started with bash scripting LXer Syndicated Linux News 0 04-29-2015 08:03 AM
Couple Bash Scripting Questions ruberked Solaris / OpenSolaris 6 10-12-2012 04:51 PM
[SOLVED] A couple of questions before getting started with Linux jazzyeagle Linux - Newbie 7 02-17-2010 08:28 AM
RedHat, CentOS, Fedora 11 and getting a job in Linux questions linus72 Linux - General 11 07-22-2009 04:11 AM
Can you start a job without getting the job number spit back out? BrianK Linux - General 5 12-13-2007 08:09 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 07:21 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration