Tag Info

New answers tagged

4

In XFCE you can drag the icon of your desired application with your mouse to your terminal, you should see the name of the shortcut. This is what I got for Abiword: /usr/share/applications/abiword.desktop Then you can view this file with less /usr/share/applications/abiword.desktop, or just find the executable: grep Exec ...


2

Short answer yes. But if the executable isn't in one of the directories in your $PATH, then you would have to call the executable with the full /path/to/executable.


0

If you don't trust the executable, use readelf -d instead. From the ldd man page: In the usual case, ldd invokes the standard dynamic linker (see ld.so(8)) with the LD_TRACE_LOADED_OBJECTS environment variable set to 1, which causes the linker to display the library dependencies. Be aware, however, that in some circumstances, some versions of ...


1

There are solutions not mentioned here. You can disable hashing with set +h or set +o hashall help set says: -h - Remember the location of commands as they are looked up for execution. This is enabled by default. hashall - Same as -h set -h # enable hashing shopt -u checkhash # disable command existence check hash -p ...


1

Here's a quick script I wrote further to my comment, that in the SIMPLE case of aliases will work. For anything with arguments/etc., though, it will fail miserably. cmd="$1" type=aliased while [ "$type" = "aliased" ]; do output="$(type "$cmd")" type="$(cut -d ' ' -f 3 <<< "$output")" cmd="$(cut -d '`' -f 2 <<< "$output" | tr -d ...


-2

find -type f -exec file {} \; | grep ELF | grep executable | cut -d: -f1



Top 50 recent answers are included