macOS #
Check if network port is open on macOS #
nc -zv host 1433
how to remove extended attribute files starting with “._” on macOS #
xattr -d com.apple.quarantine filename
OR
xattr -dr com.apple.quarantine directoryName
Tar without extended attribute files (starting with “._”) on macOS #
COPYFILE_DISABLE=1 tar -cf filename.overflow *
Clear DNS cache on macOS #
sudo dscacheutil -flushcache; sudo killall -HUP mDNSResponder
Show hidden files in finder on macOS #
Command + Shift + .
Build-in antivirus/malware protection on macOS #
Protecting against malware in macOS
View xProtect logs on macOS #
sudo log show --predicate 'subsystem == "com.apple.xprotect"'