Você pode e deve restaurá-lo a partir do backup.
Foi o que aconteceu:
root@rasp:~# ls -al
total 72
drwx------ 8 root root 4096 Jan 22 21:01 .
drwxr-xr-x 25 root root 4096 Sep 11 14:27 ..
-rw------- 1 root root 8079 Jan 22 19:55 .bash_history
-rw-r--r-- 1 root root 570 Jan 31 2010 .bashrc
drwx------ 3 root root 4096 Jul 31 16:28 .config
drwxr-xr-x 2 root root 4096 Jan 21 15:18 misc
-rw-r--r-- 1 root root 140 Nov 19 2007 .profile
-rw-r--r-- 1 root root 204 Jan 22 21:01 psk-01.cap
-rw-r--r-- 1 root root 236 Jan 22 21:01 psk-01.csv
-rw-r--r-- 1 root root 325 Jan 22 21:01 psk-01.kismet.csv
-rw-r--r-- 1 root root 227 Jan 22 21:01 psk-01.kismet.netxml
-rw------- 1 root root 1024 Jul 29 13:26 .rnd
drwxr-xr-x 5 root root 4096 Jan 19 15:51 .rpi-firmware
drwxr-xr-x 2 root root 4096 Sep 10 08:45 scripts
-rw------- 1 root root 259 Aug 1 14:04 .sqlite_history
drwx------ 2 root root 4096 Nov 5 02:05 .ssh
root@rasp:~# rm psk *
rm: cannot remove 'psk': No such file or directory
rm: cannot remove 'aircrack': Is a directory
rm: cannot remove 'misc': Is a directory
rm: cannot remove 'scripts': Is a directory
root@rasp:~# rm psk * -f
rm: cannot remove 'aircrack': Is a directory
rm: cannot remove 'misc': Is a directory
rm: cannot remove 'scripts': Is a directory
root@rasp:~# rm psk * -fR
Eu queria colocar rm psk*
, mas tenho um espaço em branco.
Existe alguma maneira de reconstruir o bash, o config, o profile, o rnd, o rpi-firmware, as pastas e arquivos ssh?
Os seguintes comandos copiarão novamente os arquivos padrão que uma nova conta de instalação obtém.
$ cd /etc/skel
$ cp .* /root/