Get the version of the distro:
[cc lang=”bash”]
cat /etc/issue
cat /etc/*-release
[/cc]
Get the kernel version:
[cc lang=”bash”]
uname -r
[/cc]
Get the version of the distro:
[cc lang=”bash”]
cat /etc/issue
cat /etc/*-release
[/cc]
Get the kernel version:
[cc lang=”bash”]
uname -r
[/cc]
use Digest::MD5;
use IO::File;
my $chk = Digest::MD5->new();
foreach my $file (@ARGV)
{
$chk->addfile(IO::File->new($file));
print "$file -> ",$chk->hexdigest,"\n";
}
The additional details could be found on IBM site