you-dont-need / You-Dont-Need-GUI

Stop relying on GUI; CLI **ROCKS**

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Two items to add to the list

deinonychus opened this issue · 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 feel free to submit a PR