mirror of
https://github.com/cheat/cheat.git
synced 2024-12-18 18:55:06 +01:00
Merge pull request #151 from carlu/master
Cheatsheets added for a couple of my favourite commands:
This commit is contained in:
commit
0ba36baa48
2
cheatsheets/indent
Normal file
2
cheatsheets/indent
Normal file
@ -0,0 +1,2 @@
|
||||
# format C/C++ source according to the style of Kernighan and Ritchie (K&R), no tabs, 3 spaces per indent, wrap lines at 120 characters.
|
||||
indent -i3 -kr -nut -l120
|
6
cheatsheets/rsync
Normal file
6
cheatsheets/rsync
Normal file
@ -0,0 +1,6 @@
|
||||
# copy files from remote to local, maintaining file propertires and sym-links (-a), zipping for faster transfer (-z), verbose (-v).
|
||||
rsync -avz host:file1 :file1 /dest/
|
||||
rsync -avz /source host:/dest
|
||||
|
||||
# Copy files using checksum (-c), rather than time, to detect if the file has changed. (Useful for validating backups).
|
||||
rsync -avc /source/ /dest/
|
Loading…
Reference in New Issue
Block a user