How do you remove a filename with space in Unix?

How do you remove a filename with space in Unix?
Answer
Remove files with names containing strange characters such as spaces, semicolons, and backslashes in Unix
  1. Try the regular rm command and enclose your troublesome filename in quotes. …
  2. You can also try renaming the problem file, using quotes around your original filename, by entering: mv “filename;#” new_filename.
 

Tìm kiếm

Back
Top