mirror of
https://github.com/ivuorinen/cheatsheet-tldr.git
synced 2026-03-14 20:59:47 +00:00
Update cheatsheets
This commit is contained in:
30
tldr/linux/sprof
Normal file
30
tldr/linux/sprof
Normal 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}}`
|
||||
@@ -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
25
tldr/linux/steamosctl
Normal 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`
|
||||
Reference in New Issue
Block a user