LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
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-23-2002, 07:09 PM   #1
tied2
Member
 
Registered: Jun 2002
Location: Florida
Distribution: Redhat, FreeBSD, FC 6
Posts: 220

Rep: Reputation: 30
Question command path question


(os) RH 7.1
ok, If I'm on my linux box and i'm networked to my windows box in a terminal window ie: cd /root/mnt/winbox/C and then I do ls command it lists files ok after C if i type a file that has a one word name it will open like WINDOWS. But if i type MY Documents it get as far as My: and stops. What do I have to do to get it to open a two word file such as My Documents ?


Thanks !
 
Old 06-23-2002, 09:45 PM   #2
joel1
Member
 
Registered: Jun 2002
Posts: 31

Rep: Reputation: 15
Not quite sure exactly what you mean however:

to cd to mydocuments

cd my documents won't work

need to do

cd "my documents"

hope this helps

Last edited by joel1; 06-23-2002 at 10:25 PM.
 
Old 06-23-2002, 10:17 PM   #3
neo77777
LQ Addict
 
Registered: Dec 2001
Location: Brooklyn, NY
Distribution: *NIX
Posts: 3,704

Rep: Reputation: 56
You must escape spaces with \ (back slash character)like this
ls My\ Documents
or put the whole thing in double quotes
ls "My Documents"
 
Old 06-24-2002, 05:06 AM   #4
tied2
Member
 
Registered: Jun 2002
Location: Florida
Distribution: Redhat, FreeBSD, FC 6
Posts: 220

Original Poster
Rep: Reputation: 30
Ok now what if I want to open say a jpg pic in my documents??
 
Old 06-24-2002, 05:12 AM   #5
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985
what about it? you'd run a program with the file name as the input....
 
  


Reply



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
exporting PATH for a command arunsri Slackware 4 03-20-2005 05:47 PM
setting the path for a command?? arunsri Linux - Software 1 03-13-2005 04:26 AM
how to set command path okiyani Linux - General 1 03-04-2004 07:57 PM
get full path of a command (in C) Hady Programming 9 11-21-2003 10:50 AM
get full path of a command (in C) Hady Linux - Software 1 11-19-2003 05:46 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 09:45 AM.

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
Open Source Consulting | Domain Registration