Linux - GeneralThis Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.
Notices
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.
hi all
how can i copy largefiles (10Mb to 10Gb)
i tried using this command "cp -r xxxxx-1.1.1.tar.gz" to some path , this path i am giving
i did this all by programatically..
but this program copying only small files like .xpm, .png, .txt, .c etc...
when i am sending xxxxx-1.1.1.tar.gz of 1.2Mb size it saying like this and also not copying
Quote:
cp: cannot stat `xxxxx-1.1.1.tar.gz': No such file or directory
The message says that the file doesn't exit. Check for a typo. The -r recursive option doesn't make sense if you are copying a single file. It is for descending into directories. The "xxxx-" part of the filename doesn't look right. It seems that you are following general instructions literally instead of substituting xxxx for the package name.
The message says that the file doesn't exit. Check for a typo. The -r recursive option doesn't make sense if you are copying a single file. It is for descending into directories. The "xxxx-" part of the filename doesn't look right. It seems that you are following general instructions literally instead of substituting xxxx for the package name.
i tried this also...
"cp " (with out -r)
but it fails.
same error was came..(cp: cannot stat `filename-1.1.1.tar.gz': No such file or directory)
There is no size restrictions on the cp command.
As stated, the error message is that the file cannot be found.
Are You sure You type it correctly? Upper/lower case? Spaces?
Are You doing the copy from a script?
Make sure You have the correct directory as working directory.
An option is to give the fully qualified file name to the command, example
cp /tmp/qwerty-1.1.1.tar.gz /var/backup
If You have spaces in the filename, put quotes around it, example
cp "/tmp/qwerty 1.1.1.tar.gz" /var/backup
There is no size restrictions on the cp command.
As stated, the error message is that the file cannot be found.
Are You sure You type it correctly? Upper/lower case? Spaces?
Are You doing the copy from a script?
Make sure You have the correct directory as working directory.
An option is to give the fully qualified file name to the command, example
cp /tmp/qwerty-1.1.1.tar.gz /var/backup
If You have spaces in the filename, put quotes around it, example
cp "/tmp/qwerty 1.1.1.tar.gz" /var/backup
yes i did ...its great..
i am using this command for file receiving from one machine to another...
am sending a file to another machin eby using sockets..
at other side a popup window will raise.. and having an option to save file...
here in this "cp" is using...
this is not yet tested, but i have a doubt,
"cp" is able to copy the file which was sent by other machine..?
Look at the directory listing to see what the name is really called. Also, either make sure you are in the right directory, or include the directory location in the filename.
It might be better mounting a network share to transfer files to another computer.
You can do it using netcat or cat'ing to /dev/tcp/hostport and doing the reverse on the other machine. See the bash info manual for details.
You could also use scp or sftp.
If the file you are transferring is very large, make sure you don't exceed the filesize limit of the target filesystem.
Look at the directory listing to see what the name is really called. Also, either make sure you are in the right directory, or include the directory location in the filename.
It might be better mounting a network share to transfer files to another computer.
You can do it using netcat or cat'ing to /dev/tcp/hostport and doing the reverse on the other machine. See the bash info manual for details.
You could also use scp or sftp.
If the file you are transferring is very large, make sure you don't exceed the filesize limit of the target filesystem.
yes you are coreect.
but those are asking IPadress and password...
so, can i do this file transfering and receiving using "sip".
I agree, Your description is very hard to understand.
Are You trying to copy a file from one computer to another with cp? What does Your command line look like?
I agree, Your description is very hard to understand.
Are You trying to copy a file from one computer to another with cp? What does Your command line look like?
yes.... i am doing that, what u said.
i am sending files through sockets at other side the popup will be raised and having a save button if i click the save button it will save in perticular folder..... , here , i am using
cp -i xxxxx-1.1.1.tar.gz /root/Desktop/123
is it possible.
yeah i did some extent.. upto save button clicked...
here the error message is accuring in the terminal
cp: cannot stat `xxxxx-1.1.1.tar.gz': No such file or directory
i dont know why it is saying(terminal) like that..
I am sorry but I really don't see what You are trying to do. There is no pop-up with buttons in the cp command. Are You using netcat or something? Maybe You mean rcp? I can't see anything that indicates that You are communicating between different hosts.
The command You show would try to copy the file xxxxx-1.1.1.tar.gz from Your working directory to /root/Desktop/123. If 123 is a directory the file will be placed in that directory. If nothing called 123 exist, xxxxx-1.1.1.tar.gz will be copied to /root/Desktop and renamed to 123. If 123 is a file it will be overwritten with the contents of xxxxx-1.1.1.tar.gz after asking You for confirmation.
If it is a socket I don't know how it works.
The error message states very simply that there is no file called xxxxx-1.1.1.tar.gz in Your working directory.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.