Files
Compose-Files/Backups/Miker/Bookstack/cheat-sheets.md
T
2026-07-20 09:23:17 -04:00

245 lines
81 KiB
Markdown
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
---
tags:
- Documentation
- Bookstack
- Notes
---
# Cheat Sheets
# Docker
## Running Containers
<table id="bkmrk-command-description-"><thead><tr><th>COMMAND</th><th>DESCRIPTION</th></tr></thead><tbody><tr><td>`docker run <image>`</td><td>Start a new container from an image</td></tr><tr><td>`docker run -it <image>`</td><td>Start a new container in interactive mode</td></tr><tr><td>`docker run --rm <image>`</td><td>Start a new container and remove it when it exits</td></tr><tr><td>`docker create <image>`</td><td>Create a new container</td></tr><tr><td>`docker start <container>`</td><td>Start a container</td></tr><tr><td>`docker stop <container>`</td><td>Graceful stop a container</td></tr><tr><td>`docker kill <container>`</td><td>Kill (SIGKILL) a container</td></tr><tr><td>`docker restart <container>`</td><td>Graceful stop and restart a container</td></tr><tr><td>`docker pause <container>`</td><td>Suspend a container</td></tr><tr><td>`docker unpause <container>`</td><td>Resume a container</td></tr><tr><td>`docker rm <container>`</td><td>Destroy a container</td></tr></tbody></table>
## Container Bulk Management
<table id="bkmrk-command-description--1"><thead><tr><th>COMMAND</th><th>DESCRIPTION</th></tr></thead><tbody><tr><td>`docker stop $(docker ps -q)`</td><td>To stop all the running containers</td></tr><tr><td>`docker stop $(docker ps -a -q)`</td><td>To stop all the stopped and running containers</td></tr><tr><td>`docker kill $(docker ps -q)`</td><td>To kill all the running containers</td></tr><tr><td>`docker kill $(docker ps -a -q)`</td><td>To kill all the stopped and running containers</td></tr><tr><td>`docker restart $(docker ps -q)`</td><td>To restart all running containers</td></tr><tr><td>`docker restart $(docker ps -a -q)`</td><td>To restart all the stopped and running containers</td></tr><tr><td>`docker rm $(docker ps -q)`</td><td>To destroy all running containers</td></tr><tr><td>`docker rm $(docker ps -a -q)`</td><td>To destroy all the stopped and running containers</td></tr><tr><td>`docker pause $(docker ps -q)`</td><td>To pause all running containers</td></tr><tr><td>`docker pause $(docker ps -a -q)`</td><td>To pause all the stopped and running containers</td></tr><tr><td>`docker start $(docker ps -q)`</td><td>To start all running containers</td></tr><tr><td>`docker start $(docker ps -a -q)`</td><td>To start all the stopped and running containers</td></tr><tr><td>`docker rm -vf $(docker ps -a -q)`</td><td>To delete all containers including its volumes use</td></tr><tr><td>`docker rmi -f $(docker images -a -q)`</td><td>To delete all the images</td></tr><tr><td>`docker system prune`</td><td>To delete all dangling and unused images, containers, cache and volumes</td></tr><tr><td>`docker system prune -a`</td><td>To delete all used and unused images</td></tr><tr><td>`docker system prune --volumes`</td><td>To delete all docker volumes</td></tr></tbody></table>
## Inspect Containers
<table id="bkmrk-command-description--2"><thead><tr><th>COMMAND</th><th>DESCRIPTION</th></tr></thead><tbody><tr><td>`docker ps`</td><td>List running containers</td></tr><tr><td>`docker ps --all`</td><td>List all containers, including stopped</td></tr><tr><td>`docker logs <container>`</td><td>Show a container output</td></tr><tr><td>`docker logs -f <container>`</td><td>Follow a container output</td></tr><tr><td>`docker top <container>`</td><td>List the processes running in a container</td></tr><tr><td>`docker diff`</td><td>Show the differences with the image (modified files)</td></tr><tr><td>`docker inspect`</td><td>Show information of a container (json formatted)</td></tr></tbody></table>
## Executing Commands
<table id="bkmrk-command-description--3"><thead><tr><th>COMMAND</th><th>DESCRIPTION</th></tr></thead><tbody><tr><td>`docker attach <container>`</td><td>Attach to a container</td></tr><tr><td>`docker cp <container>:<container-path> <host-path>`</td><td>Copy files from the container</td></tr><tr><td>`docker cp <host-path> <container>:<container-path>`</td><td>Copy files into the container</td></tr><tr><td>`docker export <container>`</td><td>Export the content of the container (tar archive)</td></tr><tr><td>`docker exec <container>`</td><td>Run a command inside a container</td></tr><tr><td>`docker exec -it <container> /bin/bash`</td><td>Open an interactive shell inside a container (there is no bash in some images, use /bin/sh)</td></tr><tr><td>`docker wait <container>`</td><td>Wait until the container terminates and return the exit code</td></tr></tbody></table>
## Images
<table id="bkmrk-command-description--4"><thead><tr><th>COMMAND</th><th>DESCRIPTION</th></tr></thead><tbody><tr><td>`docker image ls`</td><td>List all local images</td></tr><tr><td>`docker history <image>`</td><td>Show the image history</td></tr><tr><td>`docker inspect <image>`</td><td>Show information (json formatted)</td></tr><tr><td>`docker tag <image> <tag>`</td><td>Tag an image</td></tr><tr><td>`docker commit <container> <image>`</td><td>Create an image (from a container)</td></tr><tr><td>`docker import <url>`</td><td>Create an image (from a tarball)</td></tr><tr><td>`docker rmi <image>`</td><td>Delete images</td></tr><tr><td>`docker pull <user>/<repository>:<tag>`</td><td>Pull an image from a registry</td></tr><tr><td>`docker push <user>/<repository>:<tag>`</td><td>Push and image to a registry</td></tr><tr><td>`docker search <test>`</td><td>Search an image on the official registry</td></tr><tr><td>`docker login`</td><td>Login to a registry</td></tr><tr><td>`docker logout`</td><td>Logout from a registry</td></tr><tr><td>`docker save <user>/<repository>:<tag>`</td><td>Export an image/repo as a tarball</td></tr><tr><td>`docker load`</td><td>Load images from a tarball</td></tr></tbody></table>
## Volumes
<table id="bkmrk-command-description--5"><thead><tr><th>COMMAND</th><th>DESCRIPTION</th></tr></thead><tbody><tr><td>`docker volume ls`</td><td>List all vol1umes</td></tr><tr><td>`docker volume create <volume>`</td><td>Create a volume</td></tr><tr><td>`docker volume inspect <volume>`</td><td>Show information (json formatted)</td></tr><tr><td>`docker volume rm <volume>`</td><td>Destroy a volume</td></tr><tr><td>`docker volume ls --filter="dangling=true"`</td><td>List all dangling volumes (not referenced by any container)</td></tr><tr><td>`docker volume prune`</td><td>Delete all volumes (not referenced by any container)</td></tr><tr><td>`docker run --rm --volumes-from <container> -v $(pwd):/backup busybox tar cvfz /backup/backup.tar.gz <container-path>`</td><td>Backup a container</td></tr><tr><td>`docker run --rm --volumes-from <container> -v $(pwd):/backup busybox sh -c "cd <container-path> && tar xvfz /backup/backup.tar.gz --strip 1"`</td><td>Restore a container from backup</td></tr></tbody></table>
# 256 Color Codes
---
Colors 0-15 are Xterm system colors.
<table id="bkmrk-xterm-number-xterm-n"><thead><tr><th>Xterm Number</th><th>Xterm Name</th><th>HEX</th><th>RGB</th><th>HSL</th></tr></thead><tbody><tr><td>0</td><td>Black (SYSTEM)</td><td>`#000000`</td><td>rgb(0,0,0)</td><td>hsl(0,0%,0%)</td></tr><tr><td>1</td><td>Maroon (SYSTEM)</td><td>`#800000`</td><td>rgb(128,0,0)</td><td>hsl(0,100%,25%)</td></tr><tr><td>2</td><td>Green (SYSTEM)</td><td>`#008000`</td><td>rgb(0,128,0)</td><td>hsl(120,100%,25%)</td></tr><tr><td>3</td><td>Olive (SYSTEM)</td><td>`#808000`</td><td>rgb(128,128,0)</td><td>hsl(60,100%,25%)</td></tr><tr><td>4</td><td>Navy (SYSTEM)</td><td>`#000080`</td><td>rgb(0,0,128)</td><td>hsl(240,100%,25%)</td></tr><tr><td>5</td><td>Purple (SYSTEM)</td><td>`#800080`</td><td>rgb(128,0,128)</td><td>hsl(300,100%,25%)</td></tr><tr><td>6</td><td>Teal (SYSTEM)</td><td>`#008080`</td><td>rgb(0,128,128)</td><td>hsl(180,100%,25%)</td></tr><tr><td>7</td><td>Silver (SYSTEM)</td><td>`#c0c0c0`</td><td>rgb(192,192,192)</td><td>hsl(0,0%,75%)</td></tr><tr><td>8</td><td>Grey (SYSTEM)</td><td>`#808080`</td><td>rgb(128,128,128)</td><td>hsl(0,0%,50%)</td></tr><tr><td>9</td><td>Red (SYSTEM)</td><td>`#ff0000`</td><td>rgb(255,0,0)</td><td>hsl(0,100%,50%)</td></tr><tr><td>10</td><td>Lime (SYSTEM)</td><td>`#00ff00`</td><td>rgb(0,255,0)</td><td>hsl(120,100%,50%)</td></tr><tr><td>11</td><td>Yellow (SYSTEM)</td><td>`#ffff00`</td><td>rgb(255,255,0)</td><td>hsl(60,100%,50%)</td></tr><tr><td>12</td><td>Blue (SYSTEM)</td><td>`#0000ff`</td><td>rgb(0,0,255)</td><td>hsl(240,100%,50%)</td></tr><tr><td>13</td><td>Fuchsia (SYSTEM)</td><td>`#ff00ff`</td><td>rgb(255,0,255)</td><td>hsl(300,100%,50%)</td></tr><tr><td>14</td><td>Aqua (SYSTEM)</td><td>`#00ffff`</td><td>rgb(0,255,255)</td><td>hsl(180,100%,50%)</td></tr><tr><td>15</td><td>White (SYSTEM)</td><td>`#ffffff`</td><td>rgb(255,255,255)</td><td>hsl(0,0%,100%)</td></tr><tr><td>16</td><td>Grey0</td><td>`#000000`</td><td>rgb(0,0,0)</td><td>hsl(0,0%,0%)</td></tr><tr><td>17</td><td>NavyBlue</td><td>`#00005f`</td><td>rgb(0,0,95)</td><td>hsl(240,100%,18%)</td></tr><tr><td>18</td><td>DarkBlue</td><td>`#000087`</td><td>rgb(0,0,135)</td><td>hsl(240,100%,26%)</td></tr><tr><td>19</td><td>Blue3</td><td>`#0000af`</td><td>rgb(0,0,175)</td><td>hsl(240,100%,34%)</td></tr><tr><td>20</td><td>Blue3</td><td>`#0000d7`</td><td>rgb(0,0,215)</td><td>hsl(240,100%,42%)</td></tr><tr><td>21</td><td>Blue1</td><td>`#0000ff`</td><td>rgb(0,0,255)</td><td>hsl(240,100%,50%)</td></tr><tr><td>22</td><td>DarkGreen</td><td>`#005f00`</td><td>rgb(0,95,0)</td><td>hsl(120,100%,18%)</td></tr><tr><td>23</td><td>DeepSkyBlue4</td><td>`#005f5f`</td><td>rgb(0,95,95)</td><td>hsl(180,100%,18%)</td></tr><tr><td>24</td><td>DeepSkyBlue4</td><td>`#005f87`</td><td>rgb(0,95,135)</td><td>hsl(97,100%,26%)</td></tr><tr><td>25</td><td>DeepSkyBlue4</td><td>`#005faf`</td><td>rgb(0,95,175)</td><td>hsl(07,100%,34%)</td></tr><tr><td>26</td><td>DodgerBlue3</td><td>`#005fd7`</td><td>rgb(0,95,215)</td><td>hsl(13,100%,42%)</td></tr><tr><td>27</td><td>DodgerBlue2</td><td>`#005fff`</td><td>rgb(0,95,255)</td><td>hsl(17,100%,50%)</td></tr><tr><td>28</td><td>Green4</td><td>`#008700`</td><td>rgb(0,135,0)</td><td>hsl(120,100%,26%)</td></tr><tr><td>29</td><td>SpringGreen4</td><td>`#00875f`</td><td>rgb(0,135,95)</td><td>hsl(62,100%,26%)</td></tr><tr><td>30</td><td>Turquoise4</td><td>`#008787`</td><td>rgb(0,135,135)</td><td>hsl(180,100%,26%)</td></tr><tr><td>31</td><td>DeepSkyBlue3</td><td>`#0087af`</td><td>rgb(0,135,175)</td><td>hsl(93,100%,34%)</td></tr><tr><td>32</td><td>DeepSkyBlue3</td><td>`#0087d7`</td><td>rgb(0,135,215)</td><td>hsl(02,100%,42%)</td></tr><tr><td>33</td><td>DodgerBlue1</td><td>`#0087ff`</td><td>rgb(0,135,255)</td><td>hsl(08,100%,50%)</td></tr><tr><td>34</td><td>Green3</td><td>`#00af00`</td><td>rgb(0,175,0)</td><td>hsl(120,100%,34%)</td></tr><tr><td>35</td><td>SpringGreen3</td><td>`#00af5f`</td><td>rgb(0,175,95)</td><td>hsl(52,100%,34%)</td></tr><tr><td>36</td><td>DarkCyan</td><td>`#00af87`</td><td>rgb(0,175,135)</td><td>hsl(66,100%,34%)</td></tr><tr><td>37</td><td>LightSeaGreen</td><td>`#00afaf`</td><td>rgb(0,175,175)</td><td>hsl(180,100%,34%)</td></tr><tr><td>38</td><td>DeepSkyBlue2</td><td>`#00afd7`</td><td>rgb(0,175,215)</td><td>hsl(91,100%,42%)</td></tr><tr><td>39</td><td>DeepSkyBlue1</td><td>`#00afff`</td><td>rgb(0,175,255)</td><td>hsl(98,100%,50%)</td></tr><tr><td>40</td><td>Green3</td><td>`#00d700`</td><td>rgb(0,215,0)</td><td>hsl(120,100%,42%)</td></tr><tr><td>41</td><td>SpringGreen3</td><td>`#00d75f`</td><td>rgb(0,215,95)</td><td>hsl(46,100%,42%)</td></tr><tr><td>42</td><td>SpringGreen2</td><td>`#00d787`</td><td>rgb(0,215,135)</td><td>hsl(57,100%,42%)</td></tr><tr><td>43</td><td>Cyan3</td><td>`#00d7af`</td><td>rgb(0,215,175)</td><td>hsl(68,100%,42%)</td></tr><tr><td>44</td><td>DarkTurquoise</td><td>`#00d7d7`</td><td>rgb(0,215,215)</td><td>hsl(180,100%,42%)</td></tr><tr><td>45</td><td>Turquoise2</td><td>`#00d7ff`</td><td>rgb(0,215,255)</td><td>hsl(89,100%,50%)</td></tr><tr><td>46</td><td>Green1</td><td>`#00ff00`</td><td>rgb(0,255,0)</td><td>hsl(120,100%,50%)</td></tr><tr><td>47</td><td>SpringGreen2</td><td>`#00ff5f`</td><td>rgb(0,255,95)</td><td>hsl(42,100%,50%)</td></tr><tr><td>48</td><td>SpringGreen1</td><td>`#00ff87`</td><td>rgb(0,255,135)</td><td>hsl(51,100%,50%)</td></tr><tr><td>49</td><td>MediumSpringGreen</td><td>`#00ffaf`</td><td>rgb(0,255,175)</td><td>hsl(61,100%,50%)</td></tr><tr><td>50</td><td>Cyan2</td><td>`#00ffd7`</td><td>rgb(0,255,215)</td><td>hsl(70,100%,50%)</td></tr><tr><td>51</td><td>Cyan1</td><td>`#00ffff`</td><td>rgb(0,255,255)</td><td>hsl(180,100%,50%)</td></tr><tr><td>52</td><td>DarkRed</td><td>`#5f0000`</td><td>rgb(95,0,0)</td><td>hsl(0,100%,18%)</td></tr><tr><td>53</td><td>DeepPink4</td><td>`#5f005f`</td><td>rgb(95,0,95)</td><td>hsl(300,100%,18%)</td></tr><tr><td>54</td><td>Purple4</td><td>`#5f0087`</td><td>rgb(95,0,135)</td><td>hsl(82,100%,26%)</td></tr><tr><td>55</td><td>Purple4</td><td>`#5f00af`</td><td>rgb(95,0,175)</td><td>hsl(72,100%,34%)</td></tr><tr><td>56</td><td>Purple3</td><td>`#5f00d7`</td><td>rgb(95,0,215)</td><td>hsl(66,100%,42%)</td></tr><tr><td>57</td><td>BlueViolet</td><td>`#5f00ff`</td><td>rgb(95,0,255)</td><td>hsl(62,100%,50%)</td></tr><tr><td>58</td><td>Orange4</td><td>`#5f5f00`</td><td>rgb(95,95,0)</td><td>hsl(60,100%,18%)</td></tr><tr><td>59</td><td>Grey37</td><td>`#5f5f5f`</td><td>rgb(95,95,95)</td><td>hsl(0,0%,37%)</td></tr><tr><td>60</td><td>MediumPurple4</td><td>`#5f5f87`</td><td>rgb(95,95,135)</td><td>hsl(240,17%,45%)</td></tr><tr><td>61</td><td>SlateBlue3</td><td>`#5f5faf`</td><td>rgb(95,95,175)</td><td>hsl(240,33%,52%)</td></tr><tr><td>62</td><td>SlateBlue3</td><td>`#5f5fd7`</td><td>rgb(95,95,215)</td><td>hsl(240,60%,60%)</td></tr><tr><td>63</td><td>RoyalBlue1</td><td>`#5f5fff`</td><td>rgb(95,95,255)</td><td>hsl(240,100%,68%)</td></tr><tr><td>64</td><td>Chartreuse4</td><td>`#5f8700`</td><td>rgb(95,135,0)</td><td>hsl(7,100%,26%)</td></tr><tr><td>65</td><td>DarkSeaGreen4</td><td>`#5f875f`</td><td>rgb(95,135,95)</td><td>hsl(120,17%,45%)</td></tr><tr><td>66</td><td>PaleTurquoise4</td><td>`#5f8787`</td><td>rgb(95,135,135)</td><td>hsl(180,17%,45%)</td></tr><tr><td>67</td><td>SteelBlue</td><td>`#5f87af`</td><td>rgb(95,135,175)</td><td>hsl(210,33%,52%)</td></tr><tr><td>68</td><td>SteelBlue3</td><td>`#5f87d7`</td><td>rgb(95,135,215)</td><td>hsl(220,60%,60%)</td></tr><tr><td>69</td><td>CornflowerBlue</td><td>`#5f87ff`</td><td>rgb(95,135,255)</td><td>hsl(225,100%,68%)</td></tr><tr><td>70</td><td>Chartreuse3</td><td>`#5faf00`</td><td>rgb(95,175,0)</td><td>hsl(7,100%,34%)</td></tr><tr><td>71</td><td>DarkSeaGreen4</td><td>`#5faf5f`</td><td>rgb(95,175,95)</td><td>hsl(120,33%,52%)</td></tr><tr><td>72</td><td>CadetBlue</td><td>`#5faf87`</td><td>rgb(95,175,135)</td><td>hsl(150,33%,52%)</td></tr><tr><td>73</td><td>CadetBlue</td><td>`#5fafaf`</td><td>rgb(95,175,175)</td><td>hsl(180,33%,52%)</td></tr><tr><td>74</td><td>SkyBlue3</td><td>`#5fafd7`</td><td>rgb(95,175,215)</td><td>hsl(200,60%,60%)</td></tr><tr><td>75</td><td>SteelBlue1</td><td>`#5fafff`</td><td>rgb(95,175,255)</td><td>hsl(210,100%,68%)</td></tr><tr><td>76</td><td>Chartreuse3</td><td>`#5fd700`</td><td>rgb(95,215,0)</td><td>hsl(3,100%,42%)</td></tr><tr><td>77</td><td>PaleGreen3</td><td>`#5fd75f`</td><td>rgb(95,215,95)</td><td>hsl(120,60%,60%)</td></tr><tr><td>78</td><td>SeaGreen3</td><td>`#5fd787`</td><td>rgb(95,215,135)</td><td>hsl(140,60%,60%)</td></tr><tr><td>79</td><td>Aquamarine3</td><td>`#5fd7af`</td><td>rgb(95,215,175)</td><td>hsl(160,60%,60%)</td></tr><tr><td>80</td><td>MediumTurquoise</td><td>`#5fd7d7`</td><td>rgb(95,215,215)</td><td>hsl(180,60%,60%)</td></tr><tr><td>81</td><td>SteelBlue1</td><td>`#5fd7ff`</td><td>rgb(95,215,255)</td><td>hsl(195,100%,68%)</td></tr><tr><td>82</td><td>Chartreuse2</td><td>`#5fff00`</td><td>rgb(95,255,0)</td><td>hsl(7,100%,50%)</td></tr><tr><td>83</td><td>SeaGreen2</td><td>`#5fff5f`</td><td>rgb(95,255,95)</td><td>hsl(120,100%,68%)</td></tr><tr><td>84</td><td>SeaGreen1</td><td>`#5fff87`</td><td>rgb(95,255,135)</td><td>hsl(135,100%,68%)</td></tr><tr><td>85</td><td>SeaGreen1</td><td>`#5fffaf`</td><td>rgb(95,255,175)</td><td>hsl(150,100%,68%)</td></tr><tr><td>86</td><td>Aquamarine1</td><td>`#5fffd7`</td><td>rgb(95,255,215)</td><td>hsl(165,100%,68%)</td></tr><tr><td>87</td><td>DarkSlateGray2</td><td>`#5fffff`</td><td>rgb(95,255,255)</td><td>hsl(180,100%,68%)</td></tr><tr><td>88</td><td>DarkRed</td><td>`#870000`</td><td>rgb(135,0,0)</td><td>hsl(0,100%,26%)</td></tr><tr><td>89</td><td>DeepPink4</td><td>`#87005f`</td><td>rgb(135,0,95)</td><td>hsl(17,100%,26%)</td></tr><tr><td>90</td><td>DarkMagenta</td><td>`#870087`</td><td>rgb(135,0,135)</td><td>hsl(300,100%,26%)</td></tr><tr><td>91</td><td>DarkMagenta</td><td>`#8700af`</td><td>rgb(135,0,175)</td><td>hsl(86,100%,34%)</td></tr><tr><td>92</td><td>DarkViolet</td><td>`#8700d7`</td><td>rgb(135,0,215)</td><td>hsl(77,100%,42%)</td></tr><tr><td>93</td><td>Purple</td><td>`#8700ff`</td><td>rgb(135,0,255)</td><td>hsl(71,100%,50%)</td></tr><tr><td>94</td><td>Orange4</td><td>`#875f00`</td><td>rgb(135,95,0)</td><td>hsl(2,100%,26%)</td></tr><tr><td>95</td><td>LightPink4</td><td>`#875f5f`</td><td>rgb(135,95,95)</td><td>hsl(0,17%,45%)</td></tr><tr><td>96</td><td>Plum4</td><td>`#875f87`</td><td>rgb(135,95,135)</td><td>hsl(300,17%,45%)</td></tr><tr><td>97</td><td>MediumPurple3</td><td>`#875faf`</td><td>rgb(135,95,175)</td><td>hsl(270,33%,52%)</td></tr><tr><td>98</td><td>MediumPurple3</td><td>`#875fd7`</td><td>rgb(135,95,215)</td><td>hsl(260,60%,60%)</td></tr><tr><td>99</td><td>SlateBlue1</td><td>`#875fff`</td><td>rgb(135,95,255)</td><td>hsl(255,100%,68%)</td></tr><tr><td>100</td><td>Yellow4</td><td>`#878700`</td><td>rgb(135,135,0)</td><td>hsl(60,100%,26%)</td></tr><tr><td>101</td><td>Wheat4</td><td>`#87875f`</td><td>rgb(135,135,95)</td><td>hsl(60,17%,45%)</td></tr><tr><td>102</td><td>Grey53</td><td>`#878787`</td><td>rgb(135,135,135)</td><td>hsl(0,0%,52%)</td></tr><tr><td>103</td><td>LightSlateGrey</td><td>`#8787af`</td><td>rgb(135,135,175)</td><td>hsl(240,20%,60%)</td></tr><tr><td>104</td><td>MediumPurple</td><td>`#8787d7`</td><td>rgb(135,135,215)</td><td>hsl(240,50%,68%)</td></tr><tr><td>105</td><td>LightSlateBlue</td><td>`#8787ff`</td><td>rgb(135,135,255)</td><td>hsl(240,100%,76%)</td></tr><tr><td>106</td><td>Yellow4</td><td>`#87af00`</td><td>rgb(135,175,0)</td><td>hsl(3,100%,34%)</td></tr><tr><td>107</td><td>DarkOliveGreen3</td><td>`#87af5f`</td><td>rgb(135,175,95)</td><td>hsl(90,33%,52%)</td></tr><tr><td>108</td><td>DarkSeaGreen</td><td>`#87af87`</td><td>rgb(135,175,135)</td><td>hsl(120,20%,60%)</td></tr><tr><td>109</td><td>LightSkyBlue3</td><td>`#87afaf`</td><td>rgb(135,175,175)</td><td>hsl(180,20%,60%)</td></tr><tr><td>110</td><td>LightSkyBlue3</td><td>`#87afd7`</td><td>rgb(135,175,215)</td><td>hsl(210,50%,68%)</td></tr><tr><td>111</td><td>SkyBlue2</td><td>`#87afff`</td><td>rgb(135,175,255)</td><td>hsl(220,100%,76%)</td></tr><tr><td>112</td><td>Chartreuse2</td><td>`#87d700`</td><td>rgb(135,215,0)</td><td>hsl(2,100%,42%)</td></tr><tr><td>113</td><td>DarkOliveGreen3</td><td>`#87d75f`</td><td>rgb(135,215,95)</td><td>hsl(100,60%,60%)</td></tr><tr><td>114</td><td>PaleGreen3</td><td>`#87d787`</td><td>rgb(135,215,135)</td><td>hsl(120,50%,68%)</td></tr><tr><td>115</td><td>DarkSeaGreen3</td><td>`#87d7af`</td><td>rgb(135,215,175)</td><td>hsl(150,50%,68%)</td></tr><tr><td>116</td><td>DarkSlateGray3</td><td>`#87d7d7`</td><td>rgb(135,215,215)</td><td>hsl(180,50%,68%)</td></tr><tr><td>117</td><td>SkyBlue1</td><td>`#87d7ff`</td><td>rgb(135,215,255)</td><td>hsl(200,100%,76%)</td></tr><tr><td>118</td><td>Chartreuse1</td><td>`#87ff00`</td><td>rgb(135,255,0)</td><td>hsl(8,100%,50%)</td></tr><tr><td>119</td><td>LightGreen</td><td>`#87ff5f`</td><td>rgb(135,255,95)</td><td>hsl(105,100%,68%)</td></tr><tr><td>120</td><td>LightGreen</td><td>`#87ff87`</td><td>rgb(135,255,135)</td><td>hsl(120,100%,76%)</td></tr><tr><td>121</td><td>PaleGreen1</td><td>`#87ffaf`</td><td>rgb(135,255,175)</td><td>hsl(140,100%,76%)</td></tr><tr><td>122</td><td>Aquamarine1</td><td>`#87ffd7`</td><td>rgb(135,255,215)</td><td>hsl(160,100%,76%)</td></tr><tr><td>123</td><td>DarkSlateGray1</td><td>`#87ffff`</td><td>rgb(135,255,255)</td><td>hsl(180,100%,76%)</td></tr><tr><td>124</td><td>Red3</td><td>`#af0000`</td><td>rgb(175,0,0)</td><td>hsl(0,100%,34%)</td></tr><tr><td>125</td><td>DeepPink4</td><td>`#af005f`</td><td>rgb(175,0,95)</td><td>hsl(27,100%,34%)</td></tr><tr><td>126</td><td>MediumVioletRed</td><td>`#af0087`</td><td>rgb(175,0,135)</td><td>hsl(13,100%,34%)</td></tr><tr><td>127</td><td>Magenta3</td><td>`#af00af`</td><td>rgb(175,0,175)</td><td>hsl(300,100%,34%)</td></tr><tr><td>128</td><td>DarkViolet</td><td>`#af00d7`</td><td>rgb(175,0,215)</td><td>hsl(88,100%,42%)</td></tr><tr><td>129</td><td>Purple</td><td>`#af00ff`</td><td>rgb(175,0,255)</td><td>hsl(81,100%,50%)</td></tr><tr><td>130</td><td>DarkOrange3</td><td>`#af5f00`</td><td>rgb(175,95,0)</td><td>hsl(2,100%,34%)</td></tr><tr><td>131</td><td>IndianRed</td><td>`#af5f5f`</td><td>rgb(175,95,95)</td><td>hsl(0,33%,52%)</td></tr><tr><td>132</td><td>HotPink3</td><td>`#af5f87`</td><td>rgb(175,95,135)</td><td>hsl(330,33%,52%)</td></tr><tr><td>133</td><td>MediumOrchid3</td><td>`#af5faf`</td><td>rgb(175,95,175)</td><td>hsl(300,33%,52%)</td></tr><tr><td>134</td><td>MediumOrchid</td><td>`#af5fd7`</td><td>rgb(175,95,215)</td><td>hsl(280,60%,60%)</td></tr><tr><td>135</td><td>MediumPurple2</td><td>`#af5fff`</td><td>rgb(175,95,255)</td><td>hsl(270,100%,68%)</td></tr><tr><td>136</td><td>DarkGoldenrod</td><td>`#af8700`</td><td>rgb(175,135,0)</td><td>hsl(6,100%,34%)</td></tr><tr><td>137</td><td>LightSalmon3</td><td>`#af875f`</td><td>rgb(175,135,95)</td><td>hsl(30,33%,52%)</td></tr><tr><td>138</td><td>RosyBrown</td><td>`#af8787`</td><td>rgb(175,135,135)</td><td>hsl(0,20%,60%)</td></tr><tr><td>139</td><td>Grey63</td><td>`#af87af`</td><td>rgb(175,135,175)</td><td>hsl(300,20%,60%)</td></tr><tr><td>140</td><td>MediumPurple2</td><td>`#af87d7`</td><td>rgb(175,135,215)</td><td>hsl(270,50%,68%)</td></tr><tr><td>141</td><td>MediumPurple1</td><td>`#af87ff`</td><td>rgb(175,135,255)</td><td>hsl(260,100%,76%)</td></tr><tr><td>142</td><td>Gold3</td><td>`#afaf00`</td><td>rgb(175,175,0)</td><td>hsl(60,100%,34%)</td></tr><tr><td>143</td><td>DarkKhaki</td><td>`#afaf5f`</td><td>rgb(175,175,95)</td><td>hsl(60,33%,52%)</td></tr><tr><td>144</td><td>NavajoWhite3</td><td>`#afaf87`</td><td>rgb(175,175,135)</td><td>hsl(60,20%,60%)</td></tr><tr><td>145</td><td>Grey69</td><td>`#afafaf`</td><td>rgb(175,175,175)</td><td>hsl(0,0%,68%)</td></tr><tr><td>146</td><td>LightSteelBlue3</td><td>`#afafd7`</td><td>rgb(175,175,215)</td><td>hsl(240,33%,76%)</td></tr><tr><td>147</td><td>LightSteelBlue</td><td>`#afafff`</td><td>rgb(175,175,255)</td><td>hsl(240,100%,84%)</td></tr><tr><td>148</td><td>Yellow3</td><td>`#afd700`</td><td>rgb(175,215,0)</td><td>hsl(1,100%,42%)</td></tr><tr><td>149</td><td>DarkOliveGreen3</td><td>`#afd75f`</td><td>rgb(175,215,95)</td><td>hsl(80,60%,60%)</td></tr><tr><td>150</td><td>DarkSeaGreen3</td><td>`#afd787`</td><td>rgb(175,215,135)</td><td>hsl(90,50%,68%)</td></tr><tr><td>151</td><td>DarkSeaGreen2</td><td>`#afd7af`</td><td>rgb(175,215,175)</td><td>hsl(120,33%,76%)</td></tr><tr><td>152</td><td>LightCyan3</td><td>`#afd7d7`</td><td>rgb(175,215,215)</td><td>hsl(180,33%,76%)</td></tr><tr><td>153</td><td>LightSkyBlue1</td><td>`#afd7ff`</td><td>rgb(175,215,255)</td><td>hsl(210,100%,84%)</td></tr><tr><td>154</td><td>GreenYellow</td><td>`#afff00`</td><td>rgb(175,255,0)</td><td>hsl(8,100%,50%)</td></tr><tr><td>155</td><td>DarkOliveGreen2</td><td>`#afff5f`</td><td>rgb(175,255,95)</td><td>hsl(90,100%,68%)</td></tr><tr><td>156</td><td>PaleGreen1</td><td>`#afff87`</td><td>rgb(175,255,135)</td><td>hsl(100,100%,76%)</td></tr><tr><td>157</td><td>DarkSeaGreen2</td><td>`#afffaf`</td><td>rgb(175,255,175)</td><td>hsl(120,100%,84%)</td></tr><tr><td>158</td><td>DarkSeaGreen1</td><td>`#afffd7`</td><td>rgb(175,255,215)</td><td>hsl(150,100%,84%)</td></tr><tr><td>159</td><td>PaleTurquoise1</td><td>`#afffff`</td><td>rgb(175,255,255)</td><td>hsl(180,100%,84%)</td></tr><tr><td>160</td><td>Red3</td><td>`#d70000`</td><td>rgb(215,0,0)</td><td>hsl(0,100%,42%)</td></tr><tr><td>161</td><td>DeepPink3</td><td>`#d7005f`</td><td>rgb(215,0,95)</td><td>hsl(33,100%,42%)</td></tr><tr><td>162</td><td>DeepPink3</td><td>`#d70087`</td><td>rgb(215,0,135)</td><td>hsl(22,100%,42%)</td></tr><tr><td>163</td><td>Magenta3</td><td>`#d700af`</td><td>rgb(215,0,175)</td><td>hsl(11,100%,42%)</td></tr><tr><td>164</td><td>Magenta3</td><td>`#d700d7`</td><td>rgb(215,0,215)</td><td>hsl(300,100%,42%)</td></tr><tr><td>165</td><td>Magenta2</td><td>`#d700ff`</td><td>rgb(215,0,255)</td><td>hsl(90,100%,50%)</td></tr><tr><td>166</td><td>DarkOrange3</td><td>`#d75f00`</td><td>rgb(215,95,0)</td><td>hsl(6,100%,42%)</td></tr><tr><td>167</td><td>IndianRed</td><td>`#d75f5f`</td><td>rgb(215,95,95)</td><td>hsl(0,60%,60%)</td></tr><tr><td>168</td><td>HotPink3</td><td>`#d75f87`</td><td>rgb(215,95,135)</td><td>hsl(340,60%,60%)</td></tr><tr><td>169</td><td>HotPink2</td><td>`#d75faf`</td><td>rgb(215,95,175)</td><td>hsl(320,60%,60%)</td></tr><tr><td>170</td><td>Orchid</td><td>`#d75fd7`</td><td>rgb(215,95,215)</td><td>hsl(300,60%,60%)</td></tr><tr><td>171</td><td>MediumOrchid1</td><td>`#d75fff`</td><td>rgb(215,95,255)</td><td>hsl(285,100%,68%)</td></tr><tr><td>172</td><td>Orange3</td><td>`#d78700`</td><td>rgb(215,135,0)</td><td>hsl(7,100%,42%)</td></tr><tr><td>173</td><td>LightSalmon3</td><td>`#d7875f`</td><td>rgb(215,135,95)</td><td>hsl(20,60%,60%)</td></tr><tr><td>174</td><td>LightPink3</td><td>`#d78787`</td><td>rgb(215,135,135)</td><td>hsl(0,50%,68%)</td></tr><tr><td>175</td><td>Pink3</td><td>`#d787af`</td><td>rgb(215,135,175)</td><td>hsl(330,50%,68%)</td></tr><tr><td>176</td><td>Plum3</td><td>`#d787d7`</td><td>rgb(215,135,215)</td><td>hsl(300,50%,68%)</td></tr><tr><td>177</td><td>Violet</td><td>`#d787ff`</td><td>rgb(215,135,255)</td><td>hsl(280,100%,76%)</td></tr><tr><td>178</td><td>Gold3</td><td>`#d7af00`</td><td>rgb(215,175,0)</td><td>hsl(8,100%,42%)</td></tr><tr><td>179</td><td>LightGoldenrod3</td><td>`#d7af5f`</td><td>rgb(215,175,95)</td><td>hsl(40,60%,60%)</td></tr><tr><td>180</td><td>Tan</td><td>`#d7af87`</td><td>rgb(215,175,135)</td><td>hsl(30,50%,68%)</td></tr><tr><td>181</td><td>MistyRose3</td><td>`#d7afaf`</td><td>rgb(215,175,175)</td><td>hsl(0,33%,76%)</td></tr><tr><td>182</td><td>Thistle3</td><td>`#d7afd7`</td><td>rgb(215,175,215)</td><td>hsl(300,33%,76%)</td></tr><tr><td>183</td><td>Plum2</td><td>`#d7afff`</td><td>rgb(215,175,255)</td><td>hsl(270,100%,84%)</td></tr><tr><td>184</td><td>Yellow3</td><td>`#d7d700`</td><td>rgb(215,215,0)</td><td>hsl(60,100%,42%)</td></tr><tr><td>185</td><td>Khaki3</td><td>`#d7d75f`</td><td>rgb(215,215,95)</td><td>hsl(60,60%,60%)</td></tr><tr><td>186</td><td>LightGoldenrod2</td><td>`#d7d787`</td><td>rgb(215,215,135)</td><td>hsl(60,50%,68%)</td></tr><tr><td>187</td><td>LightYellow3</td><td>`#d7d7af`</td><td>rgb(215,215,175)</td><td>hsl(60,33%,76%)</td></tr><tr><td>188</td><td>Grey84</td><td>`#d7d7d7`</td><td>rgb(215,215,215)</td><td>hsl(0,0%,84%)</td></tr><tr><td>189</td><td>LightSteelBlue1</td><td>`#d7d7ff`</td><td>rgb(215,215,255)</td><td>hsl(240,100%,92%)</td></tr><tr><td>190</td><td>Yellow2</td><td>`#d7ff00`</td><td>rgb(215,255,0)</td><td>hsl(9,100%,50%)</td></tr><tr><td>191</td><td>DarkOliveGreen1</td><td>`#d7ff5f`</td><td>rgb(215,255,95)</td><td>hsl(75,100%,68%)</td></tr><tr><td>192</td><td>DarkOliveGreen1</td><td>`#d7ff87`</td><td>rgb(215,255,135)</td><td>hsl(80,100%,76%)</td></tr><tr><td>193</td><td>DarkSeaGreen1</td><td>`#d7ffaf`</td><td>rgb(215,255,175)</td><td>hsl(90,100%,84%)</td></tr><tr><td>194</td><td>Honeydew2</td><td>`#d7ffd7`</td><td>rgb(215,255,215)</td><td>hsl(120,100%,92%)</td></tr><tr><td>195</td><td>LightCyan1</td><td>`#d7ffff`</td><td>rgb(215,255,255)</td><td>hsl(180,100%,92%)</td></tr><tr><td>196</td><td>Red1</td><td>`#ff0000`</td><td>rgb(255,0,0)</td><td>hsl(0,100%,50%)</td></tr><tr><td>197</td><td>DeepPink2</td><td>`#ff005f`</td><td>rgb(255,0,95)</td><td>hsl(37,100%,50%)</td></tr><tr><td>198</td><td>DeepPink1</td><td>`#ff0087`</td><td>rgb(255,0,135)</td><td>hsl(28,100%,50%)</td></tr><tr><td>199</td><td>DeepPink1</td><td>`#ff00af`</td><td>rgb(255,0,175)</td><td>hsl(18,100%,50%)</td></tr><tr><td>200</td><td>Magenta2</td><td>`#ff00d7`</td><td>rgb(255,0,215)</td><td>hsl(09,100%,50%)</td></tr><tr><td>201</td><td>Magenta1</td><td>`#ff00ff`</td><td>rgb(255,0,255)</td><td>hsl(300,100%,50%)</td></tr><tr><td>202</td><td>OrangeRed1</td><td>`#ff5f00`</td><td>rgb(255,95,0)</td><td>hsl(2,100%,50%)</td></tr><tr><td>203</td><td>IndianRed1</td><td>`#ff5f5f`</td><td>rgb(255,95,95)</td><td>hsl(0,100%,68%)</td></tr><tr><td>204</td><td>IndianRed1</td><td>`#ff5f87`</td><td>rgb(255,95,135)</td><td>hsl(345,100%,68%)</td></tr><tr><td>205</td><td>HotPink</td><td>`#ff5faf`</td><td>rgb(255,95,175)</td><td>hsl(330,100%,68%)</td></tr><tr><td>206</td><td>HotPink</td><td>`#ff5fd7`</td><td>rgb(255,95,215)</td><td>hsl(315,100%,68%)</td></tr><tr><td>207</td><td>MediumOrchid1</td><td>`#ff5fff`</td><td>rgb(255,95,255)</td><td>hsl(300,100%,68%)</td></tr><tr><td>208</td><td>DarkOrange</td><td>`#ff8700`</td><td>rgb(255,135,0)</td><td>hsl(1,100%,50%)</td></tr><tr><td>209</td><td>Salmon1</td><td>`#ff875f`</td><td>rgb(255,135,95)</td><td>hsl(15,100%,68%)</td></tr><tr><td>210</td><td>LightCoral</td><td>`#ff8787`</td><td>rgb(255,135,135)</td><td>hsl(0,100%,76%)</td></tr><tr><td>211</td><td>PaleVioletRed1</td><td>`#ff87af`</td><td>rgb(255,135,175)</td><td>hsl(340,100%,76%)</td></tr><tr><td>212</td><td>Orchid2</td><td>`#ff87d7`</td><td>rgb(255,135,215)</td><td>hsl(320,100%,76%)</td></tr><tr><td>213</td><td>Orchid1</td><td>`#ff87ff`</td><td>rgb(255,135,255)</td><td>hsl(300,100%,76%)</td></tr><tr><td>214</td><td>Orange1</td><td>`#ffaf00`</td><td>rgb(255,175,0)</td><td>hsl(1,100%,50%)</td></tr><tr><td>215</td><td>SandyBrown</td><td>`#ffaf5f`</td><td>rgb(255,175,95)</td><td>hsl(30,100%,68%)</td></tr><tr><td>216</td><td>LightSalmon1</td><td>`#ffaf87`</td><td>rgb(255,175,135)</td><td>hsl(20,100%,76%)</td></tr><tr><td>217</td><td>LightPink1</td><td>`#ffafaf`</td><td>rgb(255,175,175)</td><td>hsl(0,100%,84%)</td></tr><tr><td>218</td><td>Pink1</td><td>`#ffafd7`</td><td>rgb(255,175,215)</td><td>hsl(330,100%,84%)</td></tr><tr><td>219</td><td>Plum1</td><td>`#ffafff`</td><td>rgb(255,175,255)</td><td>hsl(300,100%,84%)</td></tr><tr><td>220</td><td>Gold1</td><td>`#ffd700`</td><td>rgb(255,215,0)</td><td>hsl(0,100%,50%)</td></tr><tr><td>221</td><td>LightGoldenrod2</td><td>`#ffd75f`</td><td>rgb(255,215,95)</td><td>hsl(45,100%,68%)</td></tr><tr><td>222</td><td>LightGoldenrod2</td><td>`#ffd787`</td><td>rgb(255,215,135)</td><td>hsl(40,100%,76%)</td></tr><tr><td>223</td><td>NavajoWhite1</td><td>`#ffd7af`</td><td>rgb(255,215,175)</td><td>hsl(30,100%,84%)</td></tr><tr><td>224</td><td>MistyRose1</td><td>`#ffd7d7`</td><td>rgb(255,215,215)</td><td>hsl(0,100%,92%)</td></tr><tr><td>225</td><td>Thistle1</td><td>`#ffd7ff`</td><td>rgb(255,215,255)</td><td>hsl(300,100%,92%)</td></tr><tr><td>226</td><td>Yellow1</td><td>`#ffff00`</td><td>rgb(255,255,0)</td><td>hsl(60,100%,50%)</td></tr><tr><td>227</td><td>LightGoldenrod1</td><td>`#ffff5f`</td><td>rgb(255,255,95)</td><td>hsl(60,100%,68%)</td></tr><tr><td>228</td><td>Khaki1</td><td>`#ffff87`</td><td>rgb(255,255,135)</td><td>hsl(60,100%,76%)</td></tr><tr><td>229</td><td>Wheat1</td><td>`#ffffaf`</td><td>rgb(255,255,175)</td><td>hsl(60,100%,84%)</td></tr><tr><td>230</td><td>Cornsilk1</td><td>`#ffffd7`</td><td>rgb(255,255,215)</td><td>hsl(60,100%,92%)</td></tr><tr><td>231</td><td>Grey100</td><td>`#ffffff`</td><td>rgb(255,255,255)</td><td>hsl(0,0%,100%)</td></tr><tr><td>232</td><td>Grey3</td><td>`#080808`</td><td>rgb(8,8,8)</td><td>hsl(0,0%,3%)</td></tr><tr><td>233</td><td>Grey7</td><td>`#121212`</td><td>rgb(18,18,18)</td><td>hsl(0,0%,7%)</td></tr><tr><td>234</td><td>Grey11</td><td>`#1c1c1c`</td><td>rgb(28,28,28)</td><td>hsl(0,0%,10%)</td></tr><tr><td>235</td><td>Grey15</td><td>`#262626`</td><td>rgb(38,38,38)</td><td>hsl(0,0%,14%)</td></tr><tr><td>236</td><td>Grey19</td><td>`#303030`</td><td>rgb(48,48,48)</td><td>hsl(0,0%,18%)</td></tr><tr><td>237</td><td>Grey23</td><td>`#3a3a3a`</td><td>rgb(58,58,58)</td><td>hsl(0,0%,22%)</td></tr><tr><td>238</td><td>Grey27</td><td>`#444444`</td><td>rgb(68,68,68)</td><td>hsl(0,0%,26%)</td></tr><tr><td>239</td><td>Grey30</td><td>`#4e4e4e`</td><td>rgb(78,78,78)</td><td>hsl(0,0%,30%)</td></tr><tr><td>240</td><td>Grey35</td><td>`#585858`</td><td>rgb(88,88,88)</td><td>hsl(0,0%,34%)</td></tr><tr><td>241</td><td>Grey39</td><td>`#626262`</td><td>rgb(98,98,98)</td><td>hsl(0,0%,37%)</td></tr><tr><td>242</td><td>Grey42</td><td>`#6c6c6c`</td><td>rgb(108,108,108)</td><td>hsl(0,0%,40%)</td></tr><tr><td>243</td><td>Grey46</td><td>`#767676`</td><td>rgb(118,118,118)</td><td>hsl(0,0%,46%)</td></tr><tr><td>244</td><td>Grey50</td><td>`#808080`</td><td>rgb(128,128,128)</td><td>hsl(0,0%,50%)</td></tr><tr><td>245</td><td>Grey54</td><td>`#8a8a8a`</td><td>rgb(138,138,138)</td><td>hsl(0,0%,54%)</td></tr><tr><td>246</td><td>Grey58</td><td>`#949494`</td><td>rgb(148,148,148)</td><td>hsl(0,0%,58%)</td></tr><tr><td>247</td><td>Grey62</td><td>`#9e9e9e`</td><td>rgb(158,158,158)</td><td>hsl(0,0%,61%)</td></tr><tr><td>248</td><td>Grey66</td><td>`#a8a8a8`</td><td>rgb(168,168,168)</td><td>hsl(0,0%,65%)</td></tr><tr><td>249</td><td>Grey70</td><td>`#b2b2b2`</td><td>rgb(178,178,178)</td><td>hsl(0,0%,69%)</td></tr><tr><td>250</td><td>Grey74</td><td>`#bcbcbc`</td><td>rgb(188,188,188)</td><td>hsl(0,0%,73%)</td></tr><tr><td>251</td><td>Grey78</td><td>`#c6c6c6`</td><td>rgb(198,198,198)</td><td>hsl(0,0%,77%)</td></tr><tr><td>252</td><td>Grey82</td><td>`#d0d0d0`</td><td>rgb(208,208,208)</td><td>hsl(0,0%,81%)</td></tr><tr><td>253</td><td>Grey85</td><td>`#dadada`</td><td>rgb(218,218,218)</td><td>hsl(0,0%,85%)</td></tr><tr><td>254</td><td>Grey89</td><td>`#e4e4e4`</td><td>rgb(228,228,228)</td><td>hsl(0,0%,89%)</td></tr><tr><td>255</td><td>Grey93</td><td>`#eeeeee`</td><td>rgb(238,238,238)</td><td>hsl(0,0%,93%)</td></tr></tbody></table>
# ARP in Linux
<table id="bkmrk-command-description-"><thead><tr><th>Command</th><th>Description</th></tr></thead><tbody><tr><td>`arp`</td><td>View the ARP table</td></tr><tr><td>`arp -a`</td><td>View the ARP table</td></tr><tr><td>`arp -n`</td><td>View the ARP table (don't resolve names)</td></tr><tr><td>`arp -d <ip>`</td><td>Delete an entry from the ARP table</td></tr><tr><td>`arp -s <ip> <mac_address>`</td><td>Add an entry to the ARP table</td></tr><tr><td>`arp -i <interface> -s <ip> <mac_address>`</td><td>Add an entry to the ARP table for a specific interface</td></tr><tr><td>`arp -i <interface> -d <ip>`</td><td>Delete an entry from the ARP table for a specific interface</td></tr><tr><td>`arp -i <interface> -n`</td><td>View the ARP table for a specific interface</td></tr><tr><td>`arp -i <interface> -a`</td><td>View the ARP table for a specific interface</td></tr><tr><td>`ip neigh show`</td><td>View the ARP table</td></tr><tr><td>`ip neigh show <ip>`</td><td>View the ARP table for a specific IP address</td></tr><tr><td>`ip neigh add <ip> lladdr <mac_address> dev <interface>`</td><td>Add an entry to the ARP table</td></tr><tr><td>`ip neigh change <ip> lladdr <mac_address> dev <interface>`</td><td>Change an entry in the ARP table</td></tr><tr><td>`ip neigh del <ip> dev <interface>`</td><td>Delete an entry from the ARP table</td></tr><tr><td>`ip neigh flush dev <interface>`</td><td>Flush the ARP table for a specific interface</td></tr><tr><td>`ip neigh flush all`</td><td>Flush the ARP table</td></tr><tr><td>`ip -s neigh show`</td><td>Show ARP statistics</td></tr><tr><td>`ip -s neigh flush all`</td><td>Flush the ARP cache</td></tr></tbody></table>
# AWK
<table id="bkmrk-command-description-"><thead><tr><th>Command</th><th>Description</th></tr></thead><tbody><tr><td>`awk '/pattern/ {print $1}'`</td><td>standard Unix shells</td></tr><tr><td>`awk '/pattern/ {print "$1"}'`</td><td>compiled with DJGPP, Cygwin</td></tr><tr><td>`awk "/pattern/ {print \"$1\"}"`</td><td>GnuWin32, UnxUtils, Mingw</td></tr><tr><td>`awk '1;{print ""}'`</td><td>double space a file</td></tr><tr><td>`awk 'BEGIN{ORS="\n\n"};1'`</td><td>double space a file</td></tr><tr><td>`awk 'NF{print $0 "\n"}'`</td><td>double space a file which already has blank lines</td></tr><tr><td>`awk '1;{print "\n"}'`</td><td>triple space a file</td></tr><tr><td>`awk '{print FNR "\t" $0}' files*`</td><td>precede each line by its line number</td></tr><tr><td>`awk '{print NR "\t" $0}' files*`</td><td>precede each line by its line number for all files together</td></tr><tr><td>`awk '{printf("%5d : %s\n", NR,$0)}'`</td><td>number each line of a file</td></tr><tr><td>`awk 'NF{$0=++a " :" $0};1'`</td><td>number each line of a file, but only print numbers if line is not blank</td></tr><tr><td>`awk 'END{print NR}'`</td><td>count lines (emulates "wc -l")</td></tr><tr><td>`awk '{s=0; for (i=1; i<=NF; i++) s=s+$i; print s}'`</td><td>print the sums of the fields of every line</td></tr><tr><td>`awk '{for (i=1; i<=NF; i++) s=s+$i}; END{print s}'`</td><td>add all fields in all lines and print the sum</td></tr><tr><td>`awk '{for (i=1; i<=NF; i++) if ($i < 0) $i = -$i; print }'`</td><td>print every line after replacing each field with its absolute value</td></tr><tr><td>`awk '{for (i=1; i<=NF; i++) $i = ($i < 0) ? -$i : $i; print }'`</td><td>print every line after replacing each field with its absolute value</td></tr><tr><td>`awk '{ total = total + NF }; END {print total}' file`</td><td>print the total number of fields ("words") in all lines</td></tr><tr><td>`awk '/Beth/{n++}; END {print n+0}' file`</td><td>print the total number of lines that contain "Beth"</td></tr><tr><td>`awk '$1 > max {max=$1; maxline=$0}; END{ print max, maxline}'`</td><td>print the largest first field and the line that contains it</td></tr><tr><td>`awk '{ print NF ":" $0 }'`</td><td>print the number of fields in each line, followed by the line</td></tr><tr><td>`awk '{ print $NF }'`</td><td>print the last field of each line</td></tr><tr><td>`awk '{ field = $NF }; END{ print field }'`</td><td>print the last field of the last line</td></tr><tr><td>`awk 'NF > 4'`</td><td>print every line with more than 4 fields</td></tr><tr><td>`awk '$NF > 4'`</td><td>print every line where the value of the last field is &gt; 4</td></tr></tbody></table>
# Certutil
<table id="bkmrk-command-description-"><thead><tr><th>Command</th><th>Description</th></tr></thead><tbody><tr><td>`certutil -store MY`</td><td>List personal certificates</td></tr><tr><td>`certutil -store ROOT`</td><td>List root certificates</td></tr><tr><td>`certutil -store CA`</td><td>List intermediate certificates</td></tr><tr><td>`certutil -addstore -f "ROOT" new-root-certificate.crt`</td><td>Add a root certificate</td></tr><tr><td>`certutil -delstore "ROOT" serial-number-hex`</td><td>Remove a root certificate</td></tr><tr><td>`certutil -addstore -f "CA" new-intermediate-certificate.crt`</td><td>Add an intermediate certificate</td></tr><tr><td>`certutil -delstore "CA" serial-number-hex`</td><td>Remove an intermediate certificate</td></tr><tr><td>`certutil -addstore -f "MY" new-personal-certificate.pfx`</td><td>Add a personal certificate</td></tr><tr><td>`certutil -delstore "MY" serial-number-hex`</td><td>Remove a personal certificate</td></tr><tr><td>`certutil -dump certificate.crt`</td><td>Display certificate information</td></tr><tr><td>`certutil -encode certificate.crt encoded-certificate.txt`</td><td>Encode a certificate</td></tr><tr><td>`certutil -decode encoded-certificate.txt decoded-certificate.crt`</td><td>Decode a certificate</td></tr><tr><td>`certutil -hashfile file.txt SHA256`</td><td>Calculate the SHA256 hash of a file</td></tr></tbody></table>
# DNS
### Commonly used DNS Records
<table id="bkmrk-type-description-a-t"><thead><tr><th>Type</th><th>Description</th></tr></thead><tbody><tr><td>**A**</td><td>The record that holds the IP address of a domain.</td></tr><tr><td>**AAAA**</td><td>The record that contains the IPv6 address for a domain (as opposed to A records, which list the IPv4 address).</td></tr><tr><td>**CNAME**</td><td>Forwards one domain or subdomain to another domain, does NOT provide an IP address.</td></tr><tr><td>**MX**</td><td>Directs mail to an email server.</td></tr><tr><td>**TXT**</td><td>Lets an admin store text notes in the record. These records are often used for email security.</td></tr><tr><td>**NS**</td><td>Stores the name server for a DNS entry.</td></tr><tr><td>**SOA**</td><td>Stores admin information about a domain.</td></tr><tr><td>**SRV**</td><td>Specifies a port for specific services.</td></tr><tr><td>**PTR**</td><td>Provides a domain name in reverse-lookups.</td></tr></tbody></table>
### Less commonly used DNS Records
<table id="bkmrk-type-description-apl"><thead><tr><th>Type</th><th>Description</th></tr></thead><tbody><tr><td>**APL**</td><td>The address prefix list is an experiment record that specifies lists of address ranges.</td></tr><tr><td>**AFSDB**</td><td>This record is used for clients of the Andrew File System (AFS) developed by Carnegie Melon. The AFSDB record functions to find other AFS cells.</td></tr><tr><td>**CAA**</td><td>This is the certification authority authorization record, it allows domain owners state which certificate authorities can issue certificates for that domain. If no CAA record exists, then anyone can issue a certificate for the domain. These records are also inherited by subdomains.</td></tr><tr><td>**DNSKEY**</td><td>The DNS Key Record contains a public key used to verify Domain Name System Security Extension (DNSSEC) signatures</td></tr><tr><td>**CDNSKEY**</td><td>This is a child copy of the DNSKEY record, meant to be transferred to a parent.</td></tr><tr><td>**CERT**</td><td>The certificate record stores public key certificates.</td></tr><tr><td>**DCHID**</td><td>The DHCP Identifier stores info for the Dynamic Host Configuration Protocol (DHCP), a standardized network protocol used on IP networks.</td></tr><tr><td>**DNAME**</td><td>The delegation name record creates a domain alias, just like CNAME, but this alias will redirect all subdomains as well. For instance if the owner of example.com bought the domain website.net and gave it a DNAME record that points to example.com, then that pointer would also extend to blog.website.net and any other subdomains.</td></tr><tr><td>**HIP**</td><td>This record uses Host identity protocol, a way to separate the roles of an IP address; this record is used most often in mobile computing.</td></tr><tr><td>**IPSECKEY**</td><td>The IPSEC key record works with the Internet Protocol Security (IPSEC), an end-to-end security protocol framework and part of the Internet Protocol Suite (TCP/IP).</td></tr><tr><td>**LOC**</td><td>The location record contains geographical information for a domain in the form of longitude and latitude coordinates.</td></tr><tr><td>**NAPTR**</td><td>The name authority pointer record can be combined with an SRV record to dynamically create URIs to point to based on a regular expression.</td></tr><tr><td>**NSEC**</td><td>The next secure record is part of DNSSEC, and its used to prove that a requested DNS resource record does not exist.</td></tr><tr><td>**RRSIG**</td><td>The resource record signature is a record to store digital signatures used to authenticate records in accordance with DNSSEC.</td></tr><tr><td>**RP**</td><td>This is the responsible person record and it stores the email address of the person responsible for the domain.</td></tr><tr><td>**SSHFP**</td><td>This record stores the SSH public key fingerprints; SSH stands for Secure Shell and its a cryptographic networking protocol for secure communication over an unsecure network.</td></tr></tbody></table>
# Ethtool
## Displaying Information
<table id="bkmrk-command-description-"><thead><tr><th>Command</th><th>Description</th></tr></thead><tbody><tr><td>`ethtool <interface>`</td><td>Display information about a specific network interface</td></tr><tr><td>`ethtool -i <interface>`</td><td>Display driver information</td></tr><tr><td>`ethtool -a <interface>`</td><td>Display all settings</td></tr><tr><td>`ethtool -k <interface>`</td><td>Display offload settings</td></tr><tr><td>`ethtool -c <interface>`</td><td>Display coalescing settings</td></tr><tr><td>`ethtool -g <interface>`</td><td>Display ring buffer settings</td></tr><tr><td>`ethtool -l <interface>`</td><td>Display large receive offload settings</td></tr><tr><td>`ethtool -S <interface>`</td><td>Display statistics</td></tr><tr><td>`ethtool -t <interface>`</td><td>Test the network interface for offloading capabilities</td></tr><tr><td>`ethtool -T <interface>`</td><td>Display time stamping settings</td></tr><tr><td>`ethtool -x <interface>`</td><td>Display channel settings</td></tr><tr><td>`ethtool -P <interface>`</td><td>Display permanent MAC address</td></tr><tr><td>`ethtool -N <interface>`</td><td>Display offload settings</td></tr><tr><td>`ethtool -u <interface>`</td><td>Display bus information</td></tr><tr><td>`ethtool -d <interface>`</td><td>Display register dump</td></tr><tr><td>`ethtool -g <interface>`</td><td>Display ring buffer settings</td></tr></tbody></table>
## Setting Parameters
<table id="bkmrk-command-description--1"><thead><tr><th>Command</th><th>Description</th></tr></thead><tbody><tr><td>`ethtool -G <interface>`</td><td>Set ring buffer settings</td></tr><tr><td>`ethtool -L <interface>`</td><td>Set large receive offload settings</td></tr><tr><td>`ethtool -A <interface>`</td><td>Set pause parameters</td></tr><tr><td>`ethtool -C <interface>`</td><td>Set coalescing settings</td></tr><tr><td>`ethtool -K <interface>`</td><td>Set offload settings</td></tr><tr><td>`ethtool -N <interface>`</td><td>Set offload settings</td></tr><tr><td>`ethtool -p <interface>`</td><td>Blink the LED on the network interface</td></tr><tr><td>`ethtool -r <interface>`</td><td>Reset the network interface</td></tr></tbody></table>
# GIT
## Repository Management
<table id="bkmrk-command-description-"><thead><tr><th>Command</th><th>Description</th></tr></thead><tbody><tr><td>`git init`</td><td>Initialize a new Git repository</td></tr><tr><td>`git clone <url>`</td><td>Clone a remote repository</td></tr><tr><td>`git status`</td><td>Show the working tree status</td></tr><tr><td>`git add <file>`</td><td>Add a file to the staging area</td></tr><tr><td>`git commit -m <message>`</td><td>Commit changes to the repository</td></tr><tr><td>`git push`</td><td>Push changes to the remote repository</td></tr><tr><td>`git pull`</td><td>Pull changes from the remote repository</td></tr><tr><td>`git fetch`</td><td>Fetch changes from the remote repository</td></tr><tr><td>`git merge <branch>`</td><td>Merge a branch into the current branch</td></tr><tr><td>`git branch`</td><td>List all branches</td></tr><tr><td>`git branch <branch>`</td><td>Create a new branch</td></tr><tr><td>`git checkout <branch>`</td><td>Switch to a branch</td></tr><tr><td>`git checkout -b <branch>`</td><td>Create and switch to a new branch</td></tr><tr><td>`git branch -d <branch>`</td><td>Delete a branch</td></tr><tr><td>`git log`</td><td>Show commit logs</td></tr><tr><td>`git diff`</td><td>Show changes between commits</td></tr><tr><td>`git blame <file>`</td><td>Show who changed each line in a file</td></tr><tr><td>`git reflog`</td><td>Show a log of changes to HEAD</td></tr><tr><td>`git reset --hard <commit>`</td><td>Reset the repository to a commit</td></tr><tr><td>`git revert <commit>`</td><td>Revert a commit</td></tr><tr><td>`git stash`</td><td>Stash changes in the working directory</td></tr><tr><td>`git stash pop`</td><td>Apply stashed changes to the working directory</td></tr><tr><td>`git tag <tag>`</td><td>Create a tag for a commit</td></tr></tbody></table>
## Configuration
<table id="bkmrk-command-description--1"><thead><tr><th>Command</th><th>Description</th></tr></thead><tbody><tr><td>`git config --global user.name <user>`</td><td>Set the user name for Git</td></tr><tr><td>`git config --global user.email <email>`</td><td>Set the user email for Git</td></tr><tr><td>`git config --global core.editor <editor>`</td><td>Set the default text editor for Git</td></tr><tr><td>`git config --global color.ui auto`</td><td>Enable colored output for Git</td></tr></tbody></table>
## Remote Repositories
<table id="bkmrk-command-description--2"><thead><tr><th>Command</th><th>Description</th></tr></thead><tbody><tr><td>`git remote add <repository> <url>`</td><td>Add a remote repository</td></tr><tr><td>`git remote -v`</td><td>List remote repositories</td></tr><tr><td>`git remote show <repository>`</td><td>Show information about a remote repository</td></tr><tr><td>`git remote rename <repository> <new_repository>`</td><td>Rename a remote repository</td></tr><tr><td>`git remote remove <repository>`</td><td>Remove a remote repository</td></tr></tbody></table>
# HTTP Status Codes
## Categories
<table id="bkmrk-code-description-1xx"><thead><tr><th>Code</th><th>Description</th></tr></thead><tbody><tr><td>**1XX**</td><td>Informational Requests</td></tr><tr><td>**2XX**</td><td>Successful Requests</td></tr><tr><td>**3XX**</td><td>Redirects</td></tr><tr><td>**4XX**</td><td>Client Errors</td></tr><tr><td>**5XX**</td><td>Server Errors</td></tr></tbody></table>
## Complete List
<table id="bkmrk-code-name-descriptio"><thead><tr><th>Code</th><th>Name</th><th>Description</th></tr></thead><tbody><tr><td>100</td><td>Continue</td><td>Everything so far is OK and that the client should continue with the request or ignore it if it is already finished.</td></tr><tr><td>101</td><td>Switching Protocols</td><td>The client has asked the server to change protocols and the server has agreed to do so.</td></tr><tr><td>102</td><td>Processing</td><td>The server has received and is processing the request, but that it does not have a final response yet.</td></tr><tr><td>103</td><td>Early Hints</td><td>Used to return some response headers before final HTTP message.</td></tr><tr><td>200</td><td>OK</td><td>Successful request.</td></tr><tr><td>201</td><td>Created</td><td>The server acknowledged the created resource.</td></tr><tr><td>202</td><td>Accepted</td><td>The client's request has been received but the server is still processing it.</td></tr><tr><td>203</td><td>Non-Authoritative Information</td><td>The response that the server sent to the client is not the same as it was when the server sent it.</td></tr><tr><td>204</td><td>No Content</td><td>There is no content to send for this request</td></tr><tr><td>205</td><td>Reset Content</td><td>Tells the user agent to reset the document which sent this request.</td></tr><tr><td>206</td><td>Partial Content</td><td>This response code is used when the range-header is sent from the client to request only part of a resource.</td></tr><tr><td>207</td><td>Multi-Status</td><td>Conveys information about multiple resources, for situations where multiple status codes might be appropriate.</td></tr><tr><td>208</td><td>Already Reported</td><td>The members of a DAV binding have already been enumerated in a preceding part of the multi-status response.</td></tr><tr><td>226</td><td>IM Used</td><td>IM is a specific extension of the HTTP protocol. The extension allows a HTTP server to send diffs (changes) of resources to clients.</td></tr><tr><td>300</td><td>Multiple Choices</td><td>The request has more than one possible response. The user agent should choose one.</td></tr><tr><td>301</td><td>Moved Permanently</td><td>The URL of the requested resource has been changed permanently. The new URL is given in the response.</td></tr><tr><td>302</td><td>Found</td><td>This response code means that the URI of requested resource has been changed temporarily</td></tr><tr><td>303</td><td>See Other</td><td>The server sent this response to direct the client to get the requested resource at another URI with a GET request.</td></tr><tr><td>304</td><td>Not Modified</td><td>It tells the client that the response has not been modified, so the client can continue to use the same cached version of the response.</td></tr><tr><td>305</td><td>Use Proxy</td><td>Defined in a previous version of the HTTP specification to indicate that a requested response must be accessed by a proxy. (discontinued)</td></tr><tr><td>307</td><td>Temporary Redirect</td><td>The server sends this response to direct the client to get the requested resource at another URI with same method that was used in the prior request.</td></tr><tr><td>308</td><td>Permanent Redirect</td><td>This means that the resource is now permanently located at another URI, specified by the Location: HTTP Response header.</td></tr><tr><td>400</td><td>Bad Request</td><td>The server could not understand the request</td></tr><tr><td>401</td><td>Unauthorized</td><td>The client didn't authenticate himself.</td></tr><tr><td>402</td><td>Payment Required</td><td>This response code is reserved for future use. The initial aim for creating this code was using it for digital payment systems, however this status code is used very rarely and no standard convention exists.</td></tr><tr><td>403</td><td>Forbidden</td><td>The client does not have access rights to the content</td></tr><tr><td>404</td><td>Not Found</td><td>The server can not find the requested resource</td></tr><tr><td>405</td><td>Method Not Allowed</td><td>The request method is known by the server but is not supported by the target resource</td></tr><tr><td>406</td><td>Not Acceptable</td><td>The reponse doens't conforms to the creteria given by the client</td></tr><tr><td>407</td><td>Proxy Authentication Required</td><td>This is similar to 401 Unauthorized but authentication is needed to be done by a proxy.</td></tr><tr><td>408</td><td>Request Timeout</td><td>This response is sent on an idle connection by some servers, even without any previous request by the client.</td></tr><tr><td>409</td><td>Conflict</td><td>This response is sent when a request conflicts with the current state of the server.</td></tr><tr><td>410</td><td>Gone</td><td>This response is sent when the requested content has been permanently deleted from server, with no forwarding address.</td></tr><tr><td>411</td><td>Length Required</td><td>Server rejected the request because the Content-Length header field is not defined and the server requires it.</td></tr><tr><td>412</td><td>Precondition Failed</td><td>Access to the target resource has been denied.</td></tr><tr><td>413</td><td>Payload Too Large</td><td>Request entity is larger than limits defined by server.</td></tr><tr><td>414</td><td>Request-URI Too Long</td><td>The URI requested by the client is longer than the server is willing to interpret.</td></tr><tr><td>415</td><td>Unsupported Media Type</td><td>The media format is not supported by the server.</td></tr><tr><td>416</td><td>Requested Range Not Satisfiable</td><td>The range specified by the Range header field in the request cannot be fulfilled.</td></tr><tr><td>417</td><td>Expectation Failed</td><td>the expectation indicated by the Expect request header field cannot be met by the server.</td></tr><tr><td>418</td><td>I'm a teapot</td><td>The server refuses the attempt to brew coffee with a teapot.</td></tr><tr><td>421</td><td>Misdirected Request</td><td>The request was directed at a server that is not able to produce a response.</td></tr><tr><td>422</td><td>Unprocessable Entity</td><td>The request was well-formed but was unable to be followed due to semantic errors.</td></tr><tr><td>423</td><td>Locked</td><td>The resource that is being accessed is locked.</td></tr><tr><td>424</td><td>Failed Dependency</td><td>The request failed due to failure of a previous request.</td></tr><tr><td>426</td><td>Upgrade Required</td><td>The server refuses to perform the request using the current protocol but might be willing to do so after the client upgrades to a different protocol.</td></tr><tr><td>428</td><td>Precondition Required</td><td>his response is intended to prevent the 'lost update' problem, where a client GETs a resource's state, modifies it and PUTs it back to the server, when meanwhile a third party has modified the state on the server, leading to a conflict.</td></tr><tr><td>429</td><td>Too Many Requests</td><td>The user has sent too many requests in a given amount of time</td></tr><tr><td>431</td><td>Request Header Fields Too Large</td><td>The server is can't process the request because its header fields are too large.</td></tr><tr><td>444</td><td>Connection Closed Without Response</td><td>The connection opened, but no data was written.</td></tr><tr><td>451</td><td>Unavailable For Legal Reasons</td><td>The user agent requested a resource that cannot legally be provided (such as a web page censored by a government)</td></tr><tr><td>499</td><td>Client Closed Request</td><td>The client closed the connection, despite the server was processing the request already.</td></tr><tr><td>500</td><td>Internal Server Error</td><td>The server has encountered a situation it does not know how to handle.</td></tr><tr><td>501</td><td>Not Implemented</td><td>The request method is not supported by the server and cannot be handled.</td></tr><tr><td>502</td><td>Bad Gateway</td><td>This error response means that the server, while working as a gateway to get a response needed to handle the request, got an invalid response.</td></tr><tr><td>503</td><td>Service Unavailable</td><td>The server is not ready to handle the request.</td></tr><tr><td>504</td><td>Gateway Timeout</td><td>This error response is given when the server is acting as a gateway and cannot get a response in time.</td></tr><tr><td>505</td><td>HTTP Version Not Supported</td><td>The HTTP version used in the request is not supported by the server.</td></tr><tr><td>506</td><td>Variant Also Negotiates</td><td>the chosen variant resource is configured to engage in transparent content negotiation itself, and is therefore not a proper end point in the negotiation process.</td></tr><tr><td>507</td><td>Insufficient Storage</td><td>The method could not be performed on the resource because the server is unable to store the representation needed to successfully complete the request.</td></tr><tr><td>508</td><td>Loop Detected</td><td>The server detected an infinite loop while processing the request.</td></tr><tr><td>510</td><td>Not Extended</td><td>Further extensions to the request are required for the server to fulfill it.</td></tr><tr><td>511</td><td>Network Authentication Required</td><td>Indicates that the client needs to authenticate to gain network access.</td></tr><tr><td>599</td><td>Network Connect Timeout Error</td><td>The connection timed out due to a overloaded server, a hardware error or a infrastructure error.</td></tr></tbody></table>
# kubectl
## Contexts and Configuration
<table id="bkmrk-command-description-"><thead><tr><th>Command</th><th>Description</th></tr></thead><tbody><tr><td>`kubectl config view`</td><td>Show the current kubeconfig file</td></tr><tr><td>`kubectl config get-contexts`</td><td>List all contexts in the kubeconfig file</td></tr><tr><td>`kubectl config current-context`</td><td>Show the current context</td></tr><tr><td>`kubectl config use-context <context>`</td><td>Change the current context</td></tr><tr><td>`kubectl config set-context <context> --namespace=<namespace>`</td><td>Set the namespace for a context</td></tr><tr><td>`kubectl config set-context <context> --cluster=<cluster>`</td><td>Set the cluster for a context</td></tr><tr><td>`kubectl config set-context <context> --user=<user>`</td><td>Set the user for a context</td></tr><tr><td>`kubectl config set-context <context> --namespace=<namespace> --cluster=<cluster> --user=<user>`</td><td>Set all context properties</td></tr></tbody></table>
## Cluster Management
<table id="bkmrk-command-description--1"><thead><tr><th>Command</th><th>Description</th></tr></thead><tbody><tr><td>`kubectl cluster-info`</td><td>Display addresses of the master and services</td></tr><tr><td>`kubectl get nodes`</td><td>List all nodes in the cluster</td></tr><tr><td>`kubectl get pods`</td><td>List all pods in the cluster</td></tr><tr><td>`kubectl get services`</td><td>List all services in the cluster</td></tr><tr><td>`kubectl get deployments`</td><td>List all deployments in the cluster</td></tr><tr><td>`kubectl get namespaces`</td><td>List all namespaces in the cluster</td></tr><tr><td>`kubectl get events`</td><td>List all events in the cluster</td></tr></tbody></table>
## Resource Management
<table id="bkmrk-command-description--2"><thead><tr><th>Command</th><th>Description</th></tr></thead><tbody><tr><td>`kubectl apply -f <file>`</td><td>Apply a configuration file</td></tr><tr><td>`kubectl delete -f <file>`</td><td>Delete a configuration file</td></tr><tr><td>`kubectl get <resource>`</td><td>List all resources of a type</td></tr><tr><td>`kubectl describe <resource> <name>`</td><td>Describe a resource</td></tr><tr><td>`kubectl edit <resource> <name>`</td><td>Edit a resource</td></tr><tr><td>`kubectl exec -it <pod> -- <command>`</td><td>Execute a command in a pod</td></tr></tbody></table>
## Pod Management
<table id="bkmrk-command-description--3"><thead><tr><th>Command</th><th>Description</th></tr></thead><tbody><tr><td>`kubectl run <name> --image=<image>`</td><td>Create a new pod</td></tr><tr><td>`kubectl delete pod <name>`</td><td>Delete a pod</td></tr><tr><td>`kubectl get pod <name>`</td><td>Get details of a pod</td></tr><tr><td>`kubectl describe pod <name>`</td><td>Describe a pod</td></tr><tr><td>`kubectl logs <name>`</td><td>Show logs of a pod</td></tr><tr><td>`kubectl exec -it <name> -- /bin/bash`</td><td>Execute a command in a pod</td></tr><tr><td>`kubectl cp <pod>:<source> <destination>`</td><td>Copy files from a pod</td></tr><tr><td>`kubectl top node`</td><td>Show metrics for all nodes</td></tr><tr><td>`kubectl top pod`</td><td>Show metrics for all pods</td></tr><tr><td>`kubectl top pod <name>`</td><td>Show metrics for a specific pod</td></tr></tbody></table>
## Service Management
<table id="bkmrk-command-description--4"><thead><tr><th>Command</th><th>Description</th></tr></thead><tbody><tr><td>`kubectl expose pod <name> --port=444 --target-port=555`</td><td>Expose a pod as a service</td></tr><tr><td>`kubectl delete service <name>`</td><td>Delete a service</td></tr><tr><td>`kubectl get service <name>`</td><td>Get details of a service</td></tr><tr><td>`kubectl describe service <name>`</td><td>Describe a service</td></tr></tbody></table>
## Deployment Management
<table id="bkmrk-command-description--5"><thead><tr><th>Command</th><th>Description</th></tr></thead><tbody><tr><td>`kubectl create deployment <name> --image=<image>`</td><td>Create a new deployment</td></tr><tr><td>`kubectl delete deployment <name>`</td><td>Delete a deployment</td></tr><tr><td>`kubectl get deployment <name>`</td><td>Get details of a deployment</td></tr><tr><td>`kubectl describe deployment <name>`</td><td>Describe a deployment</td></tr><tr><td>`kubectl scale deployment <name> --replicas=3`</td><td>Scale a deployment to 3 replicas</td></tr><tr><td>`kubectl rollout status deployment/<name>`</td><td>Check the status of a deployment rollout</td></tr><tr><td>`kubectl rollout history deployment/<name>`</td><td>Show the history of a deployment rollout</td></tr><tr><td>`kubectl rollout undo deployment/<name>`</td><td>Rollback a deployment to the previous version</td></tr><tr><td>`kubectl rollout undo deployment/<name> --to-revision=1`</td><td>Rollback a deployment to a specific revision</td></tr></tbody></table>
## Namespace Management
<table id="bkmrk-command-description--6"><thead><tr><th>Command</th><th>Description</th></tr></thead><tbody><tr><td>`kubectl create namespace <name>`</td><td>Create a new namespace</td></tr><tr><td>`kubectl delete namespace <name>`</td><td>Delete a namespace</td></tr><tr><td>`kubectl get namespace <name>`</td><td>Get details of a namespace</td></tr><tr><td>`kubectl describe namespace <name>`</td><td>Describe a namespace</td></tr></tbody></table>
# OpenSSL
## Certificate Management
<table id="bkmrk-command-description-"><thead><tr><th>Command</th><th>Description</th></tr></thead><tbody><tr><td>`openssl req -new -key <key> -out <csr>`</td><td>Generate a new certificate signing request</td></tr><tr><td>`openssl req -x509 -key <key> -in <csr> -out <cert>`</td><td>Generate a self-signed certificate</td></tr><tr><td>`openssl x509 -in <cert> -text -noout`</td><td>Display the details of a certificate</td></tr><tr><td>`openssl x509 -in <cert> -pubkey -noout`</td><td>Extract the public key from a certificate</td></tr><tr><td>`openssl x509 -in <cert> -fingerprint -noout`</td><td>Display the fingerprint of a certificate</td></tr></tbody></table>
## Key Management
<table id="bkmrk-command-description--1"><thead><tr><th>Command</th><th>Description</th></tr></thead><tbody><tr><td>`openssl genrsa -out <key> 2048`</td><td>Generate a new RSA private key</td></tr><tr><td>`openssl rsa -in <key> -pubout -out <pub_key>`</td><td>Extract the public key from a private key</td></tr><tr><td>`openssl rsa -in <key> -out <new_key>`</td><td>Convert a private key to a different format</td></tr><tr><td>`openssl rand -hex 16`</td><td>Generate a random hex string</td></tr></tbody></table>
## Certificate Signing
<table id="bkmrk-command-description--2"><thead><tr><th>Command</th><th>Description</th></tr></thead><tbody><tr><td>`openssl ca -in <csr> -out <cert>`</td><td>Sign a certificate request</td></tr><tr><td>`openssl ca -config <config> -in <csr> -out <cert>`</td><td>Sign a certificate request with a custom configuration</td></tr><tr><td>`openssl verify -CAfile <ca> <cert>`</td><td>Verify a certificate against a CA file</td></tr></tbody></table>
## Certificate Conversion
<table id="bkmrk-command-description--3"><thead><tr><th>Command</th><th>Description</th></tr></thead><tbody><tr><td>`openssl pkcs12 -export -in <cert> -inkey <key> -out <file>`</td><td>Convert a certificate and key to PKCS#12 format</td></tr><tr><td>`openssl pkcs12 -in <file> -out <cert> -nodes`</td><td>Extract a certificate and key from a PKCS#12 file</td></tr><tr><td>`openssl x509 -in <cert> -outform DER -out <file>`</td><td>Convert a certificate to DER format</td></tr><tr><td>`openssl x509 -in <cert> -outform PEM -out <file>`</td><td>Convert a certificate to PEM format</td></tr></tbody></table>
## Encryption and Decryption
<table id="bkmrk-command-description--4"><thead><tr><th>Command</th><th>Description</th></tr></thead><tbody><tr><td>`openssl enc -aes-256-cbc -salt -in <file> -out <encrypted_file>`</td><td>Encrypt a file with AES-256-CBC</td></tr><tr><td>`openssl enc -d -aes-256-cbc -in <file> -out <decrypted_file>`</td><td>Decrypt a file encrypted with AES-256-CBC</td></tr><tr><td>`openssl dgst -sha256 FILE`</td><td>Calculate the SHA-256 hash of a file</td></tr><tr><td>`openssl dgst -md5 FILE`</td><td>Calculate the MD5 hash of a file</td></tr></tbody></table>
## Miscellaneous
<table id="bkmrk-command-description--5"><thead><tr><th>Command</th><th>Description</th></tr></thead><tbody><tr><td>`openssl version`</td><td>Display the OpenSSL version</td></tr><tr><td>`openssl s_client -connect <host>:<port>`</td><td>Connect to a server using SSL/TLS</td></tr><tr><td>`openssl s_server -accept <port> -cert <cert> -key <key>`</td><td>Start an SSL/TLS server</td></tr><tr><td>`openssl speed`</td><td>Run benchmark tests on OpenSSL algorithms</td></tr><tr><td>`openssl ciphers -v`</td><td>List all available ciphers</td></tr><tr><td>`openssl rand -base64 32`</td><td>Generate a random base64 string</td></tr><tr><td>`openssl rand -base64 -out <file> 32`</td><td>Generate a random base64 string and save it to a file</td></tr><tr><td>`openssl rand -out <file> 32`</td><td>Generate a random binary string and save it to a file</td></tr><tr><td>`openssl rand -hex 32`</td><td>Generate a random hex string</td></tr></tbody></table>
# PostgreSQL
## Connect to PostgreSQL
<table id="bkmrk-command-description-"><thead><tr><th>Command</th><th>Description</th></tr></thead><tbody><tr><td>`psql -U postgres`</td><td>Connect to PostgreSQL as the `postgres` user</td></tr><tr><td>`psql -U <user> -d <database>`</td><td>Connect to PostgreSQL as a specific user and database</td></tr><tr><td>`psql -U <user> -d <database> -h <host>`</td><td>Connect to PostgreSQL on a specific host</td></tr></tbody></table>
## PostreSQL CLI Commands
<table id="bkmrk-command-description--1"><thead><tr><th>Command</th><th>Description</th></tr></thead><tbody><tr><td>`\c <database>`</td><td>Connect to a specific database</td></tr><tr><td>`\password <user>`</td><td>Change password for a specific user</td></tr><tr><td>`\l`</td><td>List all databases</td></tr><tr><td>`\d+`</td><td>Show detailed information about various database objects</td></tr><tr><td>`\dt`</td><td>List all tables in the current database</td></tr><tr><td>`\du`</td><td>List all users</td></tr><tr><td>`\df`</td><td>List all functions</td></tr><tr><td>`\dv`</td><td>List all views</td></tr><tr><td>`\dn`</td><td>List all schemas</td></tr><tr><td>`\dp`</td><td>List all permissions</td></tr><tr><td>`\di`</td><td>List all indexes</td></tr><tr><td>`\ds`</td><td>List all sequences</td></tr><tr><td>`\d+`</td><td>Show detailed information about various database objects</td></tr><tr><td>`\q`</td><td>Quit psql</td></tr><tr><td>`\x`</td><td>Toggle expanded output</td></tr></tbody></table>
## Backup and Restore
<table id="bkmrk-command-description--2"><thead><tr><th>Command</th><th>Description</th></tr></thead><tbody><tr><td>`pg_dump <database> > backup.sql`</td><td>Backup a database to a file</td></tr><tr><td>`psql <database> < backup.sql`</td><td>Restore a database from a file</td></tr></tbody></table>
# SQL
## Data Definition Language (DDL)
<table id="bkmrk-command-description-"><thead><tr><th>Command</th><th>Description</th></tr></thead><tbody><tr><td>`CREATE DATABASE <db>`</td><td>Create a new database</td></tr><tr><td>`DROP DATABASE <db>`</td><td>Delete a database</td></tr><tr><td>`CREATE TABLE <table> (<column_1> <column_1_type>, <column_2> <column_2_type>)`</td><td>Create a new table</td></tr><tr><td>`DROP TABLE <table>`</td><td>Delete a table</td></tr><tr><td>`ALTER TABLE <table> ADD COLUMN <column> <column_type>`</td><td>Add a new column to a table</td></tr><tr><td>`ALTER TABLE <table> DROP COLUMN <column>`</td><td>Remove a column from a table</td></tr><tr><td>`ALTER TABLE <table> RENAME COLUMN <column> TO <new_column>`</td><td>Rename a column in a table</td></tr><tr><td>`ALTER TABLE <table> RENAME TO <new_column>`</td><td>Rename a table</td></tr><tr><td>`TRUNCATE TABLE <table>`</td><td>Remove all rows from a table</td></tr><tr><td>`CREATE INDEX INDEXNAME ON <table> (<column>)`</td><td>Create an index on a table</td></tr><tr><td>`DROP INDEX INDEXNAME`</td><td>Remove an index from a table</td></tr></tbody></table>
## Data Manipulation Language (DML)
<table id="bkmrk-command-description--1"><thead><tr><th>Command</th><th>Description</th></tr></thead><tbody><tr><td>`INSERT INTO <table> (<column_1>, <column_2>) VALUES (<value_1>, <value_2>)`</td><td>Insert a new row into a table</td></tr><tr><td>`SELECT * FROM <table>`</td><td>Retrieve all rows from a table</td></tr><tr><td>`UPDATE <table> SET <column_1> = <value_1> WHERE <column_2> = <value_2>`</td><td>Update rows in a table</td></tr><tr><td>`DELETE FROM <table> WHERE <column> = <value>`</td><td>Delete rows from a table</td></tr></tbody></table>
## Data Query Language (DQL)
<table id="bkmrk-command-description--2"><thead><tr><th>Command</th><th>Description</th></tr></thead><tbody><tr><td>`SELECT <column_1>, <column_2> FROM <table>`</td><td>Retrieve specific columns from a table</td></tr><tr><td>`SELECT * FROM <table> WHERE <column> = VALUE`</td><td>Retrieve rows that match a condition</td></tr><tr><td>`SELECT * FROM <table> ORDER BY <column>`</td><td>Retrieve rows sorted by a column</td></tr><tr><td>`SELECT * FROM <table> LIMIT N`</td><td>Retrieve the first N rows from a table</td></tr><tr><td>`SELECT * FROM <table> OFFSET N`</td><td>Retrieve rows starting from the Nth row</td></tr><tr><td>`SELECT * FROM <table> JOIN <table_2> ON <table_1>.<column_1> = <table_2>.<column_2>`</td><td>Retrieve rows from two tables that match a condition</td></tr><tr><td>`SELECT * FROM <table> UNION SELECT * FROM <table_2>`</td><td>Retrieve rows from two tables without duplicates</td></tr><tr><td>`SELECT * FROM <table> GROUP BY <column>`</td><td>Group rows that have the same value in a column</td></tr><tr><td>`SELECT * FROM <table> HAVING COUNT(<column>) > N`</td><td>Filter grouped rows that have more than N rows</td></tr><tr><td>`SELECT * FROM <table> WHERE <column> IN (<value_1>, <value_2>)`</td><td>Retrieve rows where a column value matches any value in a list</td></tr><tr><td>`SELECT * FROM <table> WHERE <column> BETWEEN <value_1> AND <value_2>`</td><td>Retrieve rows where a column value is within a range</td></tr><tr><td>`SELECT * FROM <table> WHERE <column> LIKE '<value>%'`</td><td>Retrieve rows where a column value matches a pattern</td></tr><tr><td>`SELECT * FROM <table> WHERE <column> IS NULL`</td><td>Retrieve rows where a column value is NULL</td></tr><tr><td>`SELECT * FROM <table> WHERE <column> IS NOT NULL`</td><td>Retrieve rows where a column value is not NULL</td></tr></tbody></table>
## Data Control Language (DCL)
<table id="bkmrk-command-description--3"><thead><tr><th>Command</th><th>Description</th></tr></thead><tbody><tr><td>`GRANT PERMISSIONS ON <table> TO <user>`</td><td>Grant permissions to a user</td></tr><tr><td>`REVOKE PERMISSIONS ON <table> FROM <user>`</td><td>Revoke permissions from a user</td></tr></tbody></table>
## Transaction Control Language (TCL)
<table id="bkmrk-command-description--4"><thead><tr><th>Command</th><th>Description</th></tr></thead><tbody><tr><td>`BEGIN TRANSACTION`</td><td>Start a new transaction</td></tr><tr><td>`COMMIT`</td><td>Save changes to the database</td></tr><tr><td>`ROLLBACK`</td><td>Discard changes to the database</td></tr><tr><td>`SAVEPOINT <savepoint>`</td><td>Create a savepoint in a transaction</td></tr><tr><td>`ROLLBACK TO SAVEPOINT <savepoint>`</td><td>Rollback to a savepoint in a transaction</td></tr><tr><td>`RELEASE SAVEPOINT <savepoint>`</td><td>Remove a savepoint in a transaction</td></tr></tbody></table>
## System Commands
<table id="bkmrk-command-description--5"><thead><tr><th>Command</th><th>Description</th></tr></thead><tbody><tr><td>`SHOW DATABASES`</td><td>List all databases</td></tr><tr><td>`SHOW TABLES`</td><td>List all tables in the current database</td></tr><tr><td>`SHOW COLUMNS FROM <table>`</td><td>List all columns in a table</td></tr><tr><td>`SHOW INDEXES FROM <table>`</td><td>List all indexes in a table</td></tr><tr><td>`SHOW CREATE TABLE <table>`</td><td>Show the SQL statement that creates a table</td></tr><tr><td>`DESCRIBE <table>`</td><td>Show the structure of a table</td></tr><tr><td>`EXPLAIN SELECT * FROM <table>`</td><td>Show the execution plan of a query</td></tr><tr><td>`SET autocommit = 0`</td><td>Disable autocommit mode</td></tr><tr><td>`SET autocommit = 1`</td><td>Enable autocommit mode</td></tr><tr><td>`SET FOREIGN_KEY_CHECKS = 0`</td><td>Disable foreign key checks</td></tr></tbody></table>
## User Commands
<table id="bkmrk-command-description--6"><thead><tr><th>Command</th><th>Description</th></tr></thead><tbody><tr><td>`CREATE <user> '<user>'@'<host>' IDENTIFIED BY '<password>'`</td><td>Create a new user</td></tr><tr><td>`DROP <user> '<user>'@'<host>'`</td><td>Delete a user</td></tr><tr><td>`ALTER <user> '<user>'@'<host>' IDENTIFIED BY '<password>'`</td><td>Change password for a user</td></tr><tr><td>`GRANT ALL PRIVILEGES ON <db> TO '<user>'@'<host>'`</td><td>Grant all privileges to a user</td></tr><tr><td>`REVOKE ALL PRIVILEGES ON <db> FROM '<user>'@'<host>'`</td><td>Revoke all privileges from a user</td></tr><tr><td>`FLUSH PRIVILEGES`</td><td>Reload privileges from the grant tables</td></tr></tbody></table>
# Terraform
## Format and Validate
<table id="bkmrk-command-description-"><thead><tr><th>Command</th><th>Description</th></tr></thead><tbody><tr><td>`terraform fmt`</td><td>Reformat your configuration in the standard style</td></tr><tr><td>`terraform validate`</td><td>Check whether the configuration is valid</td></tr></tbody></table>
## Initialize Working Directory
<table id="bkmrk-command-description--1"><thead><tr><th>Command</th><th>Description</th></tr></thead><tbody><tr><td>`terraform init`</td><td>Prepare your working directory for other commands</td></tr></tbody></table>
## Plan, Deploy and Cleanup
<table id="bkmrk-command-description--2"><thead><tr><th>Command</th><th>Description</th></tr></thead><tbody><tr><td>`terraform apply --auto-approve`</td><td>Create or update infrastructure without confirmation prompt</td></tr><tr><td>`terraform destroy --auto-approve`</td><td>Destroy previously-created infrastructure without confirmation prompt</td></tr><tr><td>`terraform plan -out plan.out`</td><td>Output the deployment plan to plan.out</td></tr><tr><td>`terraform apply plan.out`</td><td>Use the plan.out to deploy infrastructure</td></tr><tr><td>`terraform plan -destroy`</td><td>Outputs a destroy plan</td></tr><tr><td>`terraform apply -target=aws_instance.myinstance`</td><td>Only apply/deploy changes to targeted resource</td></tr><tr><td>`terraform apply -var myregion=us-east-1`</td><td>Pass a variable via CLI while applying a configuration</td></tr><tr><td>`terraform apply -lock=true`</td><td>Lock the state file so it can't be modified</td></tr><tr><td>`terraform apply refresh=false`</td><td>Do not reconcile state file with real-world resources</td></tr><tr><td>`terraform apply --parallelism=5`</td><td>Number of simultaneous resource operations</td></tr><tr><td>`terraform refresh`</td><td>Reconcile the state in Terraform state file with real-world resources</td></tr><tr><td>`terraform providers`</td><td>Get informatino about providers used in the current configuration</td></tr></tbody></table>
## Workspaces
<table id="bkmrk-command-description--3"><thead><tr><th>Command</th><th>Description</th></tr></thead><tbody><tr><td>`terraform workspace new <workspace>`</td><td>Create a new workspace</td></tr><tr><td>`terraform workspace select default`</td><td>Change to a workspace</td></tr><tr><td>`terraform workspace list`</td><td>List all workspaces</td></tr></tbody></table>
## State Manipulation
<table id="bkmrk-command-description--4"><thead><tr><th>Command</th><th>Description</th></tr></thead><tbody><tr><td>`terraform state show aws_instance.myinstance`</td><td>Show details stored in the Terraform state file</td></tr><tr><td>`terraform state pull > terraform.tfstate`</td><td>Output Terraform state to a file</td></tr><tr><td>`terraform state mv aws_iam_role.my_ssm_role module.mymodule`</td><td>Move a resource tracked via state to different module</td></tr><tr><td>`terraform state replace-provider hashicorp/aws registry.custom.com/aws`</td><td>Replace an existing provider with another</td></tr><tr><td>`terraform state list`</td><td>List all resources tracked in the Terraform state file</td></tr><tr><td>`terraform state rm aws_instance.myinstance`</td><td>Unmanage a resource, delete it from the Terraform state file</td></tr></tbody></table>
## Import and Outputs
<table id="bkmrk-command-description--5"><thead><tr><th>Command</th><th>Description</th></tr></thead><tbody><tr><td>`terraform import <resource_type>.<resource> <id>`</td><td>Import a Resource</td></tr><tr><td>`terraform output`</td><td>List all outputs</td></tr><tr><td>`terraform output <output>`</td><td>List a specific output</td></tr><tr><td>`terraform output -json`</td><td>List all outputs in JSON format</td></tr></tbody></table>
## Terraform Cloud
<table id="bkmrk-command-description--6"><thead><tr><th>Command</th><th>Description</th></tr></thead><tbody><tr><td>`terraform login`</td><td>Login to Terraform Cloud with an API token</td></tr><tr><td>`terraform logout`</td><td>Logout from Terraform Cloud</td></tr></tbody></table>
# ZFS
## File System Management
<table id="bkmrk-command-description-"><thead><tr><th>Command</th><th>Description</th></tr></thead><tbody><tr><td>`zfs list`</td><td>List ZFS file systems</td></tr><tr><td>`zfs create <pool>/<filesystem>`</td><td>Create a ZFS file system</td></tr><tr><td>`zfs set <property>=<value> <pool>/<filesystem>`</td><td>Set ZFS file system properties</td></tr><tr><td>`zfs get <property> <pool>/<filesystem>`</td><td>Get ZFS file system properties</td></tr><tr><td>`zfs destroy <pool>/<filesystem>`</td><td>Destroy a ZFS file system</td></tr></tbody></table>
## Pool Management
<table id="bkmrk-command-description--1"><thead><tr><th>Command</th><th>Description</th></tr></thead><tbody><tr><td>`zpool list`</td><td>List ZFS pools</td></tr><tr><td>`zpool create <pool> <device>`</td><td>Create a ZFS pool</td></tr><tr><td>`zpool destroy <pool>`</td><td>Destroy a ZFS pool</td></tr><tr><td>`zpool iostat`</td><td>Display ZFS pool I/O statistics</td></tr><tr><td>`zpool status`</td><td>Display ZFS pool status</td></tr><tr><td>`zpool history`</td><td>Display ZFS pool history</td></tr><tr><td>`zpool events`</td><td>Display ZFS pool events</td></tr><tr><td>`zpool scrub <pool>`</td><td>Scrub a ZFS pool</td></tr><tr><td>`zpool clear <pool>`</td><td>Clear ZFS pool errors</td></tr><tr><td>`zpool trim <pool>`</td><td>Trim a ZFS pool</td></tr><tr><td>`zpool add <pool> <device>`</td><td>Add a device to a ZFS pool</td></tr><tr><td>`zpool remove <pool> <device>`</td><td>Remove a device from a ZFS pool</td></tr><tr><td>`zpool replace <pool> <device>`</td><td>Replace a device in a ZFS pool</td></tr><tr><td>`zpool offline <pool> <device>`</td><td>Offline a device in a ZFS pool</td></tr></tbody></table>
## Snapshots
<table id="bkmrk-command-description--2"><thead><tr><th>Command</th><th>Description</th></tr></thead><tbody><tr><td>`zfs list -t snapshot`</td><td>List ZFS snapshots</td></tr><tr><td>`zfs snapshot <pool>/<filesystem>@<snapshot>`</td><td>Create a ZFS snapshot</td></tr><tr><td>`zfs rollback <pool>/<filesystem>@<snapshot>`</td><td>Rollback a ZFS snapshot</td></tr><tr><td>`zfs diff <pool>/<filesystem>@<snapshot_1> <pool>/<filesystem>@<snapshot_2>`</td><td>Compare ZFS snapshots</td></tr><tr><td>`zfs send <pool>/<filesystem>@<snapshot>`</td><td>Send ZFS snapshots</td></tr><tr><td>`zfs receive <pool>/<filesystem>`</td><td>Receive ZFS snapshots</td></tr></tbody></table>
## Clones
<table id="bkmrk-command-description--3"><thead><tr><th>Command</th><th>Description</th></tr></thead><tbody><tr><td>`zfs clone <pool>/<filesystem>@<snapshot> <pool>/<filesystem>`</td><td>Create a ZFS clone</td></tr><tr><td>`zfs promote <pool>/<filesystem>`</td><td>Promote a ZFS clone</td></tr><tr><td>`zfs rollback <pool>/<filesystem>`</td><td>Rollback a ZFS clone</td></tr><tr><td>`zfs destroy <pool>/<filesystem>`</td><td>Destroy a ZFS clone</td></tr></tbody></table>