diff --git a/tldr/docker b/tldr/docker index a605c8a6..fc198a1d 100644 --- a/tldr/docker +++ b/tldr/docker @@ -29,7 +29,7 @@ source: https://github.com/tldr-pages/tldr.git `docker images` -- Open a shell inside a running container: +- Open an [i]nteractive [t]ty with Bourne shell (`sh`) inside a running container: `docker exec -it {{container_name}} {{sh}}` diff --git a/tldr/dotnet-add-reference b/tldr/dotnet-add-reference index a7a69086..bee8f41d 100644 --- a/tldr/dotnet-add-reference +++ b/tldr/dotnet-add-reference @@ -12,6 +12,14 @@ source: https://github.com/tldr-pages/tldr.git `dotnet add reference {{path/to/reference.csproj}}` +- Add multiple references to the project in the current directory: + +`dotnet add reference {{path/to/reference1.csproj path/to/reference2.csproj ...}}` + - Add a reference to the specific project: `dotnet add {{path/to/project.csproj}} reference {{path/to/reference.csproj}}` + +- Add multiple references to the specific project: + +`dotnet add {{path/to/project.csproj}} reference {{path/to/reference1.csproj path/to/reference2.csproj ...}}` diff --git a/tldr/history b/tldr/history index e0693826..6ebfd68d 100644 --- a/tldr/history +++ b/tldr/history @@ -20,14 +20,14 @@ source: https://github.com/tldr-pages/tldr.git `history -{{d|f|i|E}}` -- Clear the commands history list (only for current Bash shell): +- [c]lear the commands history list (only for current Bash shell): `history -c` -- Overwrite history file with history of current Bash shell (often combined with `history -c` to purge history): +- Over[w]rite history file with history of current Bash shell (often combined with `history -c` to purge history): `history -w` -- Delete the history entry at the specified offset: +- [d]elete the history entry at the specified offset: `history -d {{offset}}` diff --git a/tldr/linux/chcon b/tldr/linux/chcon index d59c44c8..81bb61e1 100644 --- a/tldr/linux/chcon +++ b/tldr/linux/chcon @@ -6,6 +6,7 @@ source: https://github.com/tldr-pages/tldr.git # chcon > Change SELinux security context of a file or files/directories. +> See also: `secon`, `restorecon`, `semanage-fcontext`. > More information: . - View security context of a file: diff --git a/tldr/linux/ctop b/tldr/linux/ctop new file mode 100644 index 00000000..d79fd9f1 --- /dev/null +++ b/tldr/linux/ctop @@ -0,0 +1,25 @@ +--- +syntax: markdown +tags: [tldr, linux] +source: https://github.com/tldr-pages/tldr.git +--- +# ctop + +> Instantly visualize container performance and health with real-time metrics on CPU, memory, and block IO usage. +> More information: . + +- Show only [a]ctive containers: + +`ctop -a` + +- [r]everse the container sort order: + +`ctop -r` + +- [i]nvert the default colors: + +`ctop -i` + +- Display [h]elp: + +`ctop -h` diff --git a/tldr/linux/matchpathcon b/tldr/linux/matchpathcon new file mode 100644 index 00000000..9b4adfac --- /dev/null +++ b/tldr/linux/matchpathcon @@ -0,0 +1,22 @@ +--- +syntax: markdown +tags: [tldr, linux] +source: https://github.com/tldr-pages/tldr.git +--- +# matchpathcon + +> Lookup the persistent SELinux security context setting of a path. +> See also: `semanage-fcontext`, `secon`, `chcon`, `restorecon`. +> More information: . + +- Lookup the persistent security context setting of an absolute path: + +`matchpathcon {{/path/to/file}}` + +- Restrict lookup to settings on a specific file type: + +`matchpathcon -m {{file|dir|pipe|chr_file|blk_file|lnk_file|sock_file}} {{/path/to/file}}` + +- [V]erify that the persistent and current security context of a path agree: + +`matchpathcon -V {{/path/to/file}}` diff --git a/tldr/linux/runcon b/tldr/linux/runcon index 613fbd93..48944dee 100644 --- a/tldr/linux/runcon +++ b/tldr/linux/runcon @@ -6,10 +6,10 @@ source: https://github.com/tldr-pages/tldr.git # runcon > Run a program in a different SELinux security context. -> With neither context nor command, print the current security context. +> See also: `secon`. > More information: . -- Determine the current domain: +- Print the security context of the current execution context: `runcon` diff --git a/tldr/linux/secon b/tldr/linux/secon new file mode 100644 index 00000000..e8915d3d --- /dev/null +++ b/tldr/linux/secon @@ -0,0 +1,30 @@ +--- +syntax: markdown +tags: [tldr, linux] +source: https://github.com/tldr-pages/tldr.git +--- +# secon + +> Get the SELinux security context of a file, pid, current execution context, or a context specification. +> See also: `semanage`, `runcon`, `chcon`. +> More information: . + +- Get the security context of the current execution context: + +`secon` + +- Get the current security context of a process: + +`secon --pid {{1}}` + +- Get the current security context of a file, resolving all intermediate symlinks: + +`secon --file {{path/to/file_or_directory}}` + +- Get the current security context of a symlink itself (i.e. do not resolve): + +`secon --link {{path/to/symlink}}` + +- Parse and explain a context specification: + +`secon {{system_u:system_r:container_t:s0:c899,c900}}` diff --git a/tldr/linux/semanage-fcontext b/tldr/linux/semanage-fcontext index dbab8db1..80013f08 100644 --- a/tldr/linux/semanage-fcontext +++ b/tldr/linux/semanage-fcontext @@ -6,7 +6,7 @@ source: https://github.com/tldr-pages/tldr.git # semanage fcontext > Manage persistent SELinux security context rules on files/directories. -> See also: `semanage`, `restorecon`. +> See also: `semanage`, `matchpathcon`, `secon`, `chcon`, `restorecon`. > More information: . - List all file labelling rules: diff --git a/tldr/linux/togglesebool b/tldr/linux/togglesebool new file mode 100644 index 00000000..b1877d43 --- /dev/null +++ b/tldr/linux/togglesebool @@ -0,0 +1,14 @@ +--- +syntax: markdown +tags: [tldr, linux] +source: https://github.com/tldr-pages/tldr.git +--- +# togglesebool + +> Flip the current (non-persistent) values of SELinux booleans. +> Note: This tool has been deprecated and often removed in favor of `setsebool`. +> More information: . + +- Flip the current (non-persistent) values of the specified booleans: + +`sudo togglesebool {{virt_use_samba virt_use_usb ...}}` diff --git a/tldr/linux/torify b/tldr/linux/torify index 37169cb9..9bc5b850 100644 --- a/tldr/linux/torify +++ b/tldr/linux/torify @@ -6,6 +6,7 @@ source: https://github.com/tldr-pages/tldr.git # torify > Route network traffic through the Tor network. +> Note: This command has been deprecated, and is now a backwards-compatible wrapper of `torsocks`. > More information: . - Route traffic via Tor: diff --git a/tldr/linux/urpmi.addmedia b/tldr/linux/urpmi.addmedia new file mode 100644 index 00000000..c672c65e --- /dev/null +++ b/tldr/linux/urpmi.addmedia @@ -0,0 +1,27 @@ +--- +syntax: markdown +tags: [tldr, linux] +source: https://github.com/tldr-pages/tldr.git +--- +# urpmi.addmedia + +> Add media in Mageia. +> Note: Mageia documentation uses medium and repository as synonymous. +> See also: `urpmi`, `urpmi.update`, `urpme`, `urpmi.removemedia`, `urpmf`, `urpmq`. +> More information: . + +- Add a medium: + +`sudo urpmi.addmedia {{medium}} {{ftp://ftp.site.com/path/to/Mageia/RPMS}}` + +- Add a medium from a hard drive (run `genhdlist2` in the directory first): + +`sudo urpmi.addmedia --distrib HD file:/{{/path/to/repo}}` + +- Add important media from a chosen mirror: + +`sudo urpmi.addmedia --distrib ftp://{{mirror_website}/mirror/mageia/distrib/{{version}}/{{arch}}` + +- Automatically select mirrors from a mirror list: + +`sudo urpmi.addmedia --distrib --mirrorlist {{mirrorlist}}` diff --git a/tldr/linux/urpmi.removemedia b/tldr/linux/urpmi.removemedia new file mode 100644 index 00000000..c9c5d9ef --- /dev/null +++ b/tldr/linux/urpmi.removemedia @@ -0,0 +1,23 @@ +--- +syntax: markdown +tags: [tldr, linux] +source: https://github.com/tldr-pages/tldr.git +--- +# urpmi.removemedia + +> Remove media in Mageia. +> Note: Mageia documentation uses medium and repository as synonymous. +> See also: `urpmi`, `urpme`, `urpmi.addmedia`, `urpmi.update`, `urpmf`, `urpmq`. +> More information: . + +- Remove a medium: + +`sudo urpmi.removemedia {{medium}}` + +- Remove all media: + +`sudo urpmi.removemedia -a` + +- Remove media fuzz[y] matching on media names: + +`sudo urpmi.removemedia -y {{keyword}}` diff --git a/tldr/linux/urpmi.update b/tldr/linux/urpmi.update new file mode 100644 index 00000000..fe6c2d57 --- /dev/null +++ b/tldr/linux/urpmi.update @@ -0,0 +1,27 @@ +--- +syntax: markdown +tags: [tldr, linux] +source: https://github.com/tldr-pages/tldr.git +--- +# urpmi.update + +> Update the list of packages from a package repository in Mageia. +> Note: Mageia documentation uses medium and repository as synonymous. +> See also: `urpmi`, `urpme`, `urpmi.addmedia`, `urpmi.removemedia`, `urpmf`, `urpmq`. +> More information: . + +- Update all enabled media: + +`urpmi.update -a` + +- Update specific media (including disabled media): + +`urpmi.update {{medium1 medium2 ...}}` + +- Update all media that contain a specific keyword: + +`urpmi.update {{keyword}}` + +- Update all configured media: + +`urpmi.update e` diff --git a/tldr/ollama b/tldr/ollama index e26bc4a4..63604bba 100644 --- a/tldr/ollama +++ b/tldr/ollama @@ -6,7 +6,7 @@ source: https://github.com/tldr-pages/tldr.git # ollama > A large language model runner. -> More information: . +> More information: . - Start the daemon required to run other commands: @@ -36,6 +36,6 @@ source: https://github.com/tldr-pages/tldr.git `ollama rm {{model}}` -- Create a model from a `Modelfile`: +- Create a model from a `Modelfile` ([f]): `ollama create {{new_model_name}} -f {{path/to/Modelfile}}` diff --git a/tldr/tldr b/tldr/tldr index 2551ce10..186460a0 100644 --- a/tldr/tldr +++ b/tldr/tldr @@ -29,6 +29,6 @@ source: https://github.com/tldr-pages/tldr.git `tldr --update` -- List all pages for the current platform and `common`: +- [l]ist all pages for the current platform and `common`: `tldr --list`