Linux - SoftwareThis forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
After extracting a tar file that created a directory with a space in the name (New Directory) I cannot delete that directory. The command returns a message that the directory does not exist. I've tried rmdir New, rmdir Directory, rmdir NewDirectory, rmdir New_Directory, and of course, rmdir New Directory. Nothing works. I can delete it from the GUI, but not from the CLI. Any ideas (yes, I'm interested to know how to do it from the CLI even though I can do it from the GUI--I've just GOT to know )??
space is ignored by commands as interpreted as end of file. to remove file "Space Between.txt" use:
Code:
rm Space\ Between.txt
p.s I thought I might draw your attention to tab completion. type the first few letters of the file/directory name hit tab and the name will be completed. If multiple files/directories with same beginning letters exist tapping tab twice will show a list of matching files
Report it to the mods if you disagree with it, no use in starting an argument and filling up the thread with flames.
Have you gotten around to using tab-completion as advised? You make no further mention of it, and it is truly the best way for dealing with filenames and directories with special characters.
Also, replies like:
Quote:
It did not work on my system.
Are useless. You should always point out what you've tried, what you typed, a copy/paste of the input and output, if you expect any kind of effective help.
Report it to the mods if you disagree with it, no use in starting an argument and filling up the thread with flames.
Have you gotten around to using tab-completion as advised? You make no further mention of it, and it is truly the best way for dealing with filenames and directories with special characters.
I found a good answer and am happy with it.
Take care.
I would think that moderators read posts, but I did report it.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.