/bin contents ... dumb mistake...

Hazzz-E

Verified User
Joined
Nov 13, 2006
Messages
5
Location
The Netherlands, Tilburg
He Guys,


I did something really stupid yesterday.
I was cleaning some dir's that I didn't need any more to clean-up some disk space...

Only instead of doing "rm -r *" I did "rm -r /*" DOH !!

Luckily it deleted my backup folder before beginning on /bin... And when discovered my mistake and did a Ctrl-C it had already begone on /bin.

I could recover a few files for another debian install... But not everything is working correctly... Like system and admin backup.

So I was wondering if somebody could post the content of their /bin dir... So I can see what files I am still missing.


Other tips on fixing this problem are always welcome !!
 
Sh*t happens :)

Here are my binaries in /bin for a debian lenny:
$ ls -l /bin |awk '{print $8,$9,$10}'
bash
bunzip2
busybox
bzcat
bzcmp -> bzdiff
bzdiff
bzegrep -> bzgrep
bzexe
bzfgrep -> bzgrep
bzgrep
bzip2
bzip2recover
bzless -> bzmore
bzmore
cat
chgrp
chmod
chown
cp
cpio
date
dd
df
dir
dmesg
dnsdomainname
echo
ed
egrep
false
fgconsole
fgrep
fuser
grep
gunzip
gzexe
gzip
hostname
ip
kill
ln
loadkeys
login
ls
lsmod
mkdir
mknod
mktemp
more
mount
mountpoint
mt -> /etc/alternatives/mt
mt-gnu
mv
nano
nc -> /etc/alternatives/nc
nc.traditional
netcat -> /etc/alternatives/netcat
netstat
nice -> /usr/bin/nice
pidof -> ../sbin/killall5
ping
ping6
ps
pwd
rbash -> bash
readlink
rm
rmdir
rnano -> nano
run-parts
sed
sh -> bash
sleep
stty
su
sync
tailf
tar
tempfile
touch
true
umount
uname
uncompress
vdir
which
zcat
zcmp
zdiff
zegrep
zfgrep
zforce
zgrep
zless
zmore
znew

And those are the packages containing them:
$ ls -l /bin |awk '{print $8}' |xargs -n1 -i{ dpkg -S /bin/{ 2>/dev/null |tr -d ':' |awk '{print $1}' |sort |uniq
bash
busybox
bzip2
console-tools
coreutils
cpio
debianutils
ed
grep
gzip
hostname
initscripts
iproute
iputils-ping
login
mktemp
module-init-tools
mount
nano
netcat-traditional
net-tools
procps
psmisc
sed
sysvinit-utils
tar
util-linux

(I also copied the commands, as I find them quite interesting :D)

You can reinstall those binaries by simply doing apt-get --reinstall install <package>.
 
Back
Top