diff --git a/tldr/docker-run b/tldr/docker-run index 75c63940..a1c724d8 100644 --- a/tldr/docker-run +++ b/tldr/docker-run @@ -18,7 +18,7 @@ source: https://github.com/tldr-pages/tldr.git - Run command in a one-off container in interactive mode and pseudo-TTY: -`docker run --rm {{[-i|--interactive]}} {{[-t|--tty]}} {{image}} {{command}}` +`docker run --rm {{[-it|--interactive --tty]}} {{image}} {{command}}` - Run command in a new container with passed environment variables: diff --git a/tldr/docker-search b/tldr/docker-search new file mode 100644 index 00000000..f248ba9b --- /dev/null +++ b/tldr/docker-search @@ -0,0 +1,33 @@ +--- +syntax: markdown +tags: [tldr, common] +source: https://github.com/tldr-pages/tldr.git +--- +# docker search + +> Search for Docker images on Docker Hub. +> More information: . + +- Search for Docker images by name or keyword: + +`docker search {{keyword}}` + +- Search for images and only show official ones: + +`docker search {{[-f|--filter]}} is-official=true {{keyword}}` + +- Search for images and only show automated builds: + +`docker search {{[-f|--filter]}} is-automated=true {{keyword}}` + +- Search for images with a minimum number of stars: + +`docker search {{[-f|--filter]}} stars={{number}} {{keyword}}` + +- Limit the number of results: + +`docker search --limit {{number}} {{keyword}}` + +- Customize the output format: + +`docker search {{[-f|--format]}} "{{.Name}}: {{.Description}}" {{keyword}}` diff --git a/tldr/linux/lspci b/tldr/linux/lspci index 90677a6c..bde8a5ee 100644 --- a/tldr/linux/lspci +++ b/tldr/linux/lspci @@ -12,7 +12,7 @@ source: https://github.com/tldr-pages/tldr.git `lspci` -- Display additional info: +- Display additional information (Note: the `-v` flag can be repeated to increase verbosity): `lspci -v` diff --git a/tldr/linux/mount.steamos b/tldr/linux/mount.steamos new file mode 100644 index 00000000..59395f95 --- /dev/null +++ b/tldr/linux/mount.steamos @@ -0,0 +1,25 @@ +--- +syntax: markdown +tags: [tldr, linux] +source: https://github.com/tldr-pages/tldr.git +--- +# mount.steamos + +> Mount or unmount SteamOS filesystem partitions. +> More information: . + +- Mount all necessary partitions from a device to a target directory: + +`sudo mount.steamos {{/dev/sdX}} {{/mnt}}` + +- Mount with options to exclude specific partitions (e.g. `/home`, overlays): + +`sudo mount.steamos {{[-o|--options]}} nohome,nooverlay {{/dev/sdX}} {{/mnt}}` + +- Unmount all partitions mounted under a target directory: + +`sudo mount.steamos -u {{/mnt}}` + +- Display help: + +`mount.steamos {{[-h|--help]}}` diff --git a/tldr/linux/steamos-boot-install b/tldr/linux/steamos-boot-install new file mode 100644 index 00000000..531a00e2 --- /dev/null +++ b/tldr/linux/steamos-boot-install @@ -0,0 +1,12 @@ +--- +syntax: markdown +tags: [tldr, linux] +source: https://github.com/tldr-pages/tldr.git +--- +# steamos-boot-install + +> This command is an alias of `steamos-finalize-install`. + +- View documentation for the original command: + +`tldr steamos-finalize-install` diff --git a/tldr/linux/steamos-devmode b/tldr/linux/steamos-devmode new file mode 100644 index 00000000..65f0a725 --- /dev/null +++ b/tldr/linux/steamos-devmode @@ -0,0 +1,22 @@ +--- +syntax: markdown +tags: [tldr, linux] +source: https://github.com/tldr-pages/tldr.git +--- +# steamos-devmode + +> Enable SteamOS developer mode. +> Note: Developer mode disables read-only protections and initializes the package manager. +> More information: . + +- Enable developer mode: + +`sudo steamos-devmode enable` + +- Enable developer mode without confirmation prompt: + +`sudo steamos-devmode enable --no-prompt` + +- Check if developer mode is currently enabled: + +`sudo steamos-devmode status` diff --git a/tldr/linux/steamos-finalize-install b/tldr/linux/steamos-finalize-install new file mode 100644 index 00000000..fdc68c2d --- /dev/null +++ b/tldr/linux/steamos-finalize-install @@ -0,0 +1,29 @@ +--- +syntax: markdown +tags: [tldr, linux] +source: https://github.com/tldr-pages/tldr.git +--- +# steamos-finalize-install + +> Complete a SteamOS installation by setting up bootloaders and applying system updates. +> More information: . + +- Finalize the installation: + +`sudo steamos-finalize-install` + +- Finalize without updating bootloaders or kernel: + +`sudo steamos-finalize-install --no-bootloaders --no-kernel` + +- Skip all migration steps: + +`sudo steamos-finalize-install --no-migrate` + +- Set a specific root hash during finalization: + +`sudo steamos-finalize-install --roothash {{hash}}` + +- Force system migration steps regardless of environment: + +`sudo steamos-finalize-install --force` diff --git a/tldr/linux/zsync b/tldr/linux/zsync new file mode 100644 index 00000000..81e74383 --- /dev/null +++ b/tldr/linux/zsync @@ -0,0 +1,31 @@ +--- +syntax: markdown +tags: [tldr, linux] +source: https://github.com/tldr-pages/tldr.git +--- +# zsync + +> Partial/differential file downloader. +> HTTPS is not supported - use HTTP URLs only. +> See also: `rsync`. +> More information: . + +- Download a file using a `.zsync` control file: + +`zsync {{path/to/url.zsync}}` + +- Use a local file as a seed to avoid re-downloading unchanged parts: + +`zsync -i {{path/to/existing_file}} {{path/to/url.zsync}}` + +- Save the updated file under a specific name: + +`zsync -i {{path/to/existing_file}} -o {{path/to/new_file}} {{path/to/url.zsync}}` + +- Resume a partial download and keep the temporary file: + +`zsync -k {{path/to/url.zsync}}` + +- Run in quiet mode with minimal output (no progress bar, download rate, or ETA display): + +`zsync -q {{path/to/url.zsync}}` diff --git a/tldr/ssh-keyscan b/tldr/ssh-keyscan index 77c0c315..8d5f2384 100644 --- a/tldr/ssh-keyscan +++ b/tldr/ssh-keyscan @@ -10,16 +10,16 @@ source: https://github.com/tldr-pages/tldr.git - Retrieve all public SSH keys of a remote host: -`ssh-keyscan {{host}}` +`ssh-keyscan {{hostname}}` - Retrieve all public SSH keys of a remote host listening on a specific port: -`ssh-keyscan -p {{port}} {{host}}` +`ssh-keyscan -p {{port}} {{hostname}}` - Retrieve certain types of public SSH keys of a remote host: -`ssh-keyscan -t {{rsa,dsa,ecdsa,ed25519}} {{host}}` +`ssh-keyscan -t {{rsa,dsa,ecdsa,ed25519}} {{hostname}}` - Manually update the SSH known_hosts file with the fingerprint of a given host: -`ssh-keyscan -H {{host}} >> ~/.ssh/known_hosts` +`ssh-keyscan -H {{hostname}} >> ~/.ssh/known_hosts` diff --git a/tldr/uv-init b/tldr/uv-init new file mode 100644 index 00000000..d6a0691e --- /dev/null +++ b/tldr/uv-init @@ -0,0 +1,37 @@ +--- +syntax: markdown +tags: [tldr, common] +source: https://github.com/tldr-pages/tldr.git +--- +# uv init + +> Create a new Python project. +> More information: . + +- Initialize a project in the current directory: + +`uv init` + +- Initialize a project with a certain name: + +`uv init {{project_name}}` + +- Create a project in a given directory: + +`uv init --directory {{path/to/directory}} {{project_name}}` + +- Create a project for a Python library: + +`uv init {{[--lib|--library]}} {{project_name}}` + +- Specify the build system: + +`uv init --build-backend {{build_backend}} {{project_name}}` + +- Only create a `pyproject.toml`: + +`uv init --bare {{project_name}}` + +- Set the project description: + +`uv init --description "{{description}}" {{project_name}}`