Solved

Compare Linux Boxes

Posted on 2011-09-23
3
307 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 78

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

Windows Server 2016: All you need to know

Learn about Hyper-V features that increase functionality and usability of Microsoft Windows Server 2016. Also, throughout this eBook, you’ll find some basic PowerShell examples that will help you leverage the scripts in your environments!

Question has a verified solution.

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

Network Interface Card (NIC) bonding, also known as link aggregation, NIC teaming and trunking, is an important concept to understand and implement in any environment where high availability is of concern. Using this feature, a server administrator …
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…
Learn several ways to interact with files and get file information from the bash shell. ls lists the contents of a directory: Using the -a flag displays hidden files: Using the -l flag formats the output in a long list: The file command gives us mor…
Connecting to an Amazon Linux EC2 Instance from Windows Using PuTTY.

691 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