List of my often used command line and bash scripts.
Synchronize directories. Applicable for remote sync. rsync <source> <destination>
$ rsync -avz email@example.com:~/projects/ ~/projects/
Find in files
$ grep --include=requirements.txt -rn ~/projects -e 'flask'
List files with permissions and owner
$ ls -al /dev/kvm
Check users in a group
$ grep kvm /etc/group
Add user to group
$ sudo adduser yourname kvm
wc – is a ‘word count’ utility. E.g. count lines in directory /etc:
$ ls /etc | wc -l