mv 'filename .pdf' filename.pdf should work, it does on Rocky 9 just now. Or use the good old Perl command line perl -e 'rename "filename .pdf", "filename.pdf";'
One of the other responses indicated there might be an eight character in the filename which would be the reason all the other options failed. Do 'ls -b file*' to see. On Sun, Aug 16, 2026 at 6:17 AM Rich Shepard <[email protected]> wrote: > While saving a PDF downloaded from a web site I inadvertently put a space > between the filename and the '.pdf' suffix. Now I cannot remove that space, > even as root. > > filename .pdf displays as filename\ .pdf > > When I try: > mv filename .pdf filename.pdf > bash responds: > target 'filename.pdf' is not a directory > > Same response if I double quote "filename .pdf", and "filename\ .pdf" and > root gets the same results. > > A cluestick is needed to remove the space. > > TIA, > > Rich >
