You-Dont-Need-GUI icon indicating copy to clipboard operation
You-Dont-Need-GUI copied to clipboard

Two items to add to the list

Open deinonychus opened this issue 2 years ago • 1 comments

(1) Add $(!!), recomputes last command

Comes in handy for things like these:

$ which python
/usr/bin/python
$ ls -l $(!!)
ls -l $(which python)
lrwxrwxrwx 1 root root 7 Apr 15  2020 /usr/bin/python -> python2

(2) Or find filename on whole file system, suppressing 'Permission denied' errors:

find / -name filename 2>&1 | grep -v 'Permission denied'

deinonychus avatar Mar 11 '22 19:03 deinonychus

@deinonychus feel free to submit a PR

stevemao avatar Aug 06 '23 11:08 stevemao