From ae55985c184cbece95f7929915c09a77c7fe45b2 Mon Sep 17 00:00:00 2001 From: Magrid <73496008+Magrid0@users.noreply.github.com> Date: Sun, 14 May 2023 15:27:15 +0200 Subject: [PATCH] fold: add page; log: add Italian translation (#10039) * log: add Italian translation * fold: add page * Update fold.md fix typo * Update fold.md * Update pages/linux/fold.md Co-authored-by: Seth Falco * Update pages/linux/fold.md Co-authored-by: Seth Falco * Update pages/linux/fold.md Co-authored-by: Seth Falco * Update pages.it/osx/log.md Co-authored-by: Jack Lin * Update pages/linux/fold.md Co-authored-by: Jack Lin * Update pages/linux/fold.md Co-authored-by: Jack Lin * Update pages/linux/fold.md Co-authored-by: Jack Lin * Update pages/linux/fold.md Co-authored-by: Jack Lin * Apply suggestions from code review --------- Co-authored-by: Seth Falco Co-authored-by: Jack Lin Co-authored-by: K.B.Dharun Krishna --- pages.it/osx/log.md | 20 ++++++++++++++++++++ pages/linux/fold.md | 16 ++++++++++++++++ 2 files changed, 36 insertions(+) create mode 100644 pages.it/osx/log.md create mode 100644 pages/linux/fold.md diff --git a/pages.it/osx/log.md b/pages.it/osx/log.md new file mode 100644 index 000000000..400d423bf --- /dev/null +++ b/pages.it/osx/log.md @@ -0,0 +1,20 @@ +# log + +> Visualizza, esporta e configura i sistemi di log. +> Maggiori informazioni: . + +- Mostra i log di sistema in diretta: + +`log stream` + +- Mostra i log mandati a `syslog` da processi con un PID specifico: + +`log stream --process {{ID_processo}}` + +- Mostra i log mandati a `syslog` da processi con un nome specifico: + +`log show --predicate "process == '{{process_name}}'"` + +- Esporta sul disco tutti i log dell'ultima ora: + +`sudo log collect --last {{1h}} --output {{percorso/del/file.logarchive}}` diff --git a/pages/linux/fold.md b/pages/linux/fold.md new file mode 100644 index 000000000..d5d405d77 --- /dev/null +++ b/pages/linux/fold.md @@ -0,0 +1,16 @@ +# Fold + +> Folds long lines for fixed-width output devices. +> More information: . + +- Fold lines in a fixed width: + +`fold --width {{width}} {{path/to/file}}` + +- Count width in bytes (the default is to count in columns): + +`fold --bytes --width {{width_in_bytes}} {{path/to/file}}` + +- Break the line after the rightmost blank within the width limit: + +`fold --spaces --width {{width}} {{path/to/file}}`