Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

If I'm trying to access a file using gedit, how can I reach this file if there are spaces in the name? Right now typing the file name creates separate files, one for each word in the name

share|improve this question
Have you tried using tab complete? Just hit the tab key after typing part of the filename – Chris Harris Jun 25 '12 at 14:57

Surround the filename with double-quote (") characters. For example:

gedit "my resume"
share|improve this answer

Either surround it with quotes as Fran suggested or use a backslash to escape spaces in filenames and directories:

$ gedit /path\ to/text\ file.txt
# opens /path to/text file.txt
share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.