LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Security (https://www.linuxquestions.org/questions/linux-security-4/)
-   -   cp cannot stat (https://www.linuxquestions.org/questions/linux-security-4/cp-cannot-stat-4175632204/)

Pedroski 06-19-2018 12:20 AM

cp cannot stat
 
I use the marking program Formreturn. I back it up regularly, coz I don't want to mark by hand.

I tried to copy manually to usb. I get this:

Quote:

pedro@pedro-dodgySSD:~$ cp -v /home/pedro/FormreturnDBbackup/formreturn20180619.tar.gz /media/pedro/KINGSTON/formreturnDBbackup
cp: cannot stat '/home/pedro/FormreturnDBbackup/formreturn20180619.tar.gz': No such file or directory
Is there something special about .tar.gz files which prevents them from being copied?

I triple checked all capital letters and directories, everything is correct.

pan64 06-19-2018 12:41 AM

ls -l <filename>
I would say it is mispelled, there can be an upcase/lowercase issue.

wlotech 06-19-2018 09:15 AM

SELinux
 
Anything in /var/log/messages from SELinux?

BW-userx 06-19-2018 09:33 AM

sometimes its easier if you cd into where the file is at , ls to get the correct spelling, set up your command, highlight the file, middle click button, it puts the name in the front of command, finish the path to then hit enter. that is just one other way of doing this.

Habitual 06-19-2018 10:41 AM

or use find to locate/verify:
Code:

find /home/pedro/ -name formreturn20180619.tar.gz -type f
See also https://www.linuxquestions.org/quest...ne-4175632110/

scasey 06-19-2018 02:30 PM

As said, it's probably a spelling or path error. The message simply indicates a "file not found" condition.

scasey 06-27-2018 07:53 PM

Alexsoni,
I for one, am reluctant to click on a link to see what your problem/question is, even if it were there, which it's not.

Is it exactly the same as the OP on this thread? Then our discussion here may help you...'tho it's likely to peter out, since the OP has never come back. Folks tend to stop trying to help someone who asks a question then never responds.

Your best bet would be to start a new thread and explain the problem you are having.

Mill J 06-27-2018 10:13 PM

Quote:

Originally Posted by Alexsoni (Post 5872715)
I also face the same issue if you are interested to solve the issue take a help of Avast Support if anyone is interested to solve the issue simply click on this site.

Reported as Advertising.


All times are GMT -5. The time now is 10:02 AM.