i need to copy files from one folder to another folder using shell
Linux - NewbieThis 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!
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Introduction to Linux - A Hands on Guide
This guide was created as an overview of the Linux Operating System, geared toward new users as an exploration tour and getting started guide, with exercises at the end of each chapter.
For more advanced trainees it can be a desktop reference, and a collection of the base knowledge needed to proceed with system and network administration. This book contains many real life examples derived from the author's experience as a Linux system and network administrator, trainer and consultant. They hope these examples will help you to get a better understanding of the Linux system and that you feel encouraged to try out things on your own.
Click Here to receive this Complete Guide absolutely free.
You need to use the full path if you are not running the command from inside one of those folders. And using directories with spaces in the names is silly. You have to use quotes around the directory name.
As Smoker said, don't use directory names with spaces in them. Can you rename the "output files" directory to output-files, or something like that?
From the directory where "output files" is located run:
mv output\ files/ output-files
Or just right-click on "output files" and choose rename if you are running a graphical desktop and not just a shell.
And what is the full file path to the files you want to copy? And what is the full file path to the directory that you want to copy them to?
Can you just move "output files" and "running" to your home directory to make this easier?
That's odd, I have plenty of file.png and file.pl and file.rc
But considering it can't find the directory I don't think thats a problem.
If there were no files with an extension it wouldn't do anything, but it wouldn't return a stat error.
I am not saying that "extensions" are not used, I am saying that the Unix operating system itself does not have such a concept (they are just used for user convenience, and some programs may require them), and that unlike Windows, Unix filenames are allowed not to have an extension, so *.* will not match all files.
I once tried to make a filename without an extension in Windows, but it still showed to have a ".txt" extension in the DOS prompt even though it didn't show in explorer (I had it set to show extensions)!