comparar ficheiros binários no linux

How do I compare binary files in Linux

This will print the offset and bytes in hex:

cmp -l file1.bin file2.bin | gawk '{printf "%08X %02X %02X\n", $1, strtonum(0$2), strtonum(0$3)}'

Or do $1-1 to have the first printed offset start at 0.

cmp -l file1.bin file2.bin | gawk '{printf "%08X %02X %02X\n", $1-1, strtonum(0$2), strtonum(0$3)}'

Mostrar MaisMais em Super User

configurar servers

utilizador/rede
criar utilizador:
adduser neo

mudar de utilizador:
su neo
cd ~

copiar credenciais ssh:
mkdir .ssh
nano .ssh/authorized_keys
chmod 600 .ssh/authorized_keys

impedir aceso ssh por palavra passe:
nano /etc/ssh/sshd_config
Port 45022
PermitRootLogin no
PasswordAuthentication no
UsePAM no
service ssh restart

remover utilizador marco:
deluser marco
rm -r /home/marco

Subscrever