Jump to content

newbie shell question


Recommended Posts

I think what you're asking is how do I access directories with a space in the name?

 

you can use quotes around the name:

 

cd '/home/papaschtroumpf/my programs'

 

you can use the \ character to "escape" the space:

 

cd /home/papaschtroumpf/my\ programs

 

or what I do is use the tab key autocompletion so I don't have to type the whole thing:

 

cd /home/pa

press tab and it automatically complete to cd /home/papaschtroumpf

 

then complete "/my":

 

cd /home/papaschtroumpf/my

 

press tab again and the shell completes the whole name:

 

cd /home/papaschtroumpf/my\ programs

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
 Share

×
×
  • Create New...