Command below color-differentiate files (in current working directory) having 2 to 9 hard-links (in whole filesystem) and prefixing all files (in current working directory) with command for finding all directory entries for particular inode.
Tested on WSL / Ubuntu 18.04:
ls -dali --time-style +"%Y-%m-%d %H:%M" * .* | sed 's/^/sudo find \/ 2> \/dev\/null -inum /g' | grep -e "[-xtTsS] [234567890] " -e ""
alias lnshow='ls -dali --time-style +"%Y-%m-%d %H:%M" * .* | sed "s/^/sudo find \/ 2> \/dev\/null -inum /g" | grep -e "[-xtTsS] [234567890] " -e ""'
echo "alias lnshow='ls -dali --time-style +\"%Y-%m-%d %H:%M\" * .* | sed \"s/^/sudo find \/ 2> \/dev\/null -inum /g\" | grep -e \"[-xtTsS] [234567890] \" -e \"\"'" >> ~/.profile
lnshow
Žiadne komentáre:
Zverejnenie komentára