Skip to content

Commit

Permalink
Data update 2023-08-31 18-12-37
Browse files Browse the repository at this point in the history
  • Loading branch information
1010bots committed Aug 31, 2023
1 parent 0aec65c commit ecf2b36
Show file tree
Hide file tree
Showing 3 changed files with 32 additions and 16 deletions.
23 changes: 13 additions & 10 deletions docs/en/linux/mktemp.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,24 +2,27 @@
layout: page
title: linux/mktemp (English)
description: "Create a temporary file or directory."
content_hash: e5a2bdd3e72761893cd757967814386bf782ca60
content_hash: 70c1d1b7ff9865d79fc970e63807d380ef8cdb66
last_modified_at: 2023-08-31
---

This entry is very new in the [tldr-pages](https://github.com/tldr-pages/tldr) project, hence translation data is currently unavailable for a while.

<hr># mktemp
# mktemp

Create a temporary file or directory.
Note that examples here all assume `$TMPDIR` is unset.
More information: <https://www.gnu.org/software/autogen/mktemp.html>.

- Create an empty temporary file and print the absolute path to it:
- Create an empty temporary file in `/tmp/` and print its absolute path:

`mktemp`

- Create an empty temporary file with a given suffix and print the absolute path to file:
- Create a temporary directory in `/tmp/` and print its absolute path:

`mktemp --directory`

`mktemp --suffix "`<span class="tldr-var badge badge-pill bg-dark-lm bg-white-dm text-white-lm text-dark-dm font-weight-bold">.ext</span>`"`
- Create an empty temporary file at the specified path, with `X`s replaced with random alphanumeric characters, and print its path:

- Create a temporary directory and print the absolute path to it:
`mktemp "`<span class="tldr-var badge badge-pill bg-dark-lm bg-white-dm text-white-lm text-dark-dm font-weight-bold">path/to/file_XXXXX_name</span>`"`

`mktemp --directory`
- Create an empty temporary file in `/tmp/` with the specified name, with `X`s replaced with random alphanumeric characters, and print its path:

`mktemp -t "`<span class="tldr-var badge badge-pill bg-dark-lm bg-white-dm text-white-lm text-dark-dm font-weight-bold">file_XXXXX_name</span>`"`
23 changes: 18 additions & 5 deletions docs/en/linux/schroot.md
Original file line number Diff line number Diff line change
@@ -1,14 +1,19 @@
---
layout: page
title: linux/schroot (English)
description: "Run command or start an interactive shell with a different root directory. More customizable than `chroot`."
content_hash: 854aaabbfeb46e6647f19ea5b279f90b575369c5
description: "Run a command or start an interactive shell with a different root directory. More customizable than `chroot`."
content_hash: 1fb09cda3a0a34ba3d348cf1c40f96c0c51c570a
last_modified_at: 2023-08-31
---
# schroot

Run command or start an interactive shell with a different root directory. More customizable than `chroot`.
Run a command or start an interactive shell with a different root directory. More customizable than `chroot`.
More information: <https://wiki.debian.org/Schroot>.

- List available chroots:

`schroot --list`

- Run a command in a specific chroot:

`schroot --chroot `<span class="tldr-var badge badge-pill bg-dark-lm bg-white-dm text-white-lm text-dark-dm font-weight-bold">chroot</span>` `<span class="tldr-var badge badge-pill bg-dark-lm bg-white-dm text-white-lm text-dark-dm font-weight-bold">command</span>
Expand All @@ -25,6 +30,14 @@ More information: <https://wiki.debian.org/Schroot>.

`schroot --chroot `<span class="tldr-var badge badge-pill bg-dark-lm bg-white-dm text-white-lm text-dark-dm font-weight-bold">chroot</span>` --user `<span class="tldr-var badge badge-pill bg-dark-lm bg-white-dm text-white-lm text-dark-dm font-weight-bold">user</span>

- List available chroots:
- Begin a new session (a unique session ID is returned on `stdout`):

`schroot --list`
`schroot --begin-session --chroot `<span class="tldr-var badge badge-pill bg-dark-lm bg-white-dm text-white-lm text-dark-dm font-weight-bold">chroot</span>

- Connect to an existing session:

`schroot --run-session --chroot `<span class="tldr-var badge badge-pill bg-dark-lm bg-white-dm text-white-lm text-dark-dm font-weight-bold">session_id</span>

- End an existing session:

`schroot --end-session --chroot `<span class="tldr-var badge badge-pill bg-dark-lm bg-white-dm text-white-lm text-dark-dm font-weight-bold">session_id</span>
2 changes: 1 addition & 1 deletion source

0 comments on commit ecf2b36

Please sign in to comment.