Solved

Compare Linux Boxes

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

NEW Veeam Agent for Microsoft Windows

Backup and recover physical and cloud-based servers and workstations, as well as endpoint devices that belong to remote users. Avoid downtime and data loss quickly and easily for Windows-based physical or public cloud-based workloads!

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
bash file 10 66
Running linux commands into linux system remotely using powershell 6 65
Redhat upgrade 1 48
DB2 9.7 Grant Execute SP 4 13
How many times have you wanted to quickly do the same thing to a list but found yourself typing it again and again? I first figured out a small time saver with the up arrow to recall the last command but that can only get you so far if you have a bi…
Using 'screen' for session sharing, The Simple Edition Step 1: user starts session with command: screen Step 2: other user (logged in with same user account) connects with command: screen -x Done. Both users are connected to the same CLI sessio…
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…
Learn how to navigate the file tree with the shell. Use pwd to print the current working directory: Use ls to list a directory's contents: Use cd to change to a new directory: Use wildcards instead of typing out long directory names: Use ../ to move…

749 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