Thu Apr 01 2021 15:49:23 GMT+0000 (Coordinated Universal Time)
Saved by @ibdf #apple #mac
mkfile [ -nv ] size[b|k|m|g] filename
eg. mkfile -n 10m myFileName
#apple #mac
defaults write com.apple.screencapture location MY_NEW_FOLDER_LOCATION
#bsh #mac #vnc
sudo /System/Library/CoreServices/RemoteManagement/ARDAgent.app/Contents/Resources/kickstart \ -activate -configure -access -on \ -clientopts -setvnclegacy -vnclegacy yes \ -clientopts -setvncpw -vncpw mypasswd \ -restart -agent -privs -all
sudo /System/Library/CoreServices/RemoteManagement/ARDAgent.app/Contents/Resources/kickstart \ -deactivate -configure -access -off
#bsh #macos #commandline #vnc #remotemanagement #mac
sudo /System/Library/CoreServices/RemoteManagement/ARDAgent.app/Contents/Resources/kickstart \ -activate -configure -access -on \ -configure -allowAccessFor -allUsers \ -configure -restart -agent -privs -all
#bash #mac
sudo arp -a -d
arp -a
sudo arp -d 1.1.1.1
ssh-keygen -t rsa
#checksum #commandline #sha-256 #mac
shasum -a 256 /full/path/to/your/file
#mac #terminal #commandline
whoami
#bash #terminal #mac #networking
ipconfig getifaddr en0
#bash #mac #terminal #networking
ipconfig getoption en0 subnet_mask
ipconfig getoption en0 domain_name_server
netstat -nr
Copy this HTML code:
Preview:
open_in_newInstructions on embedding in Medium
Comments