Tag Info

New answers tagged


I would do something like this, which creates a logging wrapper script to replace ln (go ahead and copy-and-paste it): l=$(which ln) mv $l $l.bak cat <<'EOF' >$l #!/bin/bash if grep -Eqw -- -s <<<"$@" echo "Symbolic link created by command: ln $@" >>/tmp/link_log fi <sed> EOF sed "s/<sed>/$l.bak/" -i $l chmod +x $l ...


A somewhat hackish approach, but expedient: find /some/path -name filename | xargs ls -i | sort Which will put all matches next to each other in a list. Note that this assumes a GNU-based userspace.

Top 50 recent answers are included