For system, network and cloud administrators

How to check your PowerShell version

Within a PowerShell session type:

$PSVersionTable.PSVersion

or

pwsh -ver

How to check for virtualization support in Linux?

It’s very useful to know if your hardware has support for accelerated and nested virtualization. You can check for virtualization support in Linux by using the following command:

lscpu | grep Virtualization


How to check your disk’s health in Linux using smartmontools?

How to check your disk's health in Linux using smartmontools?

What is smartmontools?

The smartmontools package contains two utility programs (smartctl and smartd) to control and monitor storage systems using the Self-Monitoring, Analysis and Reporting Technology System (SMART) built into most modern ATA/SATA, SCSI/SAS and NVMe disks. In many cases, these utilities will provide advanced warning of disk degradation and failure.

— Official description from smartmontools.org


How to verify if the Az PowerShell module is installed and imported

Az stands for the formal Azure PowerShell module containing cmdlets for Azure features. The following PowerShell code will search for the Az module and if it will not find it installed, it will with all of its dependencies. And then, it ill import it into the session.

if (-not (Get-Module Az -ListAvailable)) {
 Install-Module Az -Scope CurrentUser -Force -Verbose
 Import-Module -Name Az -Verbose
}
else { 
 Import-Module -Name Az -Verbose
}

How to create a MongoDB database

Once you’ve installed MongoDB on your system, these are the steps for creating a MongoDB.


Follow BusyNetwork