diff --git a/pages.it/osx/log.md b/pages.it/osx/log.md new file mode 100644 index 0000000000..400d423bf1 --- /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 0000000000..d5d405d772 --- /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}}`