diff --git a/README.md b/README.md index f109467..531ab82 100644 --- a/README.md +++ b/README.md @@ -1034,6 +1034,16 @@ find . -type f -empty -delete find . -type f | wc -l ``` +##### List all files with name [FILE] under / +```bash +find / -name [FILE] 2>&1 | grep -v 'Permission denied' + +# 2>&1 redirects STDERR outputs to STDOUT which is piped +# to the grep inverse filter (-v) filter command. +# Thus, any errors are surpressed, mainly due to access attempts +# on priviliged directories. +``` + ## Condition and loop [[back to top](#handy-bash-one-liners)] @@ -3208,6 +3218,15 @@ cd $(mktemp -d) # for example, this will create a temporary directory "/tmp/tmp.TivmPLUXFT" ``` +##### Quickly return to last working directory +```bash +cd - +# example that will get you back to home directory: +# cd ~ +# cd /tmp/tmp.TivmPLUXFT +# cd - +``` + ##### Make all directories at one time! ```bash mkdir -p project/{lib/ext,bin,src,doc/{html,info,pdf},demo/stat} diff --git a/_config.yml b/_config.yml deleted file mode 100644 index 4a93fb0..0000000 --- a/_config.yml +++ /dev/null @@ -1,2 +0,0 @@ -theme: jekyll-theme-cayman -google_analytics: UA-88670245-2