External Drive permission denied
I use an iMac 16GB memory with an Apple M1 currently having Ventura 13.4.1. I have never had a problem with my external drive until I needed to upload to GitHub. My hard drive is 512GB, and I try saving the room for apps instead of randomly saving everything on it. My external drive is 5 TB, and I can do almost anything with it, but recently, while using my terminal, I got zsh: permission denied: my external address. I have searched to figure out how to get permission within the terminal. I have even transferred the information to a cloud storage and reformated the drive. Yet, I am still getting permission denied. It is not locked, and I have access to read and write, there are no other users with my iMac.
I am just trying to figure out why I can't gain access through terminal?
Thank you for any help,
Karen
iMac (M1, 2021)