Update cheatsheets

This commit is contained in:
ivuorinen
2024-05-07 00:13:50 +00:00
parent b1ff90caa8
commit 7680979e10
7 changed files with 93 additions and 4 deletions

View File

@@ -20,6 +20,10 @@ source: https://github.com/tldr-pages/tldr.git
`chrt --max`
- Set the scheduling policy for a process:
- Set the scheduling priority of a process:
`chrt --pid {{priority}} {{PID}}`
- Set the scheduling policy of a process:
`chrt --{{deadline|idle|batch|rr|fifo|other}} --pid {{priority}} {{PID}}`

View File

@@ -6,7 +6,7 @@ source: https://github.com/tldr-pages/tldr.git
# dockerd
> A persistent process to start and manage Docker containers.
> More information: <https://docs.docker.com/engine/reference/commandline/dockerd/>.
> More information: <https://docs.docker.com/reference/cli/dockerd/>.
- Run Docker daemon:

17
tldr/linux/prime-run Normal file
View File

@@ -0,0 +1,17 @@
---
syntax: markdown
tags: [tldr, linux]
source: https://github.com/tldr-pages/tldr.git
---
# prime-run
> Run a program using an alternative Nvidia graphics card.
> More information: <https://wiki.archlinux.org/title/PRIME#PRIME_render_offload>.
- Run a program using a dedicated Nvidia GPU:
`prime-run {{command}}`
- Validate whether the Nvidia card is being used:
`prime-run glxinfo | grep "OpenGL renderer"`