I'm trying to rename a file with a hyphen at the beginning of its name and both this:
mv -example-file-name example-file-name
and this:
mv '-example-file-name' example-file-name
result in:
mv: invalid option -- 'e'
|
I'm trying to rename a file with a hyphen at the beginning of its name and both this:
and this:
result in:
|
|||
|
|
Most GNU/Linux commands allow a
A small test
|
|||
|
|
|
RedGrittyBrick's answer is very good. Another option is:
A small test:
|
|||
|
|