What to do if your personal computer is not Linux? - Green-Biome-Institute/AWS GitHub Wiki
Some of you might have already foreseen an important issue... what if your personal computer is not running a Linux operating system? Will the lessons and commands from this tutorial still apply to you?
Definitely! The lessons you learn from this tutorial are absolutely applicable to other operating systems. However, some of the commands are different depending on which system you use. Here is a (very) brief history on why that is and what the differences are between these three main operating systems.
A Brief History of Linux (Still updating..)
MacOS
With that brief history, I can simply just tell you that both Linux and MacOS are both Unix-like/based operating systems, and therefore most commands you will use on Linux will be the same as the ones you will use for MacOS. Great! The CLI is called "terminal on a Mac. For our purposes here at the GBI, you shouldn't have to learn anything new from this tutorial to navigate the terminal on a Mac.
Windows
Windows is a different story. While it did start as a Unix operating system, it is now separate and therefore has different program and command names. The main thing to note here is that they are similar in how you use those commands. You still type text into a text field and press enter, telling the computer to execute that command.
The CLI on windows is called "PowerShell" instead of "terminal". You can find it in your applications folder.
Here are the name of commands that do the same actions as ones we've learned in Linux:
The first command is in Windows PowerShell, the second command is Linux/MacOS, and the third column is a description of what the command does.
Windows Linux Description
dirls -lDirectory listingrenmvRename a filecopycpCopying a filemovemvMoving a fileclsclearClear ScreendelrmDelete filefcdiffCompare contents of filesfindgrepSearch for a string in a filecommand /?manDisplay the manual/help details of the commandchdirpwdReturns your current directory locationtimedateDisplays the timecdcdChange the current directorymdmkdirTo create a new directory/folderechoechoTo print something on the screeneditvimTo write in to files.exitexitTo leave the terminal/command window.
(I found this list at https://www.geeksforgeeks.org/linux-vs-windows-commands/)
Therefore, in order to get your path in the windows powershell, you would use the chdir command instead of pwd