cksum command usage


 
Thread Tools Search this Thread
Top Forums UNIX for Dummies Questions & Answers cksum command usage
# 1  
Old 04-03-2008
cksum command usage

Hi All,

I am using cksum command in s script to check integrity of set of files transffred across the network.

What are the advantages and disadvantages/limitations of this command?
Is the byte count return reliable?
What are the other alternatives I could use for this purpose?

Appreciate your idea.

Thanks and Regards,
# 2  
Old 04-03-2008
cksum command usage

Hi All,

I am using cksum command in s script to check integrity of set of files transffred across the network.

What are the advantages and disadvantages/limitations of this command?
Is the byte count return reliable?
What are the other alternatives I could use for this purpose?

Appreciate your idea.

Thanks and Regards,
# 3  
Old 04-04-2008
Hello, please don't double post or bump your messages. Since your posts have appeared in 1 minute interval, though, I would assume that the Internet connection has lagged a little bit Smilie
For your question : cksum is a standard POSIX implementation, and byte count is reliable, I don't see any obvious downsides of its use. In the man pages it's written that :
Quote:
The cksum command is typically used to quickly compare a
suspect file against a trusted version of the same, such as
to ensure that files transmitted over noisy media arrive
intact. However, this comparison cannot be considered cryp-
tographically secure. The chances of a damaged file produc-
ing the same CRC as the original are astronomically small;
deliberate deception is difficult, but probably not impossi-
ble.
Another alternative is md5sum or md5 only, depends on what OS you're using. I have, for example, cksum on AIX and SunOS.
 
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

Usage of '.' in MV command

Hi, Could you please let me know, why we should not use '.' in move command, if we use it, is it something wrong.. Please share the details on it. /home/rahualux/emp.csv /home/rahualux/details/employee_files/. Or other example for mutlipile files /home/rahualux/*.csv... (3 Replies)
Discussion started by: rahualux
3 Replies

2. Shell Programming and Scripting

cp -v command usage?

I am trying to output a log file from cp usage. I think this can be achieved. In my code I have this. cp -i -v ~/files/* ~/backups/oldfiles/;; > ~/logs/logfile.logThe error I get is "syntax error near unexpected token '>' What am I missing? (7 Replies)
Discussion started by: gameinn
7 Replies

3. UNIX for Dummies Questions & Answers

command to find cksum of all files inside a directory?

I did this: ls -lrRt | grep ^* | cksum * but it is showing cksum of sub-directories. Thanks You Please use code tags when posting data and code samples, thank you. (3 Replies)
Discussion started by: ezee
3 Replies

4. UNIX for Dummies Questions & Answers

Command to display the space usage (memory usage) of a specific directory.

Hi all, Can you please tell me the command, with which one can know the amount of space a specific directory has used. df -k . ---> Displays, the amount of space allocated, and used for a directory. du -k <dir name> - gives me the memory used of all the files inside <dir> But i... (2 Replies)
Discussion started by: abhisheksunkari
2 Replies

5. AIX

How to monitor the IBM AIX server for I/O usage,memory usage,CPU usage,network..?

How to monitor the IBM AIX server for I/O usage, memory usage, CPU usage, network usage, storage usage? (3 Replies)
Discussion started by: laknar
3 Replies

6. HP-UX

how can I find cpu usage memory usage swap usage and logical volume usage

how can I find cpu usage memory usage swap usage and I want to know CPU usage above X% and contiue Y times and memory usage above X % and contiue Y times my final destination is monitor process logical volume usage above X % and number of Logical voluage above can I not to... (3 Replies)
Discussion started by: alert0919
3 Replies

7. UNIX for Advanced & Expert Users

Cksum dependencies

Hi, On what factors does the cksum depend. If i build 2 machines exactly the same, then can i get the checksum of 2 compiled files same. Thanks (3 Replies)
Discussion started by: vibhor_agarwali
3 Replies

8. Shell Programming and Scripting

using cksum

hi, I am trying to use the cksum feature in unix. when i make a call to it i get returned something along the lines of: 4603435 14 file3 how do i get the first part of this response only; i.e: 4603435 I'm trying to use at a way without the use of sed and creating temp... (4 Replies)
Discussion started by: leeRoberts2007
4 Replies

9. Shell Programming and Scripting

The cksum Problem

Hi, I have a working script, well it works on my machine but when I try it on others the cksum section does not work properly (I know the scripting is not of a high quality but I'm just trying to get it working) Heres the script: #!/bin/sh case $# in 0) echo "usage: enshar filename... (7 Replies)
Discussion started by: Dim-Wit
7 Replies

10. Shell Programming and Scripting

Anyone know how cksum works?

hello all. I'm not asking about the algorithm - or how it goes about computing the checksum - I'm asking how it views/looks at the files it does the cksum on. For instance: Say you had a directory named "dir_A" And within this directory you had some files. So: dir_A - file1 -... (5 Replies)
Discussion started by: kapolani
5 Replies
Login or Register to Ask a Question