To lock the computer
To enable screenshot
This will open the Force Quit Applications window.
Refer https://www.python.org/downloads/release/python-365/ and download Mac-os 64 bit installer
check machdep.cpu.features via sysctl
Check for VT-x support
Deepaks-MacBook-Air:02122017 deepak$ sysctl -a | grep machdep.cpu.features | grep VMX
machdep.cpu.features: FPU VME DE PSE TSC MSR PAE MCE CX8 APIC SEP MTRR PGE MCA CMOV PAT PSE36 CLFSH DS ACPI MMX FXSR SSE SSE2 SS HTT TM PBE SSE3 PCLMULQDQ DTES64 MON DSCPL VMX SMX EST TM2 SSSE3 FMA CX16 TPR PDCM SSE4.1 SSE4.2 x2APIC MOVBE POPCNT AES PCID XSAVE OSXSAVE SEGLIM64 TSCTMR AVX1.0 RDRAND F16C
If you see VMX in the output, then the CPU supports the Intel VT-x feature.
Useful link: https://apple.stackexchange.com/questions/224870/how-to-check-vt-x-status-on-macbook-pro
#netstat -r
Routing tables
Internet:
Destination Gateway Flags Refs Use Netif Expire
default 192.168.0.1 UGSc 28 0 en0
127 localhost UCS 0 0 lo0
localhost localhost UH 1 51650 lo0
169.254 link#4 UCS 0 0 en0
192.168.0 link#4 UCS 0 0 en0
192.168.0.1/32 link#4 UCS 1 0 en0
192.168.0.1 6c:72:20:d2:d7:ad UHLWIir 29 23 en0 478
192.168.0.2/32 link#4 UCS 0 0 en0
Internet6:
Destination Gateway Flags Netif Expire
localhost localhost UHL lo0
fe80::%lo0 fe80::1%lo0 UcI lo0
fe80::1%lo0 link#1 UHLI lo0
fe80::%en0 link#4 UCI en0
To add a route to <Dest IP> via <GW IP>
#route -n add <Dest IP>/32 <GW IP>
For example,
#route -n add 1.1.1.1/32 10.10.10.10
To extract configured routes
#netstat -nr
Internet:
Destination Gateway Flags Refs Use Netif Expire
default 172.21.16.1 UGSc 205 7 en0
1.1.1.2/32 10.10.10.10 UGSc 0 0 en0
127 127.0.0.1 UCS 0 0 lo0
127.0.0.1 127.0.0.1 UH 1 660 lo0
169.254 link#4 UCS 0 0 en0
172.21.16/23 link#4 UCS 15 0 en0
172.21.16.1/32 link#4 UCS 1 0 en0
172.21.16.1 f0:1c:2d:f5:1b:41 UHLWIir 206 72 en0 580
172.21.16.15 94:b4:f:c1:ae:b2 UHLWI 0 0 en0 1169
172.21.16.74 54:79:75:b3:93:a8 UHLWI 0 0 en0 1093
use 'open -n' option
Deepaks-MacBook-Air:triton deepak$ open -n /Applications/Wireshark.app
Useful link: https://osqa-ask.wireshark.org/questions/54036/open-multiple-captures-on-mac
I saw this error while trying to download file from google drive
Solution: Following the steps mentioned in https://support.apple.com/en-in/HT203370 has resolved my issue
For example, adding an export command.
Update ~/.zshrc file as shown in below example
Ref: https://stackoverflow.com/questions/11530090/adding-a-new-entry-to-the-path-variable-in-zsh
Run echo $HISTFILE
Ref: https://superuser.com/questions/950403/bash-history-not-preserved-between-terminal-sessions-on-mac
It will be needed if your application needs older version of Xcode
use Xcode-select
Useful link: http://iosdevelopertips.com/xcode/xcode-select-managing-multiple-versions-of-xcode.html
MacBook Air can be charged using MacBook Pro charger. Please refer https://support.apple.com/en-in/HT201700
http://www.tekrevue.com/tip/the-fastest-way-to-lock-or-sleep-your-screen-in-mac-os-x/
http://www.wikihow.com/Force-Quit-an-Application-in-Mac-OS-X