Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
bash スクリプトを使用して特定のパスにアクセスしようとしましたが、端末がアクセスできません。これが私の非常に単純なスクリプトです:
#!/bin/bash init() { cd $PATH ls -l } PATH="/Volumes/Macintosh HD/Users" init
"/Macintosh\ HD" を書き込もうとしましたが、成功しませんでした。
試す
cd "$PATH"
引用符に注意してください。