Discussion:Bash et compagnie : Différence entre versions
De Asso Val Libre
(Page créée avec « = Sujet 01 = Solution possible : ») |
(→Sujet 01) |
||
| (Une révision intermédiaire par le même utilisateur non affichée) | |||
| Ligne 3 : | Ligne 3 : | ||
Solution possible : | Solution possible : | ||
| + | |||
| + | lsof | grep /usr/bin | awk '{print $9}' | sort | uniq | xargs dpkg -S | ||
| + | |||
| + | lsof | ||
| + | | grep /usr/bin | ||
| + | | awk '{print $9}' | ||
| + | | sort | ||
| + | | uniq | ||
| + | | xargs dpkg -S | ||
| + | |||
| + | e.g. : | ||
| + | |||
| + | root@:~# lsof | grep /usr/bin | awk '{print $9}' | sort | uniq | xargs dpkg -S | ||
| + | dbus: /usr/bin/dbus-daemon | ||
| + | util-linux: /usr/bin/flock | ||
| + | gawk: /usr/bin/gawk | ||
| + | lsof: /usr/bin/lsof | ||
| + | perl-base: /usr/bin/perl | ||
| + | rsync: /usr/bin/rsync | ||
| + | coreutils: /usr/bin/sort | ||
| + | coreutils: /usr/bin/uniq | ||
| + | mlocate: /usr/bin/updatedb.mlocate | ||
| + | findutils: /usr/bin/xargs | ||
Version actuelle en date du 31 mars 2017 à 14:00
Sujet 01
Solution possible :
lsof | grep /usr/bin | awk '{print $9}' | sort | uniq | xargs dpkg -S
lsof
| grep /usr/bin
| awk '{print $9}'
| sort
| uniq
| xargs dpkg -S
e.g. :
root@:~# lsof | grep /usr/bin | awk '{print $9}' | sort | uniq | xargs dpkg -S
dbus: /usr/bin/dbus-daemon
util-linux: /usr/bin/flock
gawk: /usr/bin/gawk
lsof: /usr/bin/lsof
perl-base: /usr/bin/perl
rsync: /usr/bin/rsync
coreutils: /usr/bin/sort
coreutils: /usr/bin/uniq
mlocate: /usr/bin/updatedb.mlocate
findutils: /usr/bin/xargs