
) represents the parent directory of your currentįor example, if you are in the C:\Windows folder, a period (. ) represents yourĬurrent folder, and a doubled period (. In standard notation for relative paths, a period (. You can specify paths relative to your current location in the same way as you would in most UNIXĪnd Windows command shells. Information about the result in cases in which there is no default output. The PassThru parameter can be used with many Set commands in Windows PowerShell to return

Occurred when you enter the Set-Location command, include the -PassThru parameter when youĮnter the Set-Location command: Set-Location -Path C:\Windows -PassThru To verify that a successful directory change has Output because the output is not always useful. Most Windows PowerShell commands that perform an action produce little or no Set-Location -Path C:\WindowsĪfter you enter the command, you will notice that you do not receive any direct feedback about theĮffect of the command. The Set-Location commandĪllows you to specify your current directory location. The Get-Location command is used with the Set-Location command. Setting Your Current Location (Set-Location) The Set-LocationĬmdlet is similar to the cd command in Cmd.exe. It goes without saying that all commands in this tutorial are safe to use.The Get-Location cmdlet is similar to the pwd command in the BASH shell. If you are stuck and in need of help make sure you ask from someone you trust. The command rm -rf / is a classic one that you should never use, it will delete all the files in your computer. If you are not sure what a command does DO NOT type it into your terminal. The command line is a powerful tool that can significantly speed up your workflow but can also irreversibly harm your computer so make sure you use it responsibly.

On Windows you can download Git here which includes a terminal.īefore we get started, you should note some DO’s and DONT’s while using the command line. On Mac OSX you can access the terminal by opening the Terminal application from your Applications folder. To access the command line, we use a terminal emulator, usually called a terminal. The command line works by typing commands against a prompt, which then gets passed to the operating system of the computer that runs these commands. Just like Windows Explorer on Windows or Finder on Mac OSX it lets you navigate through the files and folders of your computer, but it is completely text based. The command line is a text interface for your computer. Introduction to the command line What is the command line?
