Check These Out
Traces the system calls of a program. See http://linuxhelp.blogspot.com/2006/05/strace-very-powerful-troubleshooting.html for more information.
the `jq` tool can also be used do validate json files and pretty print output
`cat file.json | jq`
available on several platforms, including newer debian-based systems via `#sudo apt install jq`, mac via `brew install jq`, and from source
https://stedolan.github.io/jq/download/
swap out "80" for your port of interest. Can use port number or named ports e.g. "http"
Great for sysadmins! Don't forget to pass the vlan to your port in a manageable switch.
After vconfig, you should use
$sudo ifconfig eth0.[VID] up
Now the interface is up, you can use dhclient or ifconfig again to get an ip address.
You might want to secure your AWS operations requiring to use a MFA token. But then to use API or tools, you need to pass credentials generated with a MFA token.
This commands asks you for the MFA code and retrieves these credentials using AWS Cli. To print the exports, you can use:
`awk '{ print "export AWS_ACCESS_KEY_ID=\"" $1 "\"\n" "export AWS_SECRET_ACCESS_KEY=\"" $2 "\"\n" "export AWS_SESSION_TOKEN=\"" $3 "\"" }'`
You must adapt the command line to include:
* $MFA_IDis ARN of the virtual MFA or serial number of the physical one
* TTL for the credentials
Remove newlines from output.
One character shorter than awk /./ filename and doesn't use a superfluous cat.
To be fair though, I'm pretty sure fraktil was thinking being able to nuke newlines from any command is much more useful than just from one file.
Find all pngs in directory structure and pngcrush them, none destructive. You can just remove the "{}.crush" part if you want destructive.
#4345 also works under windows
Define a function
$ vert () { echo $1 | grep -o '.'; }
Use it to print some column headers
$ paste
Convert a camelCase string into snake_case.
To complement senorpedro's command.