Sometime duplicate executable files or alias creates tons of confusion. To find out duplicated executables files you can use chkdupexe command.
It will scan the union of $PATH and a hardcoded list of common locations for binaries. It will report dangling symlinks and duplicately-named binaries.
Examples
$ chkdupexe
Output:
Dangling symlink: /usr/bin/rmic Dangling symlink: /usr/bin/jar -rwxr-xr-x 1 root root 38936 Sep 23 2004 /usr/bin/nsupdate -rwxr-xr-x 1 root root 203960 Jan 26 2005 /usr/sbin/nsupdate -rwxr-xr-x 1 root root 15139 Apr 6 01:48 /sbin/grub-install -rwxr-xr-x 1 root root 6453 Apr 1 18:38 /usr/sbin/grub-install
As you see, it is quite easy to identify all those duplicates executables files. There is also some good discussion going on about PATH and aliases.
See also:
Updated for accuracy.
Featured Articles:
- 30 Handy Bash Shell Aliases For Linux / Unix / Mac OS X
- Top 30 Nmap Command Examples For Sys/Network Admins
- 25 PHP Security Best Practices For Sys Admins
- 20 Linux System Monitoring Tools Every SysAdmin Should Know
- 20 Linux Server Hardening Security Tips
- Linux: 20 Iptables Examples For New SysAdmins
- Top 20 OpenSSH Server Best Security Practices
- Top 20 Nginx WebServer Best Security Practices
- 20 Examples: Make Sure Unix / Linux Configuration Files Are Free From Syntax Errors
- 15 Greatest Open Source Terminal Applications Of 2012

- My 10 UNIX Command Line Mistakes
- Top 10 Open Source Web-Based Project Management Software
- Top 5 Email Client For Linux, Mac OS X, and Windows Users
- The Novice Guide To Buying A Linux Laptop










{ 3 comments… read them below or add one }
Excuse me, does ‘hkdupexe’ command exist in GNU/Linux? I doesn’t seem to find it.
Thanks
oh, sorry for my poor english, I mean: I don’t seem to find it.
Regards
Command name is chkdupexe and not hkdupexe. It was typo :(
Sorry, and post is updated for accuracy.