- copy directory:
cp -R <source_folder> <destination_folder>
- copy directory content:
cp -R <source_folder>/* <destination_folder>
- awesome-shell
- bash-guide
- Bash reference manual
- Learn Enough Command Line to Be Dangerous
- Learn Shell
- Learn X in Y minutes
- the-art-of-command-line
Pretty Print JSON responses from curl
- When you use
curl
to manually make API calls, sometimes the response is not formatted - You can pipe
json_pp
at the end so you have a prettier json response
$ curl 'https://til.hashrocket.com/api/developer_posts.json?username=gabrielreis' | json_pp
{
"data" : {
"posts" : [
{
"slug" : "mmzlajavna",
"title" : "Display line break content in React with just CSS"
},
{
"title" : "Mutations with the graphql-client Ruby gem",
"slug" : "xej7xtsnit"
},
{
"title" : "The rest of keyword arguments 🍕",
"slug" : "o2wiclcyjf"
}
]
}
}