Creating Practical Scripts

Applying your scripting knowledge to everyday tasks7 H 10 M

In this course, you will learn some real-world applications of your scripting skills and how to use them to reach your end goals.

  • User Account Manager
    • Overview
    • User Account Manager Main Menu
    • User Account Manager Main Menu Pt2
    • User Account Manager Add/Remove Users
    • User Account Manager Add/Remove Users Pt2
    • User Account Manager Add/Remove Users Pt3
    • User Account Manager Add/Remove Users Pt4
    • User Account Manager Default Shell
    • User Account Manager Default Shell Part 2
    • User Account Manager Password Reset
    • User Account Manager Account Lock
    • User Account Manager Account Lock Part 2
    • User Account Manager Account Lock Part 3
    • User Account Manager Change Username
    • User Account Manager Change Username Part 2
  • Backup Utility
    • Backup Utility
    • Backup Utility Part 2


3 M

itprotv course thumbnailitprotv course thumbnailitprotv course thumbnail
  • Episode Description
  • Transcript

In this series, Daniel and Justin endeavor to demonstrate some ways in which you might employ your scripting knowledge to practical, real-world uses. They will do this by creating a User Account Management system that will call upon many key scripting concepts and practices to reach its end goal.

[SOUND] In this segment, we're gonna take a brief, short little amount of time to overview what we can expect from our upcoming Creating Practical Scripts series. Hopefully you guys get a lot out of this. This is where we're going to take the culmination. Everything that we've learned in the other shell scripting series-es. And we're gonna kinda basically put that into use. We're gonna put that into practical ideas, right? I wanna give you guys some thoughts and some ways in which you go how can I take some of the shell scripting knowledge that I've obtained and use that in some way that's useful? So that's what this series is gonna be all about. Unlike all our other tech skills, this is not a certification-based thing. This is for anyone that just wants to get their feet wet, get up and running with using actual Linux shell scripting inside of a bash environment. So here what we're gonna do is, for the most part, we're going to create a user management system. That's gonna be our template. Again, it's just an idea to give you guys ideas. In no way, shape, or form are supposed to be the end all be all of script writing. It's more to give you a platform, a basis to go, I see now how I can use scripting to my benefit. I can make a program that does something. I see a problem and now I can write a script to solve said problem and here's how that might look. So I'm taking that approach of working with a user management system. Instead of having to pull from all of the different 900 things that we have available to us inside of our Linux operating system to manage and administrate a user or users' accounts, I'm going to make my own program where it's gonna be menu-driven. That's where we're gonna start off with. We're gonna create a menu system that will work our way through the different functions that we're going to create and do the different things there. We're gonna add functionality like add, remove users, right, that's always a good one. And we're gonna be able to work with account lockouts. What else are we gonna do? I think we're gonna change the default shells. We're also going to change passwords. Sometimes that happens, people will type in, they hit password policy or their password has expired. Things of these nature do happen. We need to be able to work with that and manipulate that for our end users. What else do I wanna do with that? Work with account lockouts, also change usernames, things of that nature. Again, sky is really the limit when it comes to this kind of thing. We're just gonna settle in on some of the major things that typically we have to work with as administrators for our users. We're gonna use a script. We're going to create a script that's gonna make that easy for us because that's what it's all about when it comes to writing scripts. How can we used it in practical? We're also going to write a backup utility, just to give some variety to giving you more practicum. And like I said really the sky is the limit when it comes to this series. We could make this a million parts if we wanted to because you never know what cool little problem's gonna show itself. And you sit back, and you take a look and go, you know what? I think I could write a script that will solve this issue that I won't have to do this anymore. I could automate this task. I have a user, I have a help desk, and they need to be able to do this repeated task over and over again. And right now it's really clunky. How can we make that a whole lot easier? Hopefully, we're gonna be able to take all of your shell scripting knowledge that you've learned thus far and apply it to that type of problems. And again, that's all I wanna do, is to give you some ideas on how you can work with that shell scripting knowledge. So join us in the practical script writing. It's gonna be a lot of fun. We're gonna make some twists and turns, and hopefully write something that's useful to us so that you can then go out and write more things that are useful. So if that sounds like something that you might be interested in, we look forward to seeing you in the upcoming series. [MUSIC]

Just you? Training a whole team? There's an ITProTV plan that fits.

With more than 5,800 hours of engaging video training for IT professionals, you'll find the courses you and your team need to stay current and get the latest certifications.