PowerShell Core for Linux Administrators Cookbook: Use PowerShell Core 6.x on Linux to automate complex, repetitive, and time-consuming tasks
暫譯: Linux 管理員的 PowerShell Core 食譜:在 Linux 上使用 PowerShell Core 6.x 自動化複雜、重複且耗時的任務

Prashanth Jayaram, Ram Iyer

  • 出版商: Packt Publishing
  • 出版日期: 2018-11-29
  • 定價: $1,520
  • 售價: 9.5$1,444
  • 語言: 英文
  • 頁數: 566
  • 裝訂: Paperback
  • ISBN: 1789137233
  • ISBN-13: 9781789137231
  • 相關分類: LinuxPowershell
  • 立即出貨 (庫存=1)

買這商品的人也買了...

相關主題

商品描述

Over 150 recipes to leverage Microsoft's open source automation framework and command line shell

Key Features

  • Work effectively on Windows, Linux, and macOS with PowerShell's object-oriented approach and capabilities
  • Generate rich insights into your Linux workloads to help remediate any issues
  • Enhance your native Linux capabilities with PowerShell Core 6.1

Book Description

PowerShell Core, the open source, cross-platform that is based on the open source, cross-platform .NET Core, is not a shell that came out by accident; it was intentionally created to be versatile and easy to learn at the same time. PowerShell Core enables automation on systems ranging from the Raspberry Pi to the cloud.

PowerShell Core for Linux Administrators Cookbook uses simple, real-world examples that teach you how to use PowerShell to effectively administer your environment. As you make your way through the book, you will cover interesting recipes on how PowerShell Core can be used to quickly automate complex, repetitive, and time-consuming tasks. In the concluding chapters, you will learn how to develop scripts to automate tasks that involve systems and enterprise management.

By the end of this book, you will have learned about the automation capabilities of PowerShell Core, including remote management using OpenSSH, cross-platform enterprise management, working with Docker containers, and managing SQL databases.

What you will learn

  • Leverage the object model of the shell, which is based on .NET Core
  • Administer computers locally as well as remotely using PowerShell over OpenSSH
  • Get to grips with advanced concepts of PowerShell functions
  • Use PowerShell for administration on the cloud
  • Know the best practices pertaining to PowerShell scripts and functions
  • Exploit the cross-platform capabilities of PowerShell to manage scheduled jobs, Docker containers and SQL Databases

Who this book is for

PowerShell Core 6.1 Linux Administration 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.

Table of Contents

  1. Introducing PowerShell Core
  2. Preparing for Administration using PowerShell
  3. First Steps in Administration using PowerShell
  4. Passing data through pipelines
  5. Using Variables and Objects
  6. Working with Strings
  7. Flow Control using Branches and Loops
  8. Performing Calculations
  9. Using Arrays and Hash Tables
  10. Handling Files and Directories
  11. Building Scripts and Functions
  12. Advanced Concepts of Functions
  13. Debugging and Error Handling
  14. Enterprise Administration using PowerShell
  15. PowerShell and Cloud Operations
  16. Using PowerShell for SQL Database Management
  17. Using PowerShell with Docker

商品描述(中文翻譯)

超過 150 個食譜,利用微軟的開源自動化框架和命令列外殼

主要特點



  • 利用 PowerShell 的物件導向方法和功能,在 Windows、Linux 和 macOS 上有效工作

  • 生成有關您的 Linux 工作負載的豐富見解,以幫助修復任何問題

  • 使用 PowerShell Core 6.1 增強您的原生 Linux 功能

書籍描述


PowerShell Core 是基於開源、跨平台的 .NET Core 的開源跨平台工具,它不是偶然出現的外殼;它是有意創建的,旨在同時具備多功能性和易學性。PowerShell Core 使得從 Raspberry Pi 到雲端的系統自動化成為可能。


《Linux 管理員的 PowerShell Core 食譜》使用簡單的實際範例,教您如何有效地使用 PowerShell 來管理您的環境。在您閱讀本書的過程中,您將涵蓋有趣的食譜,了解如何使用 PowerShell Core 快速自動化複雜、重複和耗時的任務。在結尾章節中,您將學習如何開發腳本以自動化涉及系統和企業管理的任務。


在本書結束時,您將了解 PowerShell Core 的自動化能力,包括使用 OpenSSH 進行遠端管理、跨平台企業管理、處理 Docker 容器以及管理 SQL 數據庫。

您將學到什麼



  • 利用基於 .NET Core 的外殼物件模型

  • 使用 PowerShell 通過 OpenSSH 本地和遠端管理計算機

  • 掌握 PowerShell 函數的進階概念

  • 在雲端上使用 PowerShell 進行管理

  • 了解有關 PowerShell 腳本和函數的最佳實踐

  • 利用 PowerShell 的跨平台能力來管理排程作業、Docker 容器和 SQL 數據庫

本書適合誰


《PowerShell Core 6.1 Linux 管理食譜》適合您,如果您是一位系統管理員,想要學習如何使用 PowerShell Core 6.1 控制和自動化 Linux 環境。需要具備基本的 PowerShell 腳本知識。假設您已經了解操作系統的結構以及如何使用命令列介面與操作系統互動。

目錄



  1. 介紹 PowerShell Core

  2. 準備使用 PowerShell 進行管理

  3. 使用 PowerShell 進行管理的第一步

  4. 通過管道傳遞數據

  5. 使用變數和物件

  6. 處理字串

  7. 使用分支和迴圈進行流程控制

  8. 執行計算

  9. 使用陣列和雜湊表

  10. 處理檔案和目錄

  11. 構建腳本和函數

  12. 函數的進階概念

  13. 除錯和錯誤處理

  14. 使用 PowerShell 進行企業管理

  15. PowerShell 和雲端操作

  16. 使用 PowerShell 進行 SQL 數據庫管理

  17. 使用 PowerShell 與 Docker