I use the following script to compare to folders:
if diff "/home/folder1/" "/home/folder2/" &> /dev/null ; then
echo "Files in the two folders are the same"
else
echo "Files in the two folders are NOT the same"
fi
Is there a brief way of explaining what the "&> /dev/null" actually does, does it return a boolean value of true/false?
And my main question: What would the opposite be? I mean, say I want the "if diff" question to be "Is the content of the two folders NOT the same?"