Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Hi guys, I need bash scripting expert help. #Linux #Powershell #Bash scripting expert This is output of Get-Service powershell cmdlet: PowerShell 7(264) PS C:Usersasus) Get-Service

image text in transcribed

image text in transcribed

Hi guys, I need bash scripting expert help. #Linux #Powershell #Bash scripting expert This is output of Get-Service powershell cmdlet: PowerShell 7(264) PS C:\Users\asus) Get-Service Status Name Displayflame Running AarSvc_3d71afe Agent Activation Runtime_3d71afo Running AdobeARMservice Adobe Acrobat Update Service stopped AJRouter AllJoyn Router Service Stopped ALG Application Layer Gateway Service Stopped AppIDSVC Application Identity Running Appinfo Application Information Stopped AppReadiness App Readiness Running AppXSVC Appx Deployment Service (AppXSVC) Running Atherossvc Atherossvc Running AudioEndpointBuil. Windows Audio Endpoint Builder Running Audiosrv Windows Audio Stopped autotimesve Cellular Time Stopped AxInsts ActiveX Installer (AxInstsv) Stopped BcastDVRUserServi. GameDVR and Broadcast User Service_3d... Stopped BDESVC BitLocker Drive Encryption Service Running BFE Base Filtering Engine Running BITS Background Intelligent Transfer Servi... stopped Bluetoothuserserv, Bluetooth User Support Service_3d71afe Running Bonjour Service Bonjour Service Running Broker Infrastruct. Background Tasks Infrastructure Servi... Running BTAGService Bluetooth Audio Gateway Service Running BthAvctpvc AVCTP service Running bthserv Bluetooth Support Service Running camsvc Capability Access Manager Service Running CaptureService_3d. CaptureService_3d71afe Running cbdhsvc_3d71afe Clipboard User Service 3d71afe Question: You need to translate the Powershell cmdlet (which is Get-Service) by writing a bash shell script program to emulate the output of powershell cmdlet. (The display format and contents as much as possible). Tips: VirtualBox: $ systenctl list-units -- type=service UNIL LOAD ACTIVE SUB DESCRIPTION accounts.daemon.service loaded active running Accounts Service acpld.service loaded active running ACPI event daenon alsa-restore.service loaded active exited Save/Restore Sound Card State apparnor.service loaded active exlted Load AppArnor profiles apport service loaded active exited LSB: automatic crash report generation avaht-daemon.service loaded active running Avaht DNS/DNS-SD Stack blk-avatlability.service loaded active exited Availability of block devices colord.service loaded active running Manage, Install and Generate Color Profiles console-setup.service loaded active exited Set console font and keynap cron.service loaded active running Regular background progran processing daemon cups-browsed. service loaded active running Make renote CUPS printers available locally cups.service loaded active running CUPS Scheduler dbus.service loaded active running D-Bus Systen Message Bus finalrd.service loaded active exited create final runt the der for shutdown pivot root gdn.service loaded active running GNOME Display Manager kerneloops.service loaded active running Tool to autonatically collect and submit kernel keyboard-setup.service loaded active exited Set the console keyboard layout knod-static-nodes.service loaded active exited Create list of static device nodes for the currep lvn2-monitor.service loaded active exited Monttoring of LVM2 Mirrors, snapshots etc. usings *For bash shell script program, not just use 'systemetit list-units --type=service' only (need exactly same output as powershell as much as possible)

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Students also viewed these Databases questions

Question

What is a major obstacle to mobile advertising?

Answered: 1 week ago

Question

5. Structure your speech to make it easy to listen to

Answered: 1 week ago