Sponsored Content
Top Forums UNIX for Dummies Questions & Answers du -s -k differences between two identical directories Post 302130571 by csgonan on Monday 6th of August 2007 10:14:42 PM
Old 08-06-2007
Thank you.

I believe all the files are there and the file sizes are the same. I am wondering is why the du -s -k reports different sizes. What is the difference in the directory size (ie) one is 4096 on solaris and it is 512 on linux.

What parameters can I pass the du that they use the same, block size maybe, so the totals come out the same (if in fact they are the same).

Thanks
 

10 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

How to check the files are Identical or not?

Hi, I am taking backup in every hr and every day, I want to programmatically check my backup files are identical with original files. Any methods are available in Unix scripts? Any idea.? I don't want to download both and compare, I looking for idea to develop a script to read both files and... (3 Replies)
Discussion started by: redlotus72
3 Replies

2. Shell Programming and Scripting

to get two almost identical rows into one

Hi All, I am having hard time in getting two almost identical rows into one, I know how to do if starting word is unique, anyhow this is my problem Input File: issue1 5167 dum 1 1 kkk 7888 dum 2 1 ffff 7888 dum 2 2 llll 7888 dum 3 1 eee 7888 issue2 7667 dum 2 1 jjjj 8999 dum 2 2 jjjj... (3 Replies)
Discussion started by: ricky315
3 Replies

3. Shell Programming and Scripting

Compare File Differences in different directories

Hello, I am new to scripting and have been trying to compare two different directories, but with all the same file names in each directory for file changes. I have been doing it in baby steps and have been doing pretty good, but I have hit a few snags. Test 1 and Test 2 work great, but my... (4 Replies)
Discussion started by: dmaday
4 Replies

4. Shell Programming and Scripting

Differences between 2 Flat Files and process the differences

Hi Hope you are having a great weeknd !! I had a question and need your expertise for this : I have 2 files File1 & File2(of same structure) which I need to compare on some columns. I need to find the values which are there in File2 but not in File 1 and put the Differences in another file... (5 Replies)
Discussion started by: newbie_8398
5 Replies

5. Shell Programming and Scripting

Differences between 2 directories

Hi, I am trying to write a script under ksh to list all the differences between two directories. For example: # ls test1 test2 I need to compare all the files under between test1 & test2. When I do diff, it only compares the diectoires but it doesn't check inside. I did do... (3 Replies)
Discussion started by: samnyc
3 Replies

6. UNIX for Dummies Questions & Answers

more than 10 identical lines

I have a file that looks like this 10 user1s, 5 user2s and 10 users3. 10.10.1.1 user1 10.10.1.1 user1 10.10.1.1 user1 10.10.1.1 user1 10.10.1.1 user1 10.10.1.1 user1 10.10.1.1 user1 10.10.1.1 user1 10.10.1.1 user1 10.10.1.1 user1 10.10.1.2 user2 10.10.1.2 user2 10.10.1.2 user2... (7 Replies)
Discussion started by: lawsongeek
7 Replies

7. Ubuntu

reinstall identical system?

I have my Ubuntu system nicely tailored to my needs, with specific software installed, and other things removed. I'd like to build a new PC, and have the identical software configuration on it. Is there some easy way to export the list of installed software to a file? Then have the new machine... (3 Replies)
Discussion started by: lupin..the..3rd
3 Replies

8. UNIX Desktop Questions & Answers

Help for applying same actions to different directories with identical sub-directories

Hello all I have a situation and would be grateful if you will help me... I am not sure whether it is even possible I have few folders/directories ---e.g. A - B - C -in my MAIN directory for each of them I would get the data from folder called DATA and go through a long list of actions which... (5 Replies)
Discussion started by: A-V
5 Replies

9. Shell Programming and Scripting

Chksum on two directories then copy if they are not identical or existing

How can I have an intelligent script that will copy from source to destination directory if the file doesnt exist there or the chksum is not match. SOURCE directory: for i in `ls` > do > echo $i > md5sum $i > echo "" > done asdasda 00039a616135792fb609d04cf27aed95 asdasda ... (5 Replies)
Discussion started by: kenshinhimura
5 Replies

10. Shell Programming and Scripting

Compare directories and copy differences (files) in a another directory

Hey im working on script that can compare 2 directory and check difference, then copy difference files in third diretory. here is the story: in folder one we have 12 subfolder and in each of them near 500 images hosted. 01 02 03 04 05 06 07 08 09 10 11 12 in folder 2 we have same subfolder... (2 Replies)
Discussion started by: nimafire
2 Replies
MKFS.CRAMFS(8)                                                 System Administration                                                MKFS.CRAMFS(8)

NAME
mkfs.cramfs - make compressed ROM file system SYNOPSIS
mkfs.cramfs [options] directory file DESCRIPTION
Files on cramfs file systems are zlib-compressed one page at a time to allow random read access. The metadata is not compressed, but is expressed in a terse representation that is more space-efficient than conventional file systems. The file system is intentionally read-only to simplify its design; random write access for compressed files is difficult to implement. cramfs ships with a utility (mkcramfs) to pack files into new cramfs images. File sizes are limited to less than 16 MB. Maximum file system size is a little under 272 MB. (The last file on the file system must begin before the 256 MB block, but can extend past it.) ARGUMENTS
The directory is simply the root of the directory tree that we want to generate a compressed filesystem out of. The file will contain the cram file system, which later can be mounted. OPTIONS
-v Enable verbose messaging. -E Treat all warnings as errors, which are reflected as command return value. -b blocksize Use defined block size, which has to be divisible by page size. -e edition Use defined file system edition number in superblock. -N big, little, host Use defined endianness. Value defaults to host. -i file Insert a file to cramfs file system. -n name Set name of the cramfs file system. -p Pad by 512 bytes for boot code. -s This option is ignored. Originally the -s turned on directory entry sorting. -z Make explicit holes. -h, --help Display help text and exit. -V, --version Display version information and exit. EXIT STATUS
0 success 8 operation error, such as unable to allocate memory SEE ALSO
fsck.cramfs(8), mount(8) AVAILABILITY
The example command is part of the util-linux package and is available from Linux Kernel Archive <https://www.kernel.org/pub/linux/utils /util-linux/>. util-linux April 2013 MKFS.CRAMFS(8)
All times are GMT -4. The time now is 08:39 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy