LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 06-20-2013, 07:31 AM   #1
Bob01
LQ Newbie
 
Registered: Jun 2013
Location: Chicago
Posts: 4

Rep: Reputation: Disabled
can't access Ubuntu One folder through the command line


Hi Linux Community,

I'm a complete and utter newbie on Linux -- my noob-ness really can't be underestimated. To illustrate, I'm at the stage of using tutorials that introduce me to commands such as "ls" and "mkdir". I was also dropped on my head a lot as a baby, resulting in an inability to parse jargon-laden, acronym-heavy communication.

Anyway, here's my problem: I recently uninstalled Windows 7 and installed Ubuntu 12.04. Ubuntu has a free cloud service called "Ubuntu One" of which I'm sure a lot of ya'll're familiar with. Since my Dropbox account is almost full, I'd like to use the Ubuntu One cloud account (I use two computers, a laptop and a desktop at home, and I'd like for them to sync).

I can, of course, access the cloud service through the gui, but I need to access it through the command line so that I can compile C programs saved on it.

On my home directory (or whatever is the name of the directory that has stuff like "Desktop" and "Documents" on it -- the directory that I'm on as soon as I open the command line), the directory Ubuntu One is listed just like that, "Ubuntu One", in blue, caps "U" and "O", with a space between the two words.

When I try to navigate to the directory ("cd Ubuntu One"), I receive the error message "bash: cd: Ubuntu: No such file or directory", likewise, I can't rename it because of the space in between "Ubuntu" and "One".

Does anyone know how to access a directory that is two words with a space in between them?

Thanks, and sorry about the verbose description.

Last edited by Bob01; 06-20-2013 at 07:34 AM.
 
Old 06-20-2013, 08:58 AM   #2
chrism01
LQ Guru
 
Registered: Aug 2004
Location: Sydney
Distribution: Centos 6.8, Centos 5.10
Posts: 17,240

Rep: Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324
Here's a very good cli (command line) tutorial http://rute.2038bug.com/index.html.gz

For your specific problem, use single quote marks
Code:
cd 'Ubuntu One'
which will make it treat it as one string.
When creating your own files/dirs etc, avoid using spaces or other special chars; stick to a-zA-Z0-9_- chars.

NB: Linux (all forms of Unix actually) are case sensitive for cmds and eg dir names, filenames etc.
 
Old 06-20-2013, 05:33 PM   #3
Bob01
LQ Newbie
 
Registered: Jun 2013
Location: Chicago
Posts: 4

Original Poster
Rep: Reputation: Disabled
Thank you chrism01! It -- as I'm sure you expected -- worked like a charm.

I shall also check out the tutorial that you recommended.
 
Old 06-20-2013, 07:13 PM   #4
chrism01
LQ Guru
 
Registered: Aug 2004
Location: Sydney
Distribution: Centos 6.8, Centos 5.10
Posts: 17,240

Rep: Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324
No worries; Enjoy
Incidentally, '.' is also a safe char to use in filenames etc.
Many other chars are allowed ( a little google challenge for you; find out which chars are legal to use in filenames), but they can cause issues like yours, so be conservative, at least for now.
 
  


Reply

Tags
linux command, ubuntu 12.04


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Show folder and only one subfolder using ls in command line Drigo Linux - Newbie 4 07-14-2011 01:56 PM
Which command line command for updating a folder craig_panama Linux - Software 6 06-28-2009 09:11 PM
How access the command line Terminal in Ubuntu linux? bmnb123 Linux - Newbie 2 04-10-2008 03:12 PM
command line handling folder/filenames Basslord1124 Linux - Newbie 1 03-25-2005 10:43 AM
remove folder from command line demmylls Linux - General 3 02-15-2004 10:52 AM


All times are GMT -5. The time now is 08:35 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration