Tuesday 11 June 2024

Syntax Highlighter


Monday 10 June 2024

Syncing Files from Mac iOS to Freenas


Install Homebrew

/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"

Install sshpass

brew install sshpass


rsync -av -e 'sshpass -p <password> ssh -oHostKeyAlgorithms=+ssh-dss root@freenas' ./* <destFolder>

FreeBSD utility commands

list the number of files in the directory

ls -1 | wc -l

Display the subfolder usage

du -h

Recursively find files with the name

find . -name IMG_0003.JPG