Humanity

Edit the world by your favorite way

fileコマンド tips

いつだったかid:thincaさんがLingrで何気なく言ってたやつ。

$ file =firefox
/usr/bin/firefox: symbolic link to `../lib/firefox-3.6.8pre/firefox.sh'
file =command

file `which command`

みたいなことができるんですね。


追記:

シェルの機能だったんですね。
あとbashではできませんでした。zsh限定の機能か。


どうやら「=hoge」が「`which hoge`」の意味らしいですね。

$ echo =firefox
/usr/bin/firefox