enter ‘Program Files‘ by shell script in Gitbash/WSL on Windows

#! /bin/bash

my_path='Program Files'

cd /mnt/c
echo $(pwd)
cd "$my_path"
echo $(pwd)

The point is use ' ' for path which has space.

你可能感兴趣的:(WSL,linux,运维,服务器)