Powershell and Bash

Originally Posted: September 7, 2026
Last Updated: September 20, 2026

Some basic tips and rules for navigating Windows and Linux with powershell and bash. This was made for my own personal use and does assume that any reader is pretty familiar with bash commands and mainly interested in learning how to transfer these same skills to navigating a Windows system via powershell.

Powershell eccentricitys

Escape Characters

  1. In Linux \ is the escape character.
    mkdir My\ Folder
  2. Windows in it's normal weird fashion uses a backtick `
    mkdir My` Folder
cp *.jpg ~/Dowloads/

# Copies all jpegs from working directory to ~/Downloads

Linux stuff

ls -l broken down

permissions # of links file owner group size date of modification Name
drwxr-xr-x 2 makc makc 3 Sep 3 19:00 Desktop
drwxr-xr-x 13 makc makc 14 Sep 6 17:49 Documents
drwxr-xr-x 4 makc makc 5 Sep 6 21:22 Downloads

ls -l permissions broken down

d rwx r-x r-x
filetype owner rights group rights everyone elses rights

The first letter in the string (d in the above example) indicates the type of file that is being listed.

The next nine characters are broken into three categories, permissions for the:

  1. file owner
  2. group
  3. other users

- indicates that a permission does not exist, for example: r-x would indicate rights to read and execute, but not to write. In the example above (drwxr-xr-x), we can learn that:

  1. The file is a directory.
  2. The owner has full rights: read, write, execute
  3. The group has read and execution rights, not write rights.
  4. All other users also have read and execution rights, not write rights.

Viewing Files

Grep and His Powerful Friends

Way better than the powershell set-up (or at least less weird). Some examples follow: