?
Solved

Compare Linux Boxes

Posted on 2011-09-23
3
Medium Priority
?
308 Views
Last Modified: 2012-05-12
Linux is most certainly not my strong suit so, my apologies if this is a basic question however, I need to compare the entire file structure (directories and physical files) between a production server and a development server.  Preferably I would like to be able to export this to something like a csv so that I can compare the two.
0
Comment
Question by:LouSch7
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
3 Comments
 
LVL 79

Accepted Solution

by:
arnold earned 2000 total points
ID: 36586970
Could you add more detail on what exactly are you looking to compare?
df -k will report the way the system partitions are broken down along with their space allocation/usage
find / -depth will list all files and directories

depending on which system you have rpm -qa/ dpkg -get_selections will list all installed packages.
any command you run can be exported to a file by using a redirect (>) at the end of the line and providing a filename.
you can use comm to compare the list
0
 
LVL 3

Expert Comment

by:dbauermann
ID: 36589714
If you need only compare the name of files, maybe you can use this solution:

Production server:
# find /directory_to_compare > production_list.txt

Development server:
# find /directory_to_compare > development_list.txt

After this, you can compare both files (*_list.txt) with a properly tool.

In command line, can be "diff" (the output is not very friendly). In window environment, you have a lot of options...
0
 
LVL 3

Author Closing Comment

by:LouSch7
ID: 36589777
Exported to text files and then used DiffCompare on a windows box to generate an Excel report with the differences.
0

Featured Post

VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

I. Introduction There's an interesting discussion going on now in an Experts Exchange Group — Attachments with no extension (http://www.experts-exchange.com/discussions/210281/Attachments-with-no-extension.html). This reminded me of questions tha…
Google Drive is extremely cheap offsite storage, and it's even possible to get extra storage for free for two years.  You can use the free account 15GB, and if you have an Android device..when you install Google Drive for the first time it will give…
Connecting to an Amazon Linux EC2 Instance from Windows Using PuTTY.
Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.
Suggested Courses
Course of the Month12 days, 8 hours left to enroll

777 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question