This is the code repository for PowerShell Core for Linux Administrators Cookbook, published by Packt.
Use PowerShell Core 6.x on Linux to automate complex, repetitive, and time-consuming tasks
PowerShell is an implementation of .NET Core. .NET Core is a cross-platform open source management framework, which adheres to POSIX standards and makes available API calls that work well with all of the major operating systems: Windows, Linux and macOS. .NET Core for Linux has been a success, because of its adherence to standards, as well as for its lightweight implementation. PowerShell extends the capabilities towards management of Linux servers as well as using containerizers such as Docker.
This book covers the following exciting features: Understand the fundamentals of .NET Core and PowerShell Understand the advanced concepts of .NET Core and PowerShell Learn to write PowerShell scripts and functions with the best practices in mind Take a deep dive into administering computers locally as well as remotely using PowerShell Use PowerShell for advanced administration such as on the Cloud, Docker containers, VMware and SQL Server
If you feel this book is for you, get your copy today!
All of the code is organized into folders. For example, ch02.
The code will look like the following:
Get-Date
hostname
Write-Output "Hello, $env:username!"
Following is what you need for this book: PowerShell Core for Linux Administrators Cookbook is for you if you are a system administrator who wants to learn to control and automate a Linux environment with PowerShell Core 6.1. Basic knowledge of PowerShell scripting is necessary. It is assumed that you already understand how an operating system is structured and how to use the command-line interface to work with the operating system.
With the following software and hardware list you can run all code files present in the book (Chapter 1-17).
Chapter | Software required | OS required |
---|---|---|
1-17 | PowerShell Core 6.0/6.1 | Windows, Mac OS X, and Linux (Any) |
1 | curl | Windows, Mac OS X, and Linux (Any) |
2, 5, 6, 8-13, 15 | Visual Studio Code | Windows, Mac OS X, and Linux (Any) |
3 | Visual Studio Code, PNG viewer, such as feh | Windows, Mac OS X, and Linux (Any) |
14 | OpenSSH, WinSCP, SMTP server (Postfix) | Windows, Mac OS X, and Linux (Any) |
16 | Visual Studio Code, .NET Core, Python, Microsoft SQL Server 2017 | Windows, Mac OS X, and Linux (Any) |
We also provide a PDF file that has color images of the screenshots/diagrams used in this book. Click here to download it.
-
Chapter 11, recipe name: Measuring running duration, section name: See also
Software disenchantment (http://tonsky.me/blog/disenchantment/) by Nikita Prokopov, the author of the beautiful font Fira Sans
should be
Software disenchantment (http://tonsky.me/blog/disenchantment/) by Nikita Prokopov, the creator of the beautiful font, Fira Code
Prashanth Jayaram is a product design and automation expert in database technology with 12 years of rich, extensive, hands-on experience in designing database solutions with next-gen database technologies. He was awarded as the second-best SQL author of 2017 for his contribution to the SQL Server technology space. He has written over 200 articles about SQL, NoSQL, PowerShell, Python, SQL on Linux, SQL on Azure, and SQL on AWS.
Ram Iyer is an automation and application performance management specialist with about eight years of experience in enterprise IT. While ensuring that the environment in his enterprise performs optimally is his primary role, he is passionate about automation using PowerShell, and has contributed to over 60 enterprise-grade automation solutions in Windows, Microsoft Exchange, Microsoft Active Directory, Microsoft System Center, Citrix XenApp, VMware PowerCLI, and Microsoft Azure, using PowerShell. He gives back to the community by conducting training sessions in PowerShell and blogging about administration using PowerShell.
Click here if you have any feedback or suggestions.
If you have already purchased a print or Kindle version of this book, you can get a DRM-free PDF version at no cost.
Simply click on the link to claim your free PDF.