Two different folders, have the same name but they have different filesize. Is there any linux command that can compare two folders and tell me the diff in filesize at the same time?
|
Both this and Stephane's answer assume that there are no newlines in your filenames. |
|||
|
|
|
With
(you can replace The |
||||
|
|
|
The directory is just a mapping between file names and inodes, there are no "files in the directory". You can ask for the size of the files reachable through the directory by the command If you want to know if the files reachable have the same names/contents, |
|||
|
|

du? – gelraen Jan 22 at 10:15