Skip to content

Instantly share code, notes, and snippets.

@arashatt
Last active August 25, 2023 23:31
Show Gist options
  • Save arashatt/77110bea1fd5ce9ed5b820302ab1f631 to your computer and use it in GitHub Desktop.
Save arashatt/77110bea1fd5ce9ed5b820302ab1f631 to your computer and use it in GitHub Desktop.
some code and script concerning php
> php -S localhost:8000
to run php in a directory.
> SELECT user FROM mysql. user;
> or SELECT user,host FROM mysql. user;
in mysql to list users.
Docker:
$ docker system df
to run df (viewing filesystem usage) on docker.
I think system in the command, refers to both images and containers, so the variant of this command would be:
$ docker image df
$ docker container df
docker images is equivalent to docker image ls.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment