Pages

Tuesday, April 22, 2014

List files that are not owned by any installed package

$ for file in /usr/bin/*; do pacman -Qo "$file" &> /dev/null || echo "$file"; done

In this example I am returning all the files in /usr/bin that weren't put there by pacman, so that they can be moved to /usr/local/bin where they (most likely) belong.




commandlinefu.com


by David Winterbottom (codeinthehole.com)






from All commands http://ift.tt/1iHOljp

No comments:

Post a Comment