Skip to content

Instantly share code, notes, and snippets.

@JacobWay
Last active May 28, 2017 03:52
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save JacobWay/5eb8f594af49be545d9506e63d2e5f38 to your computer and use it in GitHub Desktop.
Save JacobWay/5eb8f594af49be545d9506e63d2e5f38 to your computer and use it in GitHub Desktop.
The notes about linux command

Linux commands

curl

Curl is a tool to transfer data from or to a server.
curl -X POST "name=you&code=0" http://localhost:9999

man

man section <name>
Sections are well defined:

  • 1 is for shell commands
  • 2 is for system calls
  • 3 is for programming interface
  • 5 is file formats and other rules

Using a HTTP|HTTPS proxy on terminal environment

On a *nix OS

  • export HTTP_PROXY=http://proxy.server.com:portnumber
  • export HTTPS_PROXY=https://proxy.server.com:portnumber

Find and replace

  • grep -nrl -e 'g' . | xargs sed -i '' -e 's/gg/hh/g'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment