mediatribe.net -- Drupal et développement web

Notice: this post was last updated Il y a 4 years 7 weeks so it might be outdated. Please be cautious before implementing any of suggestions herein.

Linux: moving to the parent of a command file

Say you want to cd into the parent directory of the command file xyz, you can type:

cd $(which xyz | xargs dirname)