Linux Users - Mappi...
 

MegaSack DRAW - 6pm Christmas Eve - LIVE on our YouTube Channel

[Closed] Linux Users - Mapping Filesystems

5 Posts
5 Users
0 Reactions
46 Views
Posts: 851
Full Member
Topic starter
 

Strange question I know, but does anyone know if there is software out there that can map the filesystem of a Linux system? I need to compare two servers with slightly different structures.


 
Posted : 24/06/2013 3:26 pm
Posts: 2
Free Member
 

Think I have used this in the past:
http://taxonomy.zoology.gla.ac.uk/rod/treeview.html


 
Posted : 24/06/2013 3:27 pm
Posts: 12079
Full Member
 

du|awk '{print $2}' >directories.txt

... repeat on second machine

then compare using WinMerge or whatever?


 
Posted : 24/06/2013 3:40 pm
Posts: 2
Free Member
 

find / -type d >filename

do that on both machines then copy one file to the other machine and do a diff between them

diff filename1 filename2

unless you want to do all files instead of just directories in which case the command is find / * >filename


 
Posted : 24/06/2013 3:45 pm
Posts: 851
Full Member
Topic starter
 

Thanks for all the replies. Printing Samuri's output to a file and running a diff between them seems to be the easiest way given the circumstances.


 
Posted : 24/06/2013 3:58 pm
Posts: 0
Free Member
 

On system 1
Type "cd /" return
Type "tree > tree1.txt" return
Wait a bit

On system 2
Type "cd /" return
Type "tree > tree2.txt" return
Wait a bit

"sdiff tree1.txt tree2.txt"


 
Posted : 24/06/2013 5:32 pm