Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Two items to add to the list #73

Open
deinonychus opened this issue Mar 11, 2022 · 1 comment
Open

Two items to add to the list #73

deinonychus opened this issue Mar 11, 2022 · 1 comment

Comments

@deinonychus
Copy link

(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'

@stevemao
Copy link
Member

stevemao commented Aug 6, 2023

@deinonychus feel free to submit a PR

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants