Skip to main content

Settings

Color Mode
Theme Skin
Background

Appearance preferences are saved in this browser only.

Environment
Current Environment Production

Built with JEKYLL_ENV=production. Changes require deployment.

Theme & Build
Jekyll v3.10.0
Last Build Aug 16, 02:30
Page Location
Page Info
Layout default
Collection notes
Path _notes/cheetsheets/Shell and the CLI.md
URL /notes/cheetsheets/Shell%20and%20the%20CLI/shell-and-the-cli/
Date 2026-08-16

Shell and the CLI

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