Shell and the CLI

By Amr

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.

# set the destination folder
gh_repo_dest="searchdocs"

# set the repo to fork
gh_repo="algolia/docsearch"

# change to the home directory

cd ~
mkdir github
cd github
gh repo fork $gh_repo --clone=true --fork-name $gh_repo_dest

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