Files
mkdocs/docs/macos/Divers.md
Bruno 21 e82296ba06 1er commit
De la docs au format Mkdocs
2018-09-16 14:48:15 +02:00

73 lines
1.2 KiB
Markdown
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
# Divers
#### Convertir une page man en fichier txt:
```bash
bruno@SilverBook:~$ man tmutil | col -b > tmutil.txt
```
( -bx)
#### Convertir une page man en fichier pdf:
(installer Ghostscript pour avoir ps2pdf)
```bash
bruno@SilverBook:~$ man -t tmutil | ps2pdf - tmutil.pdf
```
#### Installer LaTeX:
```bash
$ brew cask install basictex
```
ou
```bash
$ brew cask install mactex
```
#### rsync
`—delete` (efface de la destination ce qui nest plus dans la source)
#### Créer une image disque:
```bash
bruno@SilverBook:~$ hdiutil create -srcfolder /Users/bruno/Downloads/PC archive.dmg
.......................................................................................................................................................................................
created: /Users/bruno/archive.dmg
```
#### Rapport système:
```bash
bruno@SilverBook:~$ system_profiler -detailLevel basic > report.txt
```
#### Comparer fichiers et répertoires:
```bash
$ opendiff Contract1.rtf Contract2.rtf
```
#### Chercher les m-à-j sur l'App Store:
```bash
$ softwareupdate -l
Software Update Tool
Finding available software
No new software available.
```
#### Installer les m-à-j:
```bash
$ sudo softwareupdate -i -a
```