Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Closed 9 years ago.
Improve this question
How to check 2 same files for any data corruption while transferring it to from one OS(Linux) to another OS (Open VMS).
--- I am creating a single file on linux machine ,and transferring it by using sftp on to ovms machine.
Now, how do I check if the data in the files which I have sent is same or has been corrupted while transfer??
Based on the thread in Super User How to check if a file is corrupt or not? , what about doing a checksum?
$ cksum faaa
4294967295 0 faaa
before sending it and after. Then compare the values. If equal, the sftp transfer was successful.
Related
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Closed 8 months ago.
Improve this question
When I create a new file named 0 on my VPS, I always get a directory 0 instead of the file.
It happens in the case when I upload a file 0 or create a file by touch 0.
It seems that 0 has a special meaning on ext3 Linux file system.
Could you advise on it?
Additionally, how can I create a 0 file on Node.js?
This was actually not an error and was related to the UI issue File Manager in Cpanel.
In File Manager it (0) looks like a folder, but it must be a file. I confirmed it by cat 0.
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Closed 2 years ago.
Improve this question
I used mv to move some files from /source_dir/ to /target_dir/, which looked like: mv /source_dir/*some_regex* /target_dir/.
One of the files which started to move, file1, is now in both target_dir and source_dir.
target_dir/file1 weighs considerably less than source_dir/file1.
My question is: Is source_dir/file1 broken? Is it unaffected (in which case I can delete target_dir/file1 and rerun the mv.
The source file is removed after copying is finished. Therefore, source file stays unaffected until the operation is completed.
If moving on the same filesystem, a different mechanism is used, where the data stays in place.
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Closed 2 years ago.
Improve this question
I've learned that linux directory is a file. So can I view it in binary mod like viewing other files with hexdump?
You can dump raw portions of a drive using the dd command and that is about as low level as you can get. You can also use debugfs to do maintenance on the filesystem.
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Closed 9 years ago.
Improve this question
I am using Cent-OS and I am trying to copy a file. I su to root first, then I execute:
cp test.txt /usr/java/jdk1.7.0_45/jre/lib/management
But I get an input/output error. Why can't I copy this file as root? Is there something that can lock a folder in Linux so root can't change it?
root is a concept to get around the system's permissions.
IO error is a more physical problem that could be of a much more varied nature. Common examples included faulty media, unreadable CDs, lost connection, and so on.
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Closed 9 years ago.
Improve this question
I would like to have more clarification on the functionality of sync(8) and fsync functions in Linux (2.6.31). Does it make sure the files are written to the respective storage?
http://linux.die.net/man/8/sync
It does not make sure that files are written to respective storage. It only makes sure that cached/buffered data is flushed to the disk device. It doesn't matter if this is an SD Card or whatever.