Solved

Compare Linux Boxes

Posted on 2011-09-23
3
304 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
3 Comments
 
LVL 77

Accepted Solution

by:
arnold earned 500 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

VMware Disaster Recovery and Data Protection

In this expert guide, you’ll learn about the components of a Modern Data Center. You will use cases for the value-added capabilities of Veeam®, including combining backup and replication for VMware disaster recovery and using replication for data center migration.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
add some character at the end of line in vi 7 79
Linux script delete files 3 34
error log using ftp 7 41
maybe no no httpd.conf 6 47
The purpose of this article is to demonstrate how we can use conditional statements using Python.
Join Greg Farro and Ethan Banks from Packet Pushers (http://packetpushers.net/podcast/podcasts/pq-show-93-smart-network-monitoring-paessler-sponsored/) and Greg Ross from Paessler (https://www.paessler.com/prtg) for a discussion about smart network …
Learn how to get help with Linux/Unix bash shell commands. Use help to read help documents for built in bash shell commands.: Use man to interface with the online reference manuals for shell commands.: Use man to search man pages for unknown command…
This demo shows you how to set up the containerized NetScaler CPX with NetScaler Management and Analytics System in a non-routable Mesos/Marathon environment for use with Micro-Services applications.

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