Last active
August 25, 2023 23:31
-
-
Save arashatt/77110bea1fd5ce9ed5b820302ab1f631 to your computer and use it in GitHub Desktop.
some code and script concerning php
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
> 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