DEV Community

[Comment from a deleted post]
Collapse
 
brandonwallace profile image
brandon_wallace • Edited

It is hard to remember complex syntax sometimes. What you can do is to write a cheat sheet of the commands you would like to remember and paste it on the wall.

If you have access to the man pages in the Bash terminal you can find the syntax for commands there.

Another thing is you can do is to save the command in a file and run it as a script. Like this long hard-to-remember rsync backup command.

$ vim backup.sh

#!/bin/bash

rsync -a --stats --human-readable --progress --checksum --exclude={'__pycache__/','.git/*','.venv/*','node_modules/*'} --log-file=rsync_log_$(date +"%Y-%m-%d_%H%M%S).log /home/brandon/code/ /backup
Enter fullscreen mode Exit fullscreen mode