Update cheatsheets

This commit is contained in:
ivuorinen
2026-03-14 00:25:11 +00:00
parent 4a9e3261cd
commit 50c313e473
8 changed files with 132 additions and 16 deletions

30
tldr/linux/sprof Normal file
View File

@@ -0,0 +1,30 @@
---
syntax: markdown
tags: [tldr, linux]
source: https://github.com/tldr-pages/tldr.git
---
# sprof
> Read and display shared object profiling data.
> Note: Requires profile data generated via the `$LD_PROFILE` environment variable.
> More information: <https://manned.org/sprof>.
- Generate a flat profile and call graph (default output):
`sprof {{path/to/library.so}} {{path/to/library.so.profile}}`
- Generate a flat profile with counts and ticks:
`sprof {{[-p|--flat-profile]}} {{path/to/library.so}} {{path/to/library.so.profile}}`
- Generate a call graph:
`sprof {{[-q|--graph]}} {{path/to/library.so}} {{path/to/library.so.profile}}`
- Print call pairs and their usage counts:
`sprof {{[-c|--call-pairs]}} {{path/to/library.so}} {{path/to/library.so.profile}}`
- Use profile data from current directory (auto-detected by soname):
`sprof {{path/to/library.so}}`

View File

@@ -8,6 +8,10 @@ source: https://github.com/tldr-pages/tldr.git
> Set the readonly status of the filesystem.
> More information: <https://gitlab.com/users/evlaV/projects>.
- View the filesystem mutability status:
`steamos-readonly status`
- Set the filesystem to be mutable:
`sudo steamos-readonly disable`
@@ -15,3 +19,7 @@ source: https://github.com/tldr-pages/tldr.git
- Set the filesystem to be read only:
`sudo steamos-readonly enable`
- Toggle the filesystem mutability:
`sudo steamos-readonly toggle`

25
tldr/linux/steamosctl Normal file
View File

@@ -0,0 +1,25 @@
---
syntax: markdown
tags: [tldr, linux]
source: https://github.com/tldr-pages/tldr.git
---
# steamosctl
> Control the SteamOS system.
> More information: <https://gitlab.com/evlaV/steamos-manager>.
- Change to desktop mode:
`steamosctl switch-to-desktop-mode`
- Change to gamemode:
`steamosctl switch-to-game-mode`
- Change whether the system opens gamemode or desktop during login:
`steamosctl set-default-login-mode {{game|desktop}}`
- Display help:
`steamosctl`