-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
4 changed files
with
104 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
--- | ||
layout: page | ||
title: common/todo.sh (English) | ||
description: "Simple and extensible shell script for managing your `todo.txt` file." | ||
content_hash: 7e4580a4c02129510ae1fa7ff0a0c8715a99d1a7 | ||
last_modified_at: 2023-09-27 | ||
--- | ||
|
||
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># todo.sh | ||
|
||
Simple and extensible shell script for managing your `todo.txt` file. | ||
More information: <https://github.com/todotxt/todo.txt-cli>. | ||
|
||
- List every item: | ||
|
||
`todo.sh ls` | ||
|
||
- Add an item with project and context tags: | ||
|
||
`todo.sh add '`<span class="tldr-var badge badge-pill bg-dark-lm bg-white-dm text-white-lm text-dark-dm font-weight-bold">description</span>` +`<span class="tldr-var badge badge-pill bg-dark-lm bg-white-dm text-white-lm text-dark-dm font-weight-bold">project</span>` @`<span class="tldr-var badge badge-pill bg-dark-lm bg-white-dm text-white-lm text-dark-dm font-weight-bold">context</span>`'` | ||
|
||
- Mark an item as [do]ne: | ||
|
||
`todo.sh do `<span class="tldr-var badge badge-pill bg-dark-lm bg-white-dm text-white-lm text-dark-dm font-weight-bold">item_no</span> | ||
|
||
- Remove an item: | ||
|
||
`todo.sh rm `<span class="tldr-var badge badge-pill bg-dark-lm bg-white-dm text-white-lm text-dark-dm font-weight-bold">item_no</span> | ||
|
||
- Set an item's [pri]ority (A-Z): | ||
|
||
`todo.sh pri `<span class="tldr-var badge badge-pill bg-dark-lm bg-white-dm text-white-lm text-dark-dm font-weight-bold">item_no</span>` `<span class="tldr-var badge badge-pill bg-dark-lm bg-white-dm text-white-lm text-dark-dm font-weight-bold">priority</span> | ||
|
||
- Replace an item: | ||
|
||
`todo.sh replace `<span class="tldr-var badge badge-pill bg-dark-lm bg-white-dm text-white-lm text-dark-dm font-weight-bold">item_no</span>` '`<span class="tldr-var badge badge-pill bg-dark-lm bg-white-dm text-white-lm text-dark-dm font-weight-bold">new_description</span>`'` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
--- | ||
layout: page | ||
title: linux/lchage (English) | ||
description: "Display or change user password policy." | ||
content_hash: 83e7113aaa62a0d0e26d732c160f33fd1ff258ee | ||
last_modified_at: 2023-09-27 | ||
--- | ||
|
||
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># lchage | ||
|
||
Display or change user password policy. | ||
More information: <https://manned.org/lchage>. | ||
|
||
- Disable password expiration for the user: | ||
|
||
`sudo lchage --date -1 `<span class="tldr-var badge badge-pill bg-dark-lm bg-white-dm text-white-lm text-dark-dm font-weight-bold">username</span> | ||
|
||
- Display the password policy for the user: | ||
|
||
`sudo lchage --list `<span class="tldr-var badge badge-pill bg-dark-lm bg-white-dm text-white-lm text-dark-dm font-weight-bold">username</span> | ||
|
||
- Require password change for the user a certain number of days after the last password change: | ||
|
||
`sudo lchage --maxdays `<span class="tldr-var badge badge-pill bg-dark-lm bg-white-dm text-white-lm text-dark-dm font-weight-bold">number_of_days</span>` `<span class="tldr-var badge badge-pill bg-dark-lm bg-white-dm text-white-lm text-dark-dm font-weight-bold">username</span> | ||
|
||
- Start warning the user a certain number of days before the password expires: | ||
|
||
`sudo lchage --warndays `<span class="tldr-var badge badge-pill bg-dark-lm bg-white-dm text-white-lm text-dark-dm font-weight-bold">number_of_days</span>` `<span class="tldr-var badge badge-pill bg-dark-lm bg-white-dm text-white-lm text-dark-dm font-weight-bold">username</span> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
--- | ||
layout: page | ||
title: linux/mkosi (English) | ||
description: "Tool for building modern, legacy-free Linux images." | ||
content_hash: 6b5ffbcfa7cf462eb1606deb6d1ed706ed3f03e2 | ||
last_modified_at: 2023-09-27 | ||
--- | ||
|
||
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># mkosi | ||
|
||
Tool for building modern, legacy-free Linux images. | ||
Part of `systemd`. | ||
More information: <https://manned.org/mkosi>. | ||
|
||
- Show current build configuration to verify what would be built: | ||
|
||
`mkosi summary` | ||
|
||
- Build an image with default settings (if no distribution is selected, the distribution of the host system is used): | ||
|
||
`mkosi build --distribution `<span class="tldr-var badge badge-pill bg-dark-lm bg-white-dm text-white-lm text-dark-dm font-weight-bold">fedora|debian|ubuntu|arch|opensuse|...</span> | ||
|
||
- Build an image and run an interactive shell in a systemd-nspawn container of the image: | ||
|
||
`mkosi shell` | ||
|
||
- Boot an image in a virtual machine using QEMU (only supported for disk images or CPIO images when a kernel is provided): | ||
|
||
`mkosi qemu` | ||
|
||
- Display help: | ||
|
||
`mkosi help` |
Submodule source
updated
4 files
+2 −2 | .github/CODEOWNERS | |
+28 −0 | pages/common/todo.sh.md | |
+20 −0 | pages/linux/lchage.md | |
+25 −0 | pages/linux/mkosi.md |