openSUSE Forums > Archives > Novell Archives » Getting around in the command line

Go Back   openSUSE Forums > Archives > Novell Archives
Forums FAQ Members List Search Today's Posts Mark Forums Read


Novell Archives Archived content from Novell openSUSE support forums

 
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 23-Sep-2006, 17:09
me@you.com
Guest
 
Posts: n/a
Default Getting around in the command line

I am trying to get into certain windows files via Konsole. The problem is
that some of the folders have mulitple names with spaces inbetween. What do
I need to do to get into those folders? I have tried the name with the
space and tried with a _ in place of the space.
  #2 (permalink)  
Old 23-Sep-2006, 18:17
Jim Pye
Guest
 
Posts: n/a
Default Re: Getting around in the command line

me@you.com wrote:

> I am trying to get into certain windows files via Konsole. The problem is
> that some of the folders have mulitple names with spaces inbetween. What
> do I need to do to get into those folders? I have tried the name with the
> space and tried with a _ in place of the space.


Use the syntax

cd /directory\ with\ a\ space

The \ escapes the space in the name

If you start typing in the directory name and then use the TAB key bash will
complete the line for you. eg.

cd /direc[TAB]

Will complete the above example

HTH

Jim



--
Pye, James Pye, chmod 007
The Ultimate Open Source
  #3 (permalink)  
Old 23-Sep-2006, 18:44
Tilman Schmidt
Guest
 
Posts: n/a
Default Re: Getting around in the command line

Am 24.09.2006 00:09 schrieb me@you.com:
> I am trying to get into certain windows files via Konsole. The problem is
> that some of the folders have mulitple names with spaces inbetween. What do
> I need to do to get into those folders? I have tried the name with the
> space and tried with a _ in place of the space.


Alternatively, enclose the folder name (including the spaces) in double quotes, like so:

cd "folder name"

--
Tilman Schmidt E-Mail: tilman@imap.cc
Bonn, Germany
- In theory, there is no difference between theory and practice.
In practice, there is.
 

Bookmarks


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




 

Search Engine Friendly URLs by vBSEO 3.3.0 RC2