Solved

Compare Linux Boxes

Posted on 2011-09-23
3
302 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 76

Accepted Solution

by:
arnold earned 500 total points
Comment Utility
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
Comment Utility
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
Comment Utility
Exported to text files and then used DiffCompare on a windows box to generate an Excel report with the differences.
0

Featured Post

IT, Stop Being Called Into Every Meeting

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

Suggested Solutions

Title # Comments Views Activity
AWS EC2 Linux 1 30
Database client version mismatch in PhpMyAdmin 4 56
Open Camera IP 8 91
change time in cron 4 37
Daily system administration tasks often require administrators to connect remote systems. But allowing these remote systems to accept passwords makes these systems vulnerable to the risk of brute-force password guessing attacks. Furthermore there ar…
This is the error message I got (CODE) Error caused by incompatible libmp3lame 3.98-2 with ffmpeg I've googled this error message and found out sometimes it attaches this note "can be treated with downgrade libmp3lame to version 3.97 or 3.98" …
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.

772 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

Need Help in Real-Time?

Connect with top rated Experts

9 Experts available now in Live!

Get 1:1 Help Now