Skip to main content\(\newcommand{\R}{\mathbb R}
\newcommand{\lt}{<}
\newcommand{\gt}{>}
\newcommand{\amp}{&}
\definecolor{fillinmathshade}{gray}{0.9}
\newcommand{\fillinmath}[1]{\mathchoice{\colorbox{fillinmathshade}{$\displaystyle \phantom{\,#1\,}$}}{\colorbox{fillinmathshade}{$\textstyle \phantom{\,#1\,}$}}{\colorbox{fillinmathshade}{$\scriptstyle \phantom{\,#1\,}$}}{\colorbox{fillinmathshade}{$\scriptscriptstyle\phantom{\,#1\,}$}}}
\)
Appendix B Shells and Commands
Table B.0.1. Operating systems and their common shell programs
| Command (Prompt) Shell |
Windows |
| PowerShell |
Windows |
| bash (Bourne-again Shell) |
macOS |
| bash (Bourne-again Shell) |
Linux/UNIX |
Table B.0.2. Shell commands
| Get the current working directory |
Command Prompt |
cd |
|
PowerShell |
pwd |
|
bash |
pwd |
| List directory contents |
Command Prompt |
dir |
|
PowerShell |
dir |
|
bash |
ls |
| Change the current working directory |
Command Prompt |
cd path\to\directory
|
|
PowerShell |
cd path\to\directory
|
|
bash |
cd path/to/directory
|
| Move up one directory level |
Command Prompt |
cd .. |
|
PowerShell |
cd .. |
|
bash |
cd .. |
| Create a new directory |
Command Prompt |
mkdir directoryname
|
|
PowerShell |
mkdir directoryname
|
|
bash |
mkdir directoryname
|
| Copy a file |
Command Prompt |
copy source\file\path destination\file\path
|
|
PowerShell |
Copy-Item -Path source\file\path -Destination destination\file\path
|
|
bash |
cp source/file/path destination/file/path
|
| Delete a file |
Command Prompt |
del filename
|
|
PowerShell |
del filename
|
|
bash |
rm filename
|