LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
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 04-26-2009, 12:55 AM   #1
dowhatnow?
LQ Newbie
 
Registered: Apr 2009
Posts: 13

Rep: Reputation: 0
Help moving files in terminal


I know this should be easy...

I'm using Ubuntu 8.04. I am trying to move files from an ISO I have mounted on my desktop to a USB stick (it's part of putting together a Backtrack USB). Since I am not root the system will not allow me to copy some of the files. I have been using

$ sudo cp filename directorypath

everything was working until i got to files like these:

emerald-themes-0.6.99-i486-1bmg.lzm

When I use the commands for these files i get:

cp: cannot stat filename : no such file or directory

I think that this is because the file names contain illegal characters, but i need to find a way around this. Any help is appreciated.

Thanks
 
Old 04-26-2009, 02:24 AM   #2
Nylex
LQ Addict
 
Registered: Jul 2003
Location: London, UK
Distribution: Slackware
Posts: 7,464

Rep: Reputation: Disabled
I'm not sure what you mean by illegal characters, but the error message is quite clear. One thing you can do is to use tab completion: type the first few characters of the filename and then hit tab and either the name will be completed (if there is only one file whose name starts with the characters you've entered), or you'll be presented with a list of all the files in that directory that have names beginning with the characters you've entered.

Also, you can use the command ls (the first character is a lowercase L) to list the files in the current directory.
 
Old 04-26-2009, 03:11 AM   #3
dowhatnow?
LQ Newbie
 
Registered: Apr 2009
Posts: 13

Original Poster
Rep: Reputation: 0
perhaps the silliest i have ever felt.

Actually it was your mentioning that the 'l' in 'ls' is a small 'L' that gave it to me. What I thought was an "l" was actuall a "1." Thanks for the help man.
 
Old 04-26-2009, 03:15 AM   #4
repo
LQ 5k Club
 
Registered: May 2001
Location: Belgium
Distribution: Arch
Posts: 8,528

Rep: Reputation: 899Reputation: 899Reputation: 899Reputation: 899Reputation: 899Reputation: 899Reputation: 899
Quote:
Actually it was your mentioning that the 'l' in 'ls' is a small 'L' that gave it to me. What I thought was an "l" was actuall a "1." Thanks for the help man.
You can use TAB to complete
type
cp emerald
the press TAB to complete
 
  


Reply


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
Converting text files to files that can be run in the terminal. jkmurph13 Linux - Newbie 1 12-09-2008 11:33 PM
moving files from a location to other, preventing to move incomplete files pogo123 Programming 8 11-14-2008 07:21 AM
moving files from a location to other, preventing to move incomplete files pogo123 Linux - Newbie 2 11-13-2008 02:57 PM
Moving files Pyrophorus Slackware 5 11-09-2005 11:47 AM
Moving Files jhotchkiss Linux - Newbie 5 09-16-2003 04:41 PM

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

All times are GMT -5. The time now is 06:46 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration