Util: Folder Compare Tool


I have recently developed a python utility to compare files with same name stored in the root of two folders.

Few Usage of the tool:

  • Validating the dynamic reports before and after migration of database
  • Validating the text files between two servers after sync.
  • Validating the text files between two version of application.

The python scripts can be download from http://sourceforge.net/projects/pyfoldercompare/

Advertisements

FAQ: TIPS: WINDOWS: How to find all the process details for a particular executable using command line


wmic process where name=”cmd.exe” get executablepath,Com
mandline,Caption

output:

 Caption CommandLine                   ExecutablePath
 cmd.exe "C:\Windows\system32\cmd.exe" C:\Windows\system32\cmd.exe
 cmd.exe "C:\Windows\system32\cmd.exe" C:\Windows\system32\cmd.exe
 cmd.exe "C:\Windows\system32\cmd.exe" C:\Windows\system32\cmd.exe

RPM Interview Questions


Q: How to install packages with all the dependency packages if all the packages are available at a common repository?
Ans : rpm –ivh  –aid packagename.

Q: How to check, where a particular package installed it’s configuration files.
Ans : rpm –qc packagename.

Q: How to check the change log of the installed package.
Ans : rpm -q –changelog packagename.

Q: How to check, where a particular package installed it’s doc files.
Ans : rpm -qd packagenme

Q: How to check all the files installed by package?
Ans : rpm -q –filesbypkg packagename

Q: How to check the version of files installed by a package
Ans : rpm -qi packagename

Q: How to check the dependencies for a particular packages i.e. Required libraries packages etc.
Ans : rpm -q -R packagename.

Q: How to upgrade the packages which are already installed on to the linux box.
Ans : rpm -F install options packagename.

Q: What is the command to update only the rpm database.
Ans : rpm -i –justdb packagename

Q: What is the command to check whether a particular package installation would be successful but would not actually install the package.
Ans : rpm -ivh –test packagename

Q: How to check that a particular file belong to which package
Ans : rpm -qf filename

Q: How to list files in  a package
Ans : rpm -ql packagename

Q: How to verify whether the files installed by package are intact or been tampered/corrupted.
Ans : rpm -qs packagename

Q: What is the command to create a new RPM Database
Ans : rpm –initdb

Q: What is the command to rebuild the RPM Database
Ans : rpm –rebuilddb