{ CLI snippets }

Jeffrey Way

Jeffrey Way @jeffrey_way

Just in case you didn't know this was a thing, if you're trying to scan for an old terminal command you ran a while back, type the first few characters and then press ctrl+r. https://t.co/UZ91f2pPE3

CLI
John Papa

John Papa @John_Papa

?Tip of the day ? I find this very helpful when working with node and npm The -- is a special flag that allows you to pass parameters to the underlying script? Did you know ? https://t.co/zNF7IQQDST

CLI
Stanislav Katkov

Stanislav Katkov @5katkov

Just a reminder for OSX users that use 'brew' as a package manager. Run `brew cleanup` regularly, saves gigabytes of storage on hard-drives.

CLI
Radimir Bitsov

Radimir Bitsov @radibit

TIL quick and easy way to create dummy files with certain size for testing purposes e.g. ? `mkfile -n 15m banana.pdf` This will create an empty 15 MB PDF file ? #devtips #webdev

CLI
Nick Janetakis

Nick Janetakis @nickjanetakis

In #bash, you can use FUNCNAME to get a list of functions in the call stack. This is really useful if you want to know the name of the function that called the current function you're in. In that case you could do: echo "${FUNCNAME[1]}"

CLI
Nick Janetakis

Nick Janetakis @nickjanetakis

If you want to grep a file for `--version` you can't just do `grep --version myfile` because grep will parse --version as its own argument, but you can get around this by using `grep -- --version myfile`. Anything after `--` won't count as a command line arg to grep #bash #unix

CLI