{ CLI snippets }

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