Shell and the CLI

By Amr

Command Line Interface Notes

Estimated reading time: 0 minutes

Edit on Github
Table of Contents

Command Line

bash

echo "hello world"
cd ~

powershell

operators

sub-expression

write-host "hello world"
"Today is $(Get-Date)"

Today is 12/02/2019 13:15:20

github cli

To create a clone of your fork, use the –clone flag.

$gh_repo = "bamr87/it-journey"
gh repo fork $gh_repo --clone=true

wmic /output:C:\Temp\list.txt product get name, version exit


Set-ExecutionPolicy Unrestricted -Scope CurrentUser -Force

Install-Script -Name Get-RemoteProgram

cd ~\OneDrive\dev\os\win

Export-StartLayout -UseDesktopApplicationID -Path layout.xml