This commit is contained in:
zeus 2020-12-04 12:14:57 +01:00
parent 77896c08b4
commit 2aac2106df

View File

@ -1,7 +1,7 @@
#!/bin/bash
# find single biggest file in an installed deb-pkg:
export PKG=vim; for i in $(dpkg -L PKG) ; do if [[ -f "$i" ]] && [[ ! -L "$i" ]]; then ls -lh1 $i ;fi; done | sort -k 5 -hr | head -1 | cut -d " " -f 5,9-
export PKG=vim; for i in $(dpkg -L $PKG) ; do if [[ -f "$i" ]] && [[ ! -L "$i" ]]; then ls -lh1 $i ;fi; done | sort -k 5 -hr | head -1 | cut -d " " -f 5,9-
# find all links in the fs, that link to a specific target:
find / -type l -exec readlink -nf {} ';' -exec echo " -> {}" ';' | grep "/bin/bash"