FG
💻 Software

mv command confuses directory name with command option

Fresh5 days ago
Mar 15, 20262166 views
Confidence Score0%
0%

Problem

I have a directory called , which I need to move to . Using the command in the following way, gives me the listed output. How can I use the to do what I want?

Error Output

$ mv --pycache-- __pycache__
/bin/mv: unrecognized option '--pycache--/'

Unverified for your environment

Select your OS to check compatibility.

1 Fix

Canonical Fix
Unverified Fix
New Fix – Awaiting Verification

Fix for: mv command confuses directory name with command option

Low Risk

This is a standard issue with filenames/directories starting with less conventional symbols. Your problem is that mv is treating --pycache-- as long option name (since it starts with --, there are also short options, they start with -). Please see m…

Awaiting Verification

Be the first to verify this fix

Sign in to verify this fix

Environment