Useful Mac terminal commands for freaks hahahah... Like Linux distros, Mac OS X includes a Terminal application, which provides a text window in which you can run Linux/Unix commands. This terminal is also often referred to as command line or shell or shell window. It's the text-based environment that people used to operate computers before graphical user interface became available. It is still widely used for system administration and scripting automated processes.* Página melhor visualizada no " navegador Chrome "
01 - Several Mac Terminal Commands 02 - Swift - basic 03 - PHP 04 - Installing nmap 05 - Example - PHP + CSS + JavaScript 06 - Installing mysql on Mac + creating database + table ... 07 - Ruby - basicAtualizando o sistema. sudo softwareupdate -i -a --------------- Limpando a lixeira. rm -rf ~/.Trash/* --------------- Espaço de disco / das partições. df -h Filesystem Size Used Avail Capacity iused ifree %iused Mounted on /dev/disk1 360Gi 288Gi 72Gi 80% 762269 4294205010 0% / devfs 335Ki 335Ki 0Bi 100% 1160 0 100% /dev /dev/disk0s4 104Gi 49Gi 55Gi 48% 192287 4294774992 0% /Volumes/BKP map -hosts 0Bi 0Bi 0Bi 100% 0 0 100% /net map auto_home 0Bi 0Bi 0Bi 100% 0 0 100% /home localhost:/NfDJ_YGo7btLDK4RC8RMIc 360Gi 360Gi 0Bi 100% 0 0 100% /Volumes/MobileBackups --------------- Lendo arquivo em voz alta. say -o audio.aiff -f FILENAME.txt say "hello Isabela" --------------- Acessando samba no meu servidor Linux. Botao direito sobre o "Finder", clique em "Connect to Server..." e digite comando abaixo para acessar Samba no servidor Linux.
smb://192.168.1.13 --------------- Abrindo / iniciando aplicativos. open -a notes open -a calendar open -a mail --------------- du -sh ~ 253G /Users/jurandirap --------------- du -sch /Applications/ 6.1G /Applications/ 6.1G total --------------- Espaço usado em diretórios / pastas. du -sh * | sort -n 0B dwhelper 0B f.tmp 2.2M Applications 4.0K dirc.c 4.0K memr.py 4.4G Dropbox 5.0G Desktop 11G VirtualBox VMs 23G Music 35G Library 39G Pictures 42G Downloads 80M Movies 93G Documents 732K Public --------------- Espaço usado em diretórios / pastas. du -hs * |egrep -i "^(\s?\d+\.?\d+G)" | sort -nr 93G Documents 42G Downloads 39G Pictures 35G Library 23G Music 11G VirtualBox VMs 5.0G Desktop 4.4G Dropbox --------------- Contando arquivos que estção no diretório/pasta Library sudo ls -lR /Library/ | wc -l 85292 --------------- for i in G M K; do du -ah | grep ^[0-9\.]*$i | sort -nr -k 1; done | head -n 15 253G . 8.7G ./VirtualBox VMs/Kali 2016/Kali 2016.vdi 8.7G ./VirtualBox VMs/Kali 2016 8.6G ./Downloads/Clone of Kali 2016.vmwarevm 7.9G ./Downloads/ShellZZ/php1/CentOs 7 7.9G ./Downloads/ShellZZ/php1 7.9G ./Downloads/ShellZZ 7.1G ./Documents/_3 vms/Debian 7.vdi 6.9G ./Documents/_1 English/_ ---[ 3rd edition ]--- 6.7G ./Music/iTunes/iTunes Media/Mobile Applications 5.5G ./Library/Application Support/MobileSync/Backup/a0588f1115ff83a8a6635756689799 5.0G ./Desktop 4.6G ./Music/iTunes/iTunes Media/Music 4.5G ./Pictures/Photos Library.photoslibrary/Masters/2016/06/19/20160619-204041 4.5G ./Pictures/Photos Library.photoslibrary/Masters/2016/06/19 --------------- for i in $(ls -1 . | sort -n) ; { echo "$i => $(find ${i} | wc -l)"; } Applications => 77 Desktop => 2696 Documents => 46457 Downloads => 5071 Dropbox => 1559 Library => 127648 Movies => 31 Music => 5665 Pictures => 13694 Public => 9 --------------- ls -R | grep ":$" | sed -e 's/:$//' -e 's/[^-][^\/]*\//--/g' -e 's/^/ /' -e 's/-/|/' . |-Desktop |-Documents |-Downloads |-Music |-output |-Pictures |-Public |-Templates --------------- Comandos mais usados no terminal. history|awk '{print $2}'|awk 'BEGIN {FS="|"} {print $1}'|sort|uniq -c|sort -r 146 ssh 89 ls 52 find 28 du 20 cd 16 ps 13 lsof 11 tail 10 sudo 10 for 8 su 7 sh 6 cat 6 apt-get 5 wc 5 top 5 say 5 echo 4 ping --------------- sudo lsof -iTCP -sTCP:LISTEN -P Password: COMMAND PID USER FD TYPE DEVICE SIZE/OFF NODE NAME mtmfs 93 root 3u IPv4 0x627a0e352df29389 0t0 TCP localhost:49152 (LISTEN) mtmfs 93 root 5u IPv4 0x627a0e352df29c81 0t0 TCP localhost:49153 (LISTEN) iTunes 2608 jurandirpap 31u IPv4 0x627a0e35379b5c81 0t0 TCP *:3689 (LISTEN) iTunes 2608 jurandirpap 32u IPv6 0x627a0e3537809131 0t0 TCP *:3689 (LISTEN) SophosWeb 82368 _sophos 6u IPv4 0x627a0e3537e6e8a1 0t0 TCP localhost:55957 (LISTEN) --------------- lsof -i COMMAND PID USER FD TYPE DEVICE SIZE/OFF NODE NAME loginwind 115 jurandirpap 9u IPv4 0x627a0e352bf4c591 0t0 UDP *:* UserEvent 278 jurandirpap 5u IPv4 0x627a0e352bf4c7f1 0t0 UDP *:* sharingd 287 jurandirpap 4u IPv4 0x627a0e352bf4be71 0t0 UDP *:* sharingd 287 jurandirpap 8u IPv4 0x627a0e352bf4c0d1 0t0 UDP *:* sharingd 287 jurandirpap 9u IPv4 0x627a0e352bf4add1 0t0 UDP *:* sharingd 287 jurandirpap 18u IPv4 0x627a0e352d837b71 0t0 UDP *:* Google 289 jurandirpap 50u IPv4 0x627a0e352d838751 0t0 UDP *:* Google 289 jurandirpap 66u IPv4 0x627a0e353784bc81 0t0 TCP 10.5.49.46:61403->rio01s15-in-f14.1e100.net:https (ESTABLISHED) Google 289 jurandirpap 92u IPv4 0x627a0e3535e51fa9 0t0 TCP localhost:61475->localhost:61418 (ESTABLISHED) Google 289 jurandirpap 100u IPv4 0x627a0e3535e54389 0t0 TCP localhost:61524->localhost:61418 (ESTABLISHED) Google 289 jurandirpap 114u IPv4 0x627a0e353f0dec81 0t0 TCP localhost:61494->localhost:61418 (ESTABLISHED) Google 289 jurandirpap 128u IPv4 0x627a0e3544ca4fa9 0t0 TCP localhost:61509->localhost:61418 (ESTABLISHED) Google 289 jurandirpap 132u IPv4 0x627a0e3537b68199 0t0 TCP localhost:61501->localhost:61418 (ESTABLISHED) Google 289 jurandirpap 133u IPv4 0x627a0e3535fcda91 0t0 TCP localhost:61499->localhost:61418 (ESTABLISHED) Google 289 jurandirpap 145u IPv4 0x627a0e3537a4b389 0t0 TCP localhost:61542->localhost:61418 (ESTABLISHED) Google 289 jurandirpap 147u IPv4 0x627a0e3537876c81 0t0 TCP localhost:61484->localhost:61418 (ESTABLISHED) Google 289 jurandirpap 149u IPv4 0x627a0e353794b199 0t0 TCP localhost:61447->localhost:61418 (ESTABLISHED) Google 289 jurandirpap 151u IPv4 0x627a0e3535e35fa9 0t0 TCP localhost:61485->localhost:61418 (ESTABLISHED) Google 289 jurandirpap 152u IPv4 0x627a0e353f281a91 0t0 TCP localhost:61486->localhost:61418 (ESTABLISHED) Google 289 jurandirpap 154u IPv4 0x627a0e3537838fa9 0t0 TCP localhost:61492->localhost:61418 (ESTABLISHED) Google 289 jurandirpap 159u IPv4 0x627a0e353787e199 0t0 TCP localhost:61493->localhost:61418 (ESTABLISHED) Google 289 jurandirpap 162u IPv4 0x627a0e3535fffc81 0t0 TCP localhost:61473->localhost:61418 (ESTABLISHED) --------------- lsof -i | grep -E "(LISTEN|ESTABLISHED)" Google 289 jurandirpap 66u IPv4 0x627a0e353784bc81 0t0 TCP 10.5.49.46:61403->rio01s15-in-f14.1e100.net:https (ESTABLISHED) Google 289 jurandirpap 92u IPv4 0x627a0e3535e51fa9 0t0 TCP localhost:61475->localhost:61418 (ESTABLISHED) Google 289 jurandirpap 110u IPv4 0x627a0e3543d35fa9 0t0 TCP localhost:61625->localhost:61418 (ESTABLISHED) Google 289 jurandirpap 114u IPv4 0x627a0e353f0dec81 0t0 TCP localhost:61494->localhost:61418 (ESTABLISHED) Google 289 jurandirpap 128u IPv4 0x627a0e3544ca4fa9 0t0 TCP localhost:61509->localhost:61418 (ESTABLISHED) Google 289 jurandirpap 133u IPv4 0x627a0e3535fcda91 0t0 TCP localhost:61499->localhost:61418 (ESTABLISHED) Google 289 jurandirpap 145u IPv4 0x627a0e3537a4b389 0t0 TCP localhost:61542->localhost:61418 (ESTABLISHED) Google 289 jurandirpap 149u IPv4 0x627a0e353794b199 0t0 TCP localhost:61447->localhost:61418 (ESTABLISHED) Google 289 jurandirpap 151u IPv4 0x627a0e3537b72a91 0t0 TCP localhost:61633->localhost:61418 (ESTABLISHED) Google 289 jurandirpap 154u IPv4 0x627a0e35484bf579 0t0 TCP localhost:61631->localhost:61418 (ESTABLISHED) Google 289 jurandirpap 162u IPv4 0x627a0e3535fffc81 0t0 TCP localhost:61473->localhost:61418 (ESTABLISHED) Google 289 jurandirpap 172u IPv4 0x627a0e3537b7f199 0t0 TCP localhost:61419->localhost:61418 (ESTABLISHED) Google 289 jurandirpap 190u IPv4 0x627a0e3535e4cc81 0t0 TCP localhost:61442->localhost:61418 (ESTABLISHED) Google 289 jurandirpap 194u IPv4 0x627a0e35378bd199 0t0 TCP localhost:61431->localhost:61418 (ESTABLISHED) Google 289 jurandirpap 200u IPv4 0x627a0e3542d1ca91 0t0 TCP localhost:61545->localhost:61418 (ESTABLISHED) Google 289 jurandirpap 203u IPv4 0x627a0e3535ff3579 0t0 TCP localhost:61586->localhost:61418 (ESTABLISHED) Google 289 jurandirpap 204u IPv4 0x627a0e3535fd28a1 0t0 TCP localhost:61567->localhost:61418 (ESTABLISHED) Google 289 jurandirpap 214u IPv4 0x627a0e3536002a91 0t0 TCP localhost:61636->localhost:61418 (ESTABLISHED) Google 289 jurandirpap 220u IPv4 0x627a0e35379d5389 0t0 TCP localhost:61471->localhost:61418 (ESTABLISHED) Notes 299 jurandirpap 20u IPv4 0x627a0e35379b4199 0t0 TCP 10.5.49.46:63206->17.133.244.105:imaps (ESTABLISHED) Notes 299 jurandirpap 40u IPv4 0x627a0e3535e47a91 0t0 TCP 10.5.49.46:59034->17.133.244.105:imaps (ESTABLISHED) Notes 299 jurandirpap 44u IPv4 0x627a0e3535e47a91 0t0 TCP 10.5.49.46:59034->17.133.244.105:imaps (ESTABLISHED) cloudd 383 jurandirpap 11u IPv4 0x627a0e3537832389 0t0 TCP 10.5.49.46:61639->17.248.137.212:https (ESTABLISHED) cloudd 383 jurandirpap 42u IPv4 0x627a0e3542ce4fa9 0t0 TCP 10.5.49.46:61629->17.248.184.41:https (ESTABLISHED) cloudd 383 jurandirpap 48u IPv4 0x627a0e353794a8a1 0t0 TCP 10.5.49.46:61640->17.248.137.212:https (ESTABLISHED) iTunes 62480 jurandirpap 29u IPv4 0x627a0e3537833579 0t0 TCP *:daap (LISTEN) iTunes 62480 jurandirpap 30u IPv6 0x627a0e3537809131 0t0 TCP *:daap (LISTEN) --------------- sudo lsof -i -P | grep -i "listen" Password: mtmfs 93 root 3u IPv4 0x627a0e352df29389 0t0 TCP localhost:49152 (LISTEN) mtmfs 93 root 5u IPv4 0x627a0e352df29c81 0t0 TCP localhost:49153 (LISTEN) iTunes 62480 jurandirpap 29u IPv4 0x627a0e3537833579 0t0 TCP *:3689 (LISTEN) iTunes 62480 jurandirpap 30u IPv6 0x627a0e3537809131 0t0 TCP *:3689 (LISTEN) SophosWeb 62634 _sophos 6u IPv4 0x627a0e3537bfd579 0t0 TCP localhost:61418 (LISTEN) --------------- lsof -Pn -i4 | grep ESTABLISHED Google 289 jurandirpap 100u IPv4 0x627a0e3537d47fa9 0t0 TCP 127.0.0.1:61657->127.0.0.1:61418 (ESTABLISHED) Google 289 jurandirpap 107u IPv4 0x627a0e3537a4c579 0t0 TCP 127.0.0.1:61693->127.0.0.1:61418 (ESTABLISHED) Google 289 jurandirpap 110u IPv4 0x627a0e3543d35fa9 0t0 TCP 127.0.0.1:61625->127.0.0.1:61418 (ESTABLISHED) Google 289 jurandirpap 145u IPv4 0x627a0e3537a4b389 0t0 TCP 127.0.0.1:61542->127.0.0.1:61418 (ESTABLISHED) Google 289 jurandirpap 149u IPv4 0x627a0e353794b199 0t0 TCP 127.0.0.1:61447->127.0.0.1:61418 (ESTABLISHED) Google 289 jurandirpap 151u IPv4 0x627a0e3535f20579 0t0 TCP 127.0.0.1:61729->127.0.0.1:61418 (ESTABLISHED) Google 289 jurandirpap 152u IPv4 0x627a0e3537ccda91 0t0 TCP 127.0.0.1:61741->127.0.0.1:61418 (ESTABLISHED) Google 289 jurandirpap 159u IPv4 0x627a0e35382ac579 0t0 TCP 127.0.0.1:61707->127.0.0.1:61418 (ESTABLISHED) Google 289 jurandirpap 172u IPv4 0x627a0e3537b7f199 0t0 TCP 127.0.0.1:61419->127.0.0.1:61418 (ESTABLISHED) Google 289 jurandirpap 183u IPv4 0x627a0e3535e54389 0t0 TCP 127.0.0.1:61655->127.0.0.1:61418 (ESTABLISHED) Google 289 jurandirpap 184u IPv4 0x627a0e3535fd4389 0t0 TCP 127.0.0.1:61656->127.0.0.1:61418 (ESTABLISHED) Google 289 jurandirpap 188u IPv4 0x627a0e35382aaa91 0t0 TCP 127.0.0.1:61665->127.0.0.1:61418 (ESTABLISHED) Google 289 jurandirpap 189u IPv4 0x627a0e3544ca6a91 0t0 TCP 127.0.0.1:61666->127.0.0.1:61418 (ESTABLISHED) Google 289 jurandirpap 190u IPv4 0x627a0e3535e4cc81 0t0 TCP 127.0.0.1:61442->127.0.0.1:61418 (ESTABLISHED) Google 289 jurandirpap 191u IPv4 0x627a0e3535e41579 0t0 TCP 127.0.0.1:61667->127.0.0.1:61418 (ESTABLISHED) Google 289 jurandirpap 198u IPv4 0x627a0e353784aa91 0t0 TCP 127.0.0.1:61676->127.0.0.1:61418 (ESTABLISHED) Google 289 jurandirpap 200u IPv4 0x627a0e3542d1ca91 0t0 TCP 127.0.0.1:61545->127.0.0.1:61418 (ESTABLISHED) Google 289 jurandirpap 201u IPv4 0x627a0e353783b389 0t0 TCP 127.0.0.1:61679->127.0.0.1:61418 (ESTABLISHED) Google 289 jurandirpap 202u IPv4 0x627a0e353783aa91 0t0 TCP 127.0.0.1:61680->127.0.0.1:61418 (ESTABLISHED) Google 289 jurandirpap 204u IPv4 0x627a0e3535fd28a1 0t0 TCP 127.0.0.1:61567->127.0.0.1:61418 (ESTABLISHED) Google 289 jurandirpap 207u IPv4 0x627a0e3535e4c389 0t0 TCP 127.0.0.1:61696->127.0.0.1:61418 (ESTABLISHED) Google 289 jurandirpap 208u IPv4 0x627a0e3537b94c81 0t0 TCP 127.0.0.1:61712->127.0.0.1:61418 (ESTABLISHED) Google 289 jurandirpap 209u IPv4 0x627a0e3537b91fa9 0t0 TCP 127.0.0.1:61713->127.0.0.1:61418 (ESTABLISHED) Google 289 jurandirpap 213u IPv4 0x627a0e353794cc81 0t0 TCP 127.0.0.1:61721->127.0.0.1:61418 (ESTABLISHED) Google 289 jurandirpap 214u IPv4 0x627a0e3536002a91 0t0 TCP 127.0.0.1:61636->127.0.0.1:61418 (ESTABLISHED) Google 289 jurandirpap 215u IPv4 0x627a0e353794ba91 0t0 TCP 127.0.0.1:61722->127.0.0.1:61418 (ESTABLISHED) Google 289 jurandirpap 220u IPv4 0x627a0e35379d5389 0t0 TCP 127.0.0.1:61471->127.0.0.1:61418 (ESTABLISHED) Notes 299 jurandirpap 20u IPv4 0x627a0e35379b4199 0t0 TCP 10.5.49.46:63206->17.133.244.105:993 (ESTABLISHED) Notes 299 jurandirpap 40u IPv4 0x627a0e3535e47a91 0t0 TCP 10.5.49.46:59034->17.133.244.105:993 (ESTABLISHED) Notes 299 jurandirpap 44u IPv4 0x627a0e3535e47a91 0t0 TCP 10.5.49.46:59034->17.133.244.105:993 (ESTABLISHED) cloudd 383 jurandirpap 42u IPv4 0x627a0e3542ce4fa9 0t0 TCP 10.5.49.46:61629->17.248.184.41:443 (ESTABLISHED) --------------- lsof -i -sTCP:LISTEN COMMAND PID USER FD TYPE DEVICE SIZE/OFF NODE NAME loginwind 115 jurandirpap 9u IPv4 0x627a0e352bf4c591 0t0 UDP *:* UserEvent 278 jurandirpap 5u IPv4 0x627a0e352bf4c7f1 0t0 UDP *:* sharingd 287 jurandirpap 4u IPv4 0x627a0e352bf4be71 0t0 UDP *:* sharingd 287 jurandirpap 8u IPv4 0x627a0e352bf4c0d1 0t0 UDP *:* sharingd 287 jurandirpap 9u IPv4 0x627a0e352bf4add1 0t0 UDP *:* sharingd 287 jurandirpap 18u IPv4 0x627a0e352d837b71 0t0 UDP *:* Google 289 jurandirpap 50u IPv4 0x627a0e352d838751 0t0 UDP *:* identitys 298 jurandirpap 20u IPv4 0x627a0e352d835c91 0t0 UDP *:* SystemUIS 341 jurandirpap 5u IPv4 0x627a0e352d838e71 0t0 UDP *:* SystemUIS 341 jurandirpap 8u IPv4 0x627a0e352d8390d1 0t0 UDP *:57013 SystemUIS 341 jurandirpap 9u IPv4 0x627a0e352d839331 0t0 UDP *:* assistant 413 jurandirpap 23u IPv4 0x627a0e352d3dd571 0t0 UDP *:* WiFiProxy 466 jurandirpap 5u IPv4 0x627a0e352d3def91 0t0 UDP *:* WiFiAgent 559 jurandirpap 5u IPv4 0x627a0e352bf4e6d1 0t0 UDP *:* iTunes 62480 jurandirpap 29u IPv4 0x627a0e3537833579 0t0 TCP *:daap (LISTEN) iTunes 62480 jurandirpap 30u IPv6 0x627a0e3537809131 0t0 TCP *:daap (LISTEN) --------------- sudo lsof -n -i | grep 383 cloudd 383 jurandirpap 11u IPv4 0x627a0e3537a48579 0t0 TCP 10.5.49.46:61812->17.248.137.205:https (ESTABLISHED) cloudd 383 jurandirpap 22u IPv4 0x627a0e352df2a579 0t0 TCP 10.5.49.46:61813->17.248.137.205:https (ESTABLISHED) cloudd 383 jurandirpap 42u IPv4 0x627a0e3542ce4fa9 0t0 TCP 10.5.49.46:61629->17.248.184.41:https (ESTABLISHED) --------------- sudo lsof -iTCP -sTCP:LISTEN -P -n COMMAND PID USER FD TYPE DEVICE SIZE/OFF NODE NAME mtmfs 93 root 3u IPv4 0x627a0e352df29389 0t0 TCP 127.0.0.1:49152 (LISTEN) mtmfs 93 root 5u IPv4 0x627a0e352df29c81 0t0 TCP 127.0.0.1:49153 (LISTEN) iTunes 62480 jurandirpap 29u IPv4 0x627a0e3537833579 0t0 TCP *:3689 (LISTEN) iTunes 62480 jurandirpap 30u IPv6 0x627a0e3537809131 0t0 TCP *:3689 (LISTEN) SophosWeb 62634 _sophos 6u IPv4 0x627a0e3537bfd579 0t0 TCP 127.0.0.1:61418 (LISTEN) --------------- sudo lsof -iUDP -P -n | egrep -v '(127|::1)' COMMAND PID USER FD TYPE DEVICE SIZE/OFF NODE NAME launchd 1 root 33u IPv4 0x627a0e352bf4b9b1 0t0 UDP *:138 launchd 1 root 35u IPv4 0x627a0e352bf4bc11 0t0 UDP *:137 UserEvent 53 root 125u IPv4 0x627a0e352d3e04f1 0t0 UDP *:* configd 64 root 8u IPv4 0x627a0e352bf4ccb1 0t0 UDP *:* configd 64 root 9u IPv4 0x627a0e352bf49f91 0t0 UDP *:* configd 64 root 10u IPv4 0x627a0e352bf49d31 0t0 UDP *:* airportd 76 root 10u IPv6 0x627a0e352d836871 0t0 UDP *:* airportd 76 root 20u IPv4 0x627a0e352d839f11 0t0 UDP *:* airportd 76 root 22u IPv4 0x627a0e352d8357d1 0t0 UDP *:* airportd 76 root 24u IPv4 0x627a0e352d83b6d1 0t0 UDP *:* airportd 76 root 25u IPv4 0x627a0e352d83ad51 0t0 UDP *:* airportd 76 root 26u IPv4 0x627a0e352d3df911 0t0 UDP *:* airportd 76 root 28u IPv4 0x627a0e352d3df6b1 0t0 UDP *:* locationd 105 _locationd 5u IPv4 0x627a0e352d837451 0t0 UDP *:* blued 109 root 3u IPv4 0x627a0e352d838291 0t0 UDP *:* loginwind 115 jurandirpap 9u IPv4 0x627a0e352bf4c591 0t0 UDP *:* AirPlayXP 121 root 3u IPv4 0x627a0e352d3dfb71 0t0 UDP *:* AirPlayXP 121 root 5u IPv4 0x627a0e352d838031 0t0 UDP *:* AirPlayXP 121 root 9u IPv4 0x627a0e352bf48ef1 0t0 UDP *:* mDNSRespo 160 _mdnsresponder 7u IPv4 0x627a0e352d8389b1 0t0 UDP *:5353 mDNSRespo 160 _mdnsresponder 8u IPv6 0x627a0e352d838c11 0t0 UDP *:5353 mDNSRespo 160 _mdnsresponder 36u IPv4 0x627a0e352bf48311 0t0 UDP *:49896 mDNSRespo 160 _mdnsresponder 37u IPv6 0x627a0e352bf480b1 0t0 UDP *:49896 mDNSRespo 160 _mdnsresponder 38u IPv4 0x627a0e352bf47e51 0t0 UDP *:58432 mDNSRespo 160 _mdnsresponder 39u IPv6 0x627a0e352bf47bf1 0t0 UDP *:58432 mDNSRespo 160 _mdnsresponder 40u IPv4 0x627a0e352d834e51 0t0 UDP *:50406 mDNSRespo 160 _mdnsresponder 42u IPv6 0x627a0e352d837911 0t0 UDP *:50406 mDNSRespo 160 _mdnsresponder 44u IPv4 0x627a0e352bf48a31 0t0 UDP *:53481 mDNSRespo 160 _mdnsresponder 45u IPv6 0x627a0e352bf48571 0t0 UDP *:53481 mDNSRespo 160 _mdnsresponder 46u IPv4 0x627a0e352bf4daf1 0t0 UDP *:60358 mDNSRespo 160 _mdnsresponder 47u IPv6 0x627a0e352bf4d171 0t0 UDP *:60358 mDNSRespo 160 _mdnsresponder 48u IPv4 0x627a0e352bf4a911 0t0 UDP *:53939 mDNSRespo 160 _mdnsresponder 49u IPv6 0x627a0e352bf48c91 0t0 UDP *:53939 mDNSRespo 160 _mdnsresponder 50u IPv4 0x627a0e352bf4d891 0t0 UDP *:62195 mDNSRespo 160 _mdnsresponder 51u IPv6 0x627a0e352bf4a6b1 0t0 UDP *:62195 mDNSRespo 160 _mdnsresponder 52u IPv4 0x627a0e352bf4b031 0t0 UDP *:50356 mDNSRespo 160 _mdnsresponder 53u IPv6 0x627a0e352bf4ab71 0t0 UDP *:50356 mDNSRespo 160 _mdnsresponder 54u IPv4 0x627a0e352bf4e471 0t0 UDP *:49857 mDNSRespo 160 _mdnsresponder 55u IPv6 0x627a0e352bf49611 0t0 UDP *:49857 symptomsd 274 _networkd 20u IPv4 0x627a0e352bf4b4f1 0t0 UDP *:* UserEvent 278 jurandirpap 5u IPv4 0x627a0e352bf4c7f1 0t0 UDP *:* sharingd 287 jurandirpap 4u IPv4 0x627a0e352bf4be71 0t0 UDP *:* sharingd 287 jurandirpap 8u IPv4 0x627a0e352bf4c0d1 0t0 UDP *:* sharingd 287 jurandirpap 9u IPv4 0x627a0e352bf4add1 0t0 UDP *:* sharingd 287 jurandirpap 18u IPv4 0x627a0e352d837b71 0t0 UDP *:* Google 289 jurandirpap 50u IPv4 0x627a0e352d838751 0t0 UDP *:* identitys 298 jurandirpap 20u IPv4 0x627a0e352d835c91 0t0 UDP *:* SystemUIS 341 jurandirpap 5u IPv4 0x627a0e352d838e71 0t0 UDP *:* SystemUIS 341 jurandirpap 8u IPv4 0x627a0e352d8390d1 0t0 UDP *:57013 SystemUIS 341 jurandirpap 9u IPv4 0x627a0e352d839331 0t0 UDP *:* assistant 413 jurandirpap 23u IPv4 0x627a0e352d3dd571 0t0 UDP *:* WiFiProxy 466 jurandirpap 5u IPv4 0x627a0e352d3def91 0t0 UDP *:* SophosSXL 513 root 9u IPv4 0x627a0e352d835ef1 0t0 UDP *:51239 SophosSXL 513 root 10u IPv6 0x627a0e352d83a171 0t0 UDP *:51240 WiFiAgent 559 jurandirpap 5u IPv4 0x627a0e352bf4e6d1 0t0 UDP *:* ntpd 585 root 20u IPv6 0x627a0e352d3dfdd1 0t0 UDP *:123 ntpd 585 root 21u IPv4 0x627a0e352d3ded31 0t0 UDP *:123 ntpd 585 root 26u IPv4 0x627a0e352bf493b1 0t0 UDP 10.5.49.46:123 ntpd 585 root 27u IPv6 0x627a0e352d3e1f11 0t0 UDP [fe80:a::93da:150f:48fd:6a9d]:123 ntpd 585 root 28u IPv4 0x627a0e352d3e2171 0t0 UDP 172.16.149.1:123 ntpd 585 root 29u IPv4 0x627a0e352d3dd7d1 0t0 UDP 192.168.181.1:123 wifiveloc 608 root 3u IPv4 0x627a0e352d3df1f1 0t0 UDP *:* SophosSca 21080 _sophos 62u IPv4 0x627a0e352d8350b1 0t0 UDP *:63981 SophosSca 21080 _sophos 112u IPv4 0x627a0e352d83afb1 0t0 UDP *:63416 SophosSca 21080 _sophos 148u IPv4 0x627a0e352d836151 0t0 UDP *:50537 netbiosd 62437 _netbios 3u IPv4 0x627a0e352bf4bc11 0t0 UDP *:137 netbiosd 62437 _netbios 4u IPv4 0x627a0e352bf4b9b1 0t0 UDP *:138 --------------- lsof -i -P | grep -i "listen" iTunes 62480 jurandirpap 29u IPv4 0x627a0e3537833579 0t0 TCP *:3689 (LISTEN) iTunes 62480 jurandirpap 30u IPv6 0x627a0e3537809131 0t0 TCP *:3689 (LISTEN) --------------- lsof -i | grep -E "(LISTEN|ESTABLISHED)" --------------- sudo lsof -i -n -P | grep TCP | grep ESTABLISHED | wc -l 127 --------------- lsof -i | grep -E "(LISTEN|ESTABLISHED)" | awk '{print $1, $8, $9}' Google TCP localhost:62552->localhost:61418 Google TCP localhost:62456->localhost:61418 Google TCP localhost:62407->localhost:61418 Google TCP localhost:62432->localhost:61418 Google TCP localhost:61962->localhost:61418 Google TCP localhost:62205->localhost:61418 Google TCP localhost:62442->localhost:61418 Google TCP localhost:62508->localhost:61418 Google TCP localhost:62414->localhost:61418 Google TCP localhost:62218->localhost:61418 Google TCP localhost:62392->localhost:61418 Google TCP localhost:62378->localhost:61418 Google TCP localhost:62410->localhost:61418 Google TCP localhost:62475->localhost:61418 Google TCP localhost:62470->localhost:61418 Google TCP localhost:62250->localhost:61418 Google TCP localhost:62286->localhost:61418 Google TCP localhost:62464->localhost:61418 Google TCP localhost:62416->localhost:61418 Google TCP localhost:62236->localhost:61418 Google TCP localhost:62280->localhost:61418 Google TCP localhost:62420->localhost:61418 Google TCP localhost:62424->localhost:61418 Google TCP localhost:62364->localhost:61418 Google TCP localhost:62490->localhost:61418 Google TCP localhost:62482->localhost:61418 Google TCP localhost:62538->localhost:61418 Google TCP localhost:61471->localhost:61418 Google TCP localhost:62535->localhost:61418 Google TCP localhost:62500->localhost:61418 Google TCP localhost:62524->localhost:61418 Google TCP localhost:62418->localhost:61418 Google TCP localhost:62510->localhost:61418 Notes TCP 10.5.49.46:63206->17.133.244.105:imaps Notes TCP 10.0.0.101:61960->17.133.244.105:imaps Notes TCP 10.0.0.101:61960->17.133.244.105:imaps cloudd TCP 10.0.0.101:62548->17.248.184.25:https cloudd TCP 10.0.0.101:62549->17.248.184.25:https cloudd TCP 10.0.0.101:62551->17.248.184.56:https cloudd TCP 10.0.0.101:62550->17.248.184.40:https iTunes TCP *:daap iTunes TCP *:daap --------------- sudo lsof -iTCP -sTCP:LISTEN -n -P COMMAND PID USER FD TYPE DEVICE SIZE/OFF NODE NAME mtmfs 93 root 3u IPv4 0x627a0e352df29389 0t0 TCP 127.0.0.1:49152 (LISTEN) mtmfs 93 root 5u IPv4 0x627a0e352df29c81 0t0 TCP 127.0.0.1:49153 (LISTEN) iTunes 62480 jurandirpap 29u IPv4 0x627a0e3537833579 0t0 TCP *:3689 (LISTEN) iTunes 62480 jurandirpap 30u IPv6 0x627a0e3537809131 0t0 TCP *:3689 (LISTEN) SophosWeb 62634 _sophos 6u IPv4 0x627a0e3537bfd579 0t0 TCP 127.0.0.1:61418 (LISTEN) --------------- lsof -n -i | awk '{ print $1,$9; }' | sort -u COMMAND NAME Google *:* Google 127.0.0.1:61471->127.0.0.1:61418 Google 127.0.0.1:61962->127.0.0.1:61418 Google 127.0.0.1:62035->127.0.0.1:61418 Google 127.0.0.1:62046->127.0.0.1:61418 Google 127.0.0.1:62075->127.0.0.1:61418 Google 127.0.0.1:62076->127.0.0.1:61418 Google 127.0.0.1:62077->127.0.0.1:61418 Google 127.0.0.1:62078->127.0.0.1:61418 Google 127.0.0.1:62079->127.0.0.1:61418 Google 127.0.0.1:62080->127.0.0.1:61418 Google 127.0.0.1:62123->127.0.0.1:61418 Google 127.0.0.1:62192->127.0.0.1:61418 Google 127.0.0.1:62194->127.0.0.1:61418 Notes 10.0.0.101:61960->17.133.244.105:imaps Notes 10.5.49.46:63206->17.133.244.105:imaps SystemUIS *:* SystemUIS *:57013 UserEvent *:* WiFiAgent *:* WiFiProxy *:* assistant *:* cloudd 10.0.0.101:62189->17.248.184.56:https iTunes *:daap identitys *:* loginwind *:* sharingd *:* --------------- lsof -P -i -n | cut -f 1 -d " " | uniq | tail -n +2 loginwind UserEvent Notes sharingd nsurlsess identitys SystemUIS WiFiProxy cloudd WiFiAgent --------------- lsof -P -i -n COMMAND PID USER FD TYPE DEVICE SIZE/OFF NODE NAME loginwind 115 jurandirpap 9u IPv4 0xe593532aedfd367 0t0 UDP *:* UserEvent 294 jurandirpap 5u IPv4 0xe593532a4f88047 0t0 UDP *:* Notes 308 jurandirpap 32u IPv4 0xe593532b27fff3f 0t0 TCP 10.0.0.101:51707->17.133.244.105:993 (ESTABLISHED) Notes 308 jurandirpap 39u IPv4 0xe593532b27fff3f 0t0 TCP 10.0.0.101:51707->17.133.244.105:993 (ESTABLISHED) sharingd 316 jurandirpap 4u IPv4 0xe593532a37a3187 0t0 UDP *:* sharingd 316 jurandirpap 8u IPv4 0xe593532a37a2cc7 0t0 UDP *:* sharingd 316 jurandirpap 9u IPv4 0xe593532a37a2807 0t0 UDP *:* sharingd 316 jurandirpap 11u IPv4 0xe593532aeb76fc7 0t0 UDP *:* identitys 322 jurandirpap 20u IPv4 0xe593532a4f8c067 0t0 UDP *:* SystemUIS 334 jurandirpap 5u IPv4 0xe593532a37a2a67 0t0 UDP *:* SystemUIS 334 jurandirpap 8u IPv4 0xe593532a37a5067 0t0 UDP *:63991 SystemUIS 334 jurandirpap 9u IPv4 0xe593532a37a25a7 0t0 UDP *:* WiFiProxy 434 jurandirpap 5u IPv4 0xe593532aeb7a1a7 0t0 UDP *:* cloudd 452 jurandirpap 31u IPv4 0xe593532b27f6837 0t0 TCP 10.0.0.101:51710->17.248.184.75:443 (ESTABLISHED) cloudd 452 jurandirpap 40u IPv4 0xe593532b1f7612f 0t0 TCP 10.0.0.101:51711->17.248.184.23:443 (ESTABLISHED) cloudd 452 jurandirpap 42u IPv4 0xe593532b27f5f3f 0t0 TCP 10.0.0.101:51712->17.248.137.73:443 (ESTABLISHED) WiFiAgent 558 jurandirpap 5u IPv4 0xe593532aeb77947 0t0 UDP *:* --------------- lsof | awk '{print $1}' | uniq -c | sort -rn | head 343 Google 309 Google 175 Google 117 UserEvent 104 Notes 101 VMware 94 System 75 bird 68 Google 67 Terminal --------------- networksetup -listallnetworkservices An asterisk (*) denotes that a network service is disabled. Ethernet FireWire Wi-Fi Bluetooth PAN Thunderbolt Bridge --------------- find . -size 20 ! -type d -exec cksum {} \; | tee /tmp/f.tmp | cut -f 1,2 -d ‘ ‘ | sort | uniq -d | grep -hif – /tmp/f.tmp > duplicates.txt --------------- open -a "Safari" http://www.jurandir1967.co.uk --------------- http://www.westwind.com/reference/OS-X/background-processes.html top -o rsize -s 2 top -F -R -o cpu top -o cpu top -l 1 -s 0 | awk ' /Processes/ || /PhysMem/ || /Load Avg/{print}' Processes: 268 total, 3 running, 11 stuck, 254 sleeping, 1362 threads Load Avg: 1.59, 1.58, 1.68 PhysMem: 14G used (2124M wired), 1774M unused. top -l 1 -s 0 | grep PhysMem | sed 's/, /\n /g' PhysMem: 10G used (2017M wired)n 6000M unused. --------------- ps aux |awk '{$1} {++P[$1]} END {for(a in P) if (a !="USER") print a,P[a]}' root 114 _usbmuxd 1 _nsurlstoraged 1 _assetcache 1 _locationd 1 _gamecontrollerd 1 _mdnsresponder 1 _sophos 2 _hidd 1 _spotlight 7 _appleevents 1 _iconservices 1 _coreaudiod 2 _captiveagent 1 _windowserver 1 _networkd 1 jurandirpap 156 _distnote 1 _ctkd 1 _nsurlsessiond 1 _softwareupdate 1 --------------- ls -F $1 | grep \/ | sed -e 's/\/$/4/g' Applications4 Desktop4 Documents4 Downloads4 Dropbox4 Library4 Movies4 Music4 Pictures4 Public4 VirtualBox VMs4 dwhelper4 --------------- egrep -i --color 'err|error|warn|crit|dhcp' /var/log/system.log tail /var/log/system.log tail -f /var/log/mail.log --------------- top -l 1 | grep -E "^CPU|^Phys" CPU usage: 7.69% user, 26.92% sys, 65.38% idle PhysMem: 15G used (1846M wired), 1043M unused. --------------- uptime 23:15 up 1:47, 2 users, load averages: 1.62 1.88 1.89 --------------- PS1="\[\033[2;30m\][\[\033[3;34m\]\u\[\033[1;30m\]@\[\033[0;32m\]\h\[\033[1;30m\]] " [jurandirap@jura] lpinfo -v network https network http network ipp network ipps network lpd network smb network socket direct epsonfax --------------- for D in *; do echo $D; find $D -type f | wc -l; done Applications 39 Desktop 2597 Documents 42185 Downloads 4455 Dropbox 1285 Library 103400 Movies 30 Music 2329 Pictures 10763 Public 6 VirtualBox VMs find: VirtualBox: No such file or directory find: VMs: No such file or directory 0 dwhelper 0 --------------- grep 'error' /var/log/system.log | awk '{ print $3, $4, $5 }' | uniq -c | sort -nr 3 16:36:06 jura GoogleSoftwareUpdateAgent[7599]: 3 16:35:59 jura GoogleSoftwareUpdateDaemon[7600]: 2 16:36:01 jura GoogleSoftwareUpdateDaemon[7600]: 2 10:02:49 jura GoogleSoftwareUpdateAgent[6378]: 2 10:02:42 jura GoogleSoftwareUpdateDaemon[6379]: 2 2 1 16:36:02 jura GoogleSoftwareUpdateAgent[7599]: 1 16:36:01 jura GoogleSoftwareUpdateDaemon[7600]: 1 16:36:01 jura GoogleSoftwareUpdateAgent[7599]: 1 16:36:00 jura GoogleSoftwareUpdateDaemon[7600]: 1 16:35:59 jura GoogleSoftwareUpdateAgent[7599]: 1 16:35:58 jura GoogleSoftwareUpdateDaemon[7600]: 1 16:18:55 jura Mail[3150]: 1 13:36:45 jura Mail[3150]: 1 10:02:48 jura GoogleSoftwareUpdateAgent[6378]: 1 10:02:45 jura GoogleSoftwareUpdateDaemon[6379]: 1 10:02:45 jura GoogleSoftwareUpdateAgent[6378]: 1 10:02:45 jura GoogleSoftwareUpdateAgent[6378]: 1 10:02:44 jura GoogleSoftwareUpdateDaemon[6379]: 1 10:02:44 jura GoogleSoftwareUpdateDaemon[6379]: 1 10:02:43 jura GoogleSoftwareUpdateDaemon[6379]: 1 10:02:42 jura GoogleSoftwareUpdateAgent[6378]: 1 10:02:41 jura GoogleSoftwareUpdateDaemon[6379]: 1 10:02:41 jura GoogleSoftwareUpdateDaemon[6379]: 1 "+[KSCodeSigningVerification verifyBundle:applicationId:error:]"; 1 "+[KSCodeSigningVerification verifyBundle:applicationId:error:]"; --------------- Compactando arquivos mkdir test cd test ls -l total 24 -rw-r--r-- 1 jurandirpap staff 24 Jan 8 18:11 arq3.txt -rw-r--r-- 1 jurandirpap staff 848 Jan 8 18:09 arquivo1.txt -rw-r--r-- 1 jurandirpap staff 1788 Jan 8 18:11 file2.txt --------------- zip -r up.zip * adding: arq3.txt (deflated 8%) adding: arquivo1.txt (deflated 45%) adding: file2.txt (deflated 58%) jura:test jurandirap$ ls -l total 32 -rw-r--r-- 1 jurandirpap staff 24 Jan 8 18:11 arq3.txt -rw-r--r-- 1 jurandirpap staff 848 Jan 8 18:09 arquivo1.txt -rw-r--r-- 1 jurandirpap staff 1788 Jan 8 18:11 file2.txt -rw-r--r-- 1 jurandirpap staff 1706 Jan 8 18:14 up.zip --------------- ls -l total 32 -rw-r--r-- 1 jurandirpap staff 24 Jan 8 18:11 arq3.txt -rw-r--r-- 1 jurandirpap staff 848 Jan 8 18:09 arquivo1.txt -rw-r--r-- 1 jurandirpap staff 1788 Jan 8 18:11 file2.txt -rw-r--r-- 1 jurandirpap staff 1706 Jan 8 18:14 up.zip --------------- Copiando arquivo e criando um segundo arquivo. jura:test jurandirpap$ cp up.zip up2.zip jura:test jurandirpap$ ls -l total 40 -rw-r--r-- 1 jurandirpap staff 24 Jan 8 18:11 arq3.txt -rw-r--r-- 1 jurandirpap staff 848 Jan 8 18:09 arquivo1.txt -rw-r--r-- 1 jurandirpap staff 1788 Jan 8 18:11 file2.txt -rw-r--r-- 1 jurandirpap staff 1706 Jan 8 18:14 up.zip -rw-r--r-- 1 jurandirpap staff 1706 Jan 8 18:17 up2.zip --------------- Renomeando arquivo. jura:test jurandirpap$ mv up2.zip up3.zip jura:test jurandirpap$ ls -l total 40 -rw-r--r-- 1 jurandirpap staff 24 Jan 8 18:11 arq3.txt -rw-r--r-- 1 jurandirpap staff 848 Jan 8 18:09 arquivo1.txt -rw-r--r-- 1 jurandirpap staff 1788 Jan 8 18:11 file2.txt -rw-r--r-- 1 jurandirpap staff 1706 Jan 8 18:14 up.zip -rw-r--r-- 1 jurandirpap staff 1706 Jan 8 18:17 up3.zip --------------- Apagando arquivo. jura:test jurandirpap$ rm up3.zip jura:test jurandirpap$ ls -l total 32 -rw-r--r-- 1 jurandirpap staff 24 Jan 8 18:11 arq3.txt -rw-r--r-- 1 jurandirpap staff 848 Jan 8 18:09 arquivo1.txt -rw-r--r-- 1 jurandirpap staff 1788 Jan 8 18:11 file2.txt -rw-r--r-- 1 jurandirpap staff 1706 Jan 8 18:14 up.zip --------------- Apagando todos os arquivos .txt rm *.txt ls -l total 8 -rw-r--r-- 1 jurandirpap staff 1706 Jan 8 18:14 up.zip --------------- Descompactando arquivos. jura:test jurandirpap$ unzip up.zip Archive: up.zip inflating: arq3.txt inflating: arquivo1.txt inflating: file2.txt jura:test jurandirpap$ ls -l total 32 -rw-r--r-- 1 jurandirpap staff 24 Jan 8 18:11 arq3.txt -rw-r--r-- 1 jurandirpap staff 848 Jan 8 18:09 arquivo1.txt -rw-r--r-- 1 jurandirpap staff 1788 Jan 8 18:11 file2.txt -rw-r--r-- 1 jurandirpap staff 1706 Jan 8 18:14 up.zip --------------- cd Apagando todos os arquivos e subdiretórios ( se houver ) e o diretório test rm -rf test/ --------------- http://support.apple.com/kb/HT1343?viewlocale=en_US Show emoticons control + cmd + space --------------- Find files or as a calculator ( 5 + 5 ) cmd + space --------------- To get letters with accent, just keep pressed the letter you need, like è, ó ... fn + delete = delete from left to the right --------------- Log out to password screen cmd - shift - option - q --------------- Apple TV fn - ctrl - f8 --------------- Capture screen of a specific area. cmd - shift - 4 --------------- Capture the screen to a file. cmd - shift - 3 --------------- Add a Message to the Login Window sudo defaults write /Library/Preferences/com.apple.loginwindow LoginwindowText "Hi, I am Mac" To remove sudo defaults write /Library/Preferences/com.apple.loginwindow LoginwindowText "" --------------- Criando um arquivo em na linguagem Python Digite no terminal o comando abaixo, selecione o codigo fonte e cole, salve o arquivo com "ctrl d" cat > memr.py #!/usr/bin/python import subprocess import re # Get process info ps = subprocess.Popen(['ps', '-caxm', '-orss,comm'], stdout=subprocess.PIPE).communicate()[0] vm = subprocess.Popen(['vm_stat'], stdout=subprocess.PIPE).communicate()[0] # Iterate processes processLines = ps.split('\n') sep = re.compile('[\s]+') rssTotal = 0 # kB for row in range(1,len(processLines)): rowText = processLines[row].strip() rowElements = sep.split(rowText) try: rss = float(rowElements[0]) * 1024 except: rss = 0 # ignore... rssTotal += rss # Process vm_stat vmLines = vm.split('\n') sep = re.compile(':[\s]+') vmStats = {} for row in range(1,len(vmLines)-2): rowText = vmLines[row].strip() rowElements = sep.split(rowText) vmStats[(rowElements[0])] = int(rowElements[1].strip('\.')) * 4096 print 'Wired Memory:\t\t%d MB' % ( vmStats["Pages wired down"]/1024/1024 ) print 'Active Memory:\t\t%d MB' % ( vmStats["Pages active"]/1024/1024 ) print 'Inactive Memory:\t%d MB' % ( vmStats["Pages inactive"]/1024/1024 ) print 'Free Memory:\t\t%d MB' % ( vmStats["Pages free"]/1024/1024 ) print 'Real Mem Total (ps):\t%.3f MB' % ( rssTotal/1024/1024 ) ( ctrl + d = salvar e sair do arquivo ) Executando o script acima: python memr.py Wired Memory: 2014 MB Active Memory: 7522 MB Inactive Memory: 869 MB Free Memory: 5335 MB Real Mem Total (ps): 10037.289 MB --------------- Sobre MacPorts https://www.macports.org/ports.php?by=category&substr=
Swift
Swift é uma linguagem de programação desenvolvida pela Apple para desenvolvimento no iOS, macOS, watchOS, tvOS e Linux. Swift foi desenvolvida para manter compatibilidade com a API Cocoa e com código existente em Objective-C. ... Foi anunciada na WWDC em 2014, conferência anual da Apple. Running on the terminal ============= Abra o terminal e digite: swift Welcome to Apple Swift version 4.2.1 (swiftlang-1000.0.42 clang-1000.0.45.1). Type :help for assistance. 1> print("Hello, world!") :q. ( exit swift ) ============= swift -v Apple Swift version 4.2.1 (swiftlang-1000.0.42 clang-1000.10.45.1) Target: x86_64-apple-darwin18.2.0 /Library/Developer/CommandLineTools/usr/bin/lldb "--repl=-enable-objc-interop -sdk /Library/Developer/C ommandLineTools/SDKs/MacOSX10.14.sdk -color-diagnostics" Welcome to Apple Swift version 4.2.1 (swiftlang-1000.0.42 clang-1000.0.45.1). Type :help for assistance. 1> :q ============= nano hello1.swift print("Hello, world!") ctrl + x + y swift hello1.swift Hello, world! or swiftc hello1.swift -o hello1 ./hello1 Hello, world! ============= nano test1.swift #!/usr/bin/swift let variable: String = "string" print("Test \(variable)") swift test1.swift Test string
PHP
PHP no MAC PHP (acrônimo recursivo para "PHP: Hypertext Preprocessor", originalmente Personal Home Page) é uma linguagem interpretada livre, usada originalmente apenas para o desenvolvimento de aplicações presentes e atuantes no lado do servidor, capazes de gerar conteúdo dinâmico na World Wide Web. =========== Abra o terminal e digite: php -a Interactive shell php > echo "Hi there"; Hi there php > php > quit=========== Turning on PHP Open Terminal and type sudo nano /etc/apache2/httpd.conf Ctrl+w which will bring up a search Search for php and press enter remove # to uncomment the line below. LoadModule php7_module libexec/apache2/libphp7.so Ctrl + w which will bring up a search Search for authz_core_module and press enter remove # to uncomment the line below. LoadModule authz_core_module libexec/apache2/mod_authz_core.so Press Ctrl + X + Y ( save file and exit nano ) =========== sudo apachectl restart You just turned PHP 7 on. Great work so far! =========== http://127.0.0.1/
=========== php -v PHP 7.1.19 (cli) (built: Aug 17 2018 20:10:18) ( NTS ) Copyright (c) 1997-2018 The PHP Group Zend Engine v3.1.0, Copyright (c) 1998-2018 Zend Technologies =========== httpd -v Server version: Apache/2.4.34 (Unix) Server built: Aug 17 2018 18:35:43 =========== Let’s create the folder below to keep our php files. mkdir my_php_stuff =========== Let’s create the index.php file and add 4 lines below: nano my_php_stuff/index.php ctrl + x + y ( save and exit file nano ) =========== My Mac user name: juraa.p. ( change this like - use yours ) Folder where I keep my php stuff: my_php_stuff ==== DocumentRoot "/users/juraa.p./my_php_stuff"
=========== sudo nano /etc/apache2/httpd.conf Press ctrl + w to bring up search Search for Library and press enter. You should see this:<Directory "/users/juraa.p./my_php_stuff">
ctrl + x + y ( save and exit file nano ) =========== Restart apache. sudo apachectl restart =========== Go back to Safari and refresh the localhost. http://127.0.0.1/ 
=========== tail -f /var/log/apache2/access_log 127.0.0.1 - - [18/Jan/2019:15:47:58 -0200] "-" 408 - 127.0.0.1 - - [18/Jan/2019:15:48:24 -0200] "GET / HTTP/1.1" 500 - 127.0.0.1 - - [18/Jan/2019:15:48:25 -0200] "GET / HTTP/1.1" 500 - 127.0.0.1 - - [18/Jan/2019:15:48:45 -0200] "-" 408 - 127.0.0.1 - - [18/Jan/2019:15:48:45 -0200] "-" 408 - 127.0.0.1 - - [18/Jan/2019:15:51:34 -0200] "-" 408 - 127.0.0.1 - - [18/Jan/2019:15:51:35 -0200] "-" 408 - 127.0.0.1 - - [18/Jan/2019:15:53:25 -0200] "GET / HTTP/1.1" 200 95704 127.0.0.1 - - [18/Jan/2019:15:53:25 -0200] "GET /favicon.ico HTTP/1.1" 404 209 127.0.0.1 - - [18/Jan/2019:15:53:45 -0200] "-" 408 - =========== tail /var/log/system.log Jan 18 15:51:31 MacBook-Pro-de-Jura suhelperd[547]: objc[547]: Class KeychainMasterHandler is implemented in both /usr/lib/libIASAuthReboot.dylib (0x7fffa6ef0110) and /System/Library/CoreServices/Software Update.app/Contents/Resources/suhelperd (0x102bca810). One of the two will be used. Which one is undefined. Jan 18 15:51:37 MacBook-Pro-de-Jura EmojiFunctionRowIM_Extension[440]: DEPRECATED USE in libdispatch client: dispatch source activated with no event handler set; set a breakpoint on _dispatch_bug_deprecated to debug Jan 18 15:51:54 MacBook-Pro-de-Jura loginwindow[98]: There are still active callers Jan 18 15:52:10 --- last message repeated 3 times --- Jan 18 15:52:10 MacBook-Pro-de-Jura com.apple.xpc.launchd[1] (com.apple.imfoundation.IMRemoteURLConnectionAgent): Unknown key for integer: _DirtyJetsamMemoryLimit Jan 18 15:52:56 --- last message repeated 1 time --- Jan 18 15:53:42 MacBook-Pro-de-Jura screencaptureui[589]: DEPRECATED USE in libdispatch client: dispatch source activated with no event handler set; set a breakpoint on _dispatch_bug_deprecated to debug =========== tail /var/log/apache2/error_log [Fri Jan 18 15:48:20.980278 2019] [mpm_prefork:notice] [pid 10212] AH00163: Apache/2.4.34 (Unix) PHP/7.1.19 configured -- resuming normal operations [Fri Jan 18 15:48:20.980433 2019] [core:notice] [pid 10212] AH00094: Command line: '/usr/sbin/httpd -D FOREGROUND' [Fri Jan 18 15:48:24.937849 2019] [php7:emerg] [pid 10216] [client 127.0.0.1:60834] PHP Parse error: syntax error, unexpected 'PHP' (T_STRING), expecting ',' or ';' in /users/juraa.p./my_php_stuff/index.php on line 2 [Fri Jan 18 15:48:25.777662 2019] [php7:emerg] [pid 10216] [client 127.0.0.1:60835] PHP Parse error: syntax error, unexpected 'PHP' (T_STRING), expecting ',' or ';' in /users/juraa.p./my_php_stuff/index.php on line 2 [Fri Jan 18 15:50:22.056005 2019] [mpm_prefork:notice] [pid 10212] AH00169: caught SIGTERM, shutting down =========== Installing nmap on my Mac. curl -O https://nmap.org/dist/nmap-7.70.dmg $ ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)" $ brew install nmap =========== sudo nmap -sS localhost | grep http Starting Nmap 7.70 ( https://nmap.org ) at 2019-01-18 16:00 -02 80/tcp open http =========== PHP + CSS + JavaScript nano my_php_stuff/php_js.php
ctrl + x + y ( save and exit file ) =========== http://127.0.0.1/example1.php<html> <head> <STYLE TYPE="text/css"> .html1 { background-color: black; text-align: left; color: white; width: 240px; font: bold 15pt Verdana; } .css1 { background-color: #004080; text-align: left; color: white; width: 240px; font: bold 15pt Verdana; } .css2 { background-color: green; text-align: left; color: white; width: 240px; font: bold 15pt Verdana; } .css3 { background-color: yellow; text-align: left; color: red; width: 240px; font: bold 15pt Verdana; } .big { font: bold 15pt Verdana; } </STYLE> <!-- ---------------------------- --> <SCRIPT LANGUAGE="JavaScript"> var now = new Date(); var days = new Array('Sunday','Monday','Tuesday','Wednesday','Thursday','Friday','Saturday'); var months = new Array('January','February','March','April','May','June','July','August','September','October','November','December'); var date = ((now.getDate()<10) ? "0" : "")+ now.getDate(); function fourdigits(number) { return (number < 1000) ? number + 1900 : number; } today = days[now.getDay()] + ", " + months[now.getMonth()] + " " + date + ", " + (fourdigits(now.getYear())) ; </script> <!-- ---------------------------- --> <title> PHP - CSS - JavaScript </title> </head> <body> <h1>This line is <span class='html1'> HTML </span> </h1> <p class="css1"> This line is <span class='css1'> CSS </span> </p> <script> document.write("<span class='big'> Below line is JavaScript </span> <span class='big'> - Weekday - Month - Day - Year </span>"); document.write("<br><br> <span class='css2'> JavaScript e CSS </span> <br>"); document.write(today); </script> <br><br><br> <?php echo "This line is <span class=\"css3\"> PHP + JavaScript + CSS </span> <br><br>"; $x = "PHP 1 <br>"; $y = 'PHP 2 <br><br>'; echo $x; echo "<br>"; echo $y; echo "<br>"; echo "<br>"; date_default_timezone_set('America/Sao_Paulo'); $date = date('m-d-Y H:i'); echo "<span class='css3'>".$date."</span>"; ?> </body> </html>
=========== Installing MySql https://websitebeaver.com/set-up-localhost-on-macos-high-sierra-apache-mysql-and-php-7-with-sslhttps Go to https://dev.mysql.com/downloads/mysql Scroll down until you see three download buttons and click on the one next to DMG Archive Scroll down and click No thanks, just start my download Click on the downloaded file, double click the pkg file, and go through the installation which should look like this: 
![]()
![]()
![]()
![]()
Go to System Preferences, at the bottom of the page double click on “mysql” If it is green it’s mysql it’s already running.. ps aux | grep mysql _mysql 11319 0.1 2.4 4935152 402636 ?? Ss 5:50PM 0:04.23 /usr/local/mysql/bin/mysqld --user=_mysql --basedir=/usr/local/mysql --datadir=/usr/local/mysql/data --plugin-dir=/usr/local/mysql/lib/plugin --log-error=/usr/local/mysql/data/mysqld.local.err --pid-file=/usr/local/mysql/data/mysqld.local.pid --keyring-file-data=/usr/local/mysql/keyring/keyring --early-plugin-load=keyring_file=keyring_file.so juraa.p. 11621 0.0 0.0 4268036 796 s000 S+ 6:04PM 0:00.00 grep mysql juraa.p.@MacBook-Pro-de-Jura:~/my_php_stuff$ sudo /usr/local/mysql/bin/mysql -u root -p my mac pass mysql pass Welcome to the MySQL monitor. Commands end with ; or \g. Your MySQL connection id is 51 Server version: 5.5.40-0+wheezy1 (Debian) Copyright (c) 2000, 2014, Oracle and/or its affiliates. All rights reserved. Oracle is a registered trademark of Oracle Corporation and/or its affiliates. Other names may be trademarks of their respective owners. Type 'help;' or '\h' for help. Type '\c' to clear the current input statement. mysql> show databases; +-------------------------+ | Database | +-------------------------+ | information_schema | | mysql | | performance_schema | +-------------------------+ 4 rows in set (0.00 sec) mysql> create database banco_dados; mysql> use banco_dados; Vamos criar a tabela amigos: mysql> create table amigos( id INTEGER NOT NULL PRIMARY KEY AUTOINCREMENT, nome varchar(50), endereco varchar(60), cidade varchar(40), datanasc date, primary key(codigo)); Vamos inserir alguns registros: insert into amigos values(1,'Jurandir','Rua Londres 13','Timbo','2011-1-1'); insert into amigos values(2,'Mike','Rua USA 131','Timbo','2018-11-1'); insert into amigos values(3,'Eric','Rua Italia 131','Blumenau','2017-4-1'); insert into amigos values(4,'Isa','Rua China 131','Blumenau','2018-8-1'); insert into amigos values(5,'Luisa','Rua Germany 131','Blumenau','2013-12-1'); mysql> show databases; +------------------------+ | Database | +------------------------+ | information_schema | | banco_dados | | mysql | | performance_schema | +------------------------+ mysql> use banco_dados; mysql> describe amigos; +-----------+---------------+--------+------+----------+---------+ | Field | Type | Null | Key | Default | Extra | +-----------+---------------+--------+------+----------+---------+ | codigo | int(11) | NO | PRI | NULL | | | nome | varchar(50) | NO | | NULL | | | endereco | varchar(60) | YES | | NULL | | | cidade | varchar(40) | YES | | NULL | | | datanasc | date | YES | | NULL | | +-----------+---------------+--------+------+----------+---------+ mysql> SELECT * FROM amigos; +-----------+----------+------------------+--------------+--------------+ | codigo | nome | endereco | cidade | datanasc | +-----------+----------+------------------+--------------+--------------+ | 1 | Jurandir | Rua Londres 13 | Timbo | 0000-00-00 | | 2 | Mike | Rua USA 131 | Timbo | 0000-00-00 | | 3 | Eric | Rua Italia 131 | Blumenau | 0000-00-00 | | 4 | Isabela | Rua Italia 131 | Blumenau | 0000-00-00 | | 5 | Rubia | Rua Italia 131 | Blumenau | 0000-00-00 | +-----------+----------+------------------+--------------+--------------+ mysql> SELECT * FROM amigos WHERE nome LIKE "mi%"; +--------+-------+---------------+---------+--------------+ | codigo | nome | endereco | cidade | datanasc | +--------+-------+---------------+---------+--------------+ | 2 | Mike | Rua USA 131 | Timbo | 0000-00-00 | +--------+-------+---------------+---------+--------------+ mysql> SELECT * FROM amigos WHERE cidade = "Blumenau"; +--------+---------+-----------------+------------+--------------+ | código | nome | endereco | cidade | datanasc | +--------+---------+-----------------+------------+--------------+ | 3 | Eric | Rua Italia 131 | Blumenau | 0000-00-00 | | 4 | Isabela | Rua Italia 131 | Blumenau | 0000-00-00 | +--------+----------+----------------+------------+--------------+ mysql> SELECT * FROM amigos WHERE codigo BETWEEN 1 and 2; +------------+------------+-----------------+------------+---------------+ | codigo. | nome | endereco | cidade | datanasc | +------------+------------+-----------------+------------+---------------+ | 1 | Jurandir | Rua Londres 13 | Timbo | 0000-00-00 | | 2 | Mike | Rua USA 131 | Timbo | 0000-00-00 | +------------+------------+-----------------+--------+-------------------+ mysql> UPDATE amigos SET datanasc='20101225' WHERE codigo=1; mysql> SELECT * FROM amigos; +------------+------------+----------------+------------+---------------+ | código | nome | endereco | cidade | datanasc | +------------+------------+----------------+------------+---------------+ | 1 | Jurandir | Rua Londres 13 | Timbo | 2010-12-25 | | 2 | Mike | Rua USA 131 | Timbo | 0000-00-00 | | 3 | Eric | Rua Italia 131 | Blumenau | 0000-00-00 | | 4 | Isabela | Rua Italia 131 | Blumenau | 0000-00-00 | +------------+------------+----------------+------------+---------------+ mysql> show variables like '%socket%'; +-----------------------------------------+------------------+ | Variable_name | Value | +-----------------------------------------+------------------+ | mysqlx_socket | /tmp/mysqlx.sock | | performance_schema_max_socket_classes | 10 | | performance_schema_max_socket_instances | -1 | | socket | /tmp/mysql.sock | +-----------------------------------------+------------------+ 4 rows in set (0.01 sec) mysql> select @@datadir; +------------------------+ | @@datadir | +------------------------+ | /usr/local/mysql/data/ | +------------------------+ 1 row in set (0.00 sec) mysql> show variables like "%version%"; +--------------------------+------------------------------+ | Variable_name | Value | +--------------------------+------------------------------+ | immediate_server_version | 999999 | | innodb_version | 8.0.14 | | original_server_version | 999999 | | protocol_version | 10 | | slave_type_conversions | | | tls_version | TLSv1,TLSv1.1,TLSv1.2 | | version | 8.0.14 | | version_comment | MySQL Community Server - GPL | | version_compile_machine | x86_64 | | version_compile_os | macos10.14 | | version_compile_zlib | 1.2.11 | +--------------------------+------------------------------+ 11 rows in set (0.00 sec) mysql> quit ( para sair do mysql ) ps axww | grep mysqld 97 ?? Ss 0:55.10 /usr/local/mysql/bin/mysqld --user=_mysql --basedir=/usr/local/mysql --datadir=/usr/local/mysql/data --plugin-dir=/usr/local/mysql/lib/plugin --log-error=/usr/local/mysql/data/mysqld.local.err --pid-file=/usr/local/mysql/data/mysqld.local.pid --keyring-file-data=/usr/local/mysql/keyring/keyring --early-plugin-load=keyring_file=keyring_file.so 2646 s000 S+ 0:00.00 grep mysqld apachectl configtest AH00558: httpd: Could not reliably determine the server's fully qualified domain name, using MacBook-Pro-de-Jura.local. Set the 'ServerName' directive globally to suppress this message Syntax OK Alguns comandos do mysql # drop database banco_dados; ( removendo banco de dados ) # drop table amigos; ( removendo tabela ) =========== https://support.apple.com/en-us/HT3077 sudo cp /etc/php.ini.default /etc/php.ini Password: sudo nano /etc/php.ini ctrl w - find - mysql.default_socket Edit the /etc/phi.ini config file, find the [MySQL] section, and change this line: mysql.default_socket = /var/mysql/mysql.sock To: mysql.default_socket = /tmp/mysql.sock =========== Restart mysql First stop mysql down here sudo /usr/local/mysql/support-files/mysql.server stop Shutting down MySQL .. SUCCESS! =========== sudo /usr/local/mysql/support-files/mysql.server start Starting MySQL . SUCCESS! =========== sudo /usr/local/mysql/support-files/mysql.server restart Shutting down MySQL .. SUCCESS! Starting MySQL . SUCCESS! =========== Restart Apache sudo apachectl restart =========== httpd -t -D DUMP_INCLUDES Included configuration files: (*) /private/etc/apache2/httpd.conf (539) /private/etc/apache2/extra/httpd-mpm.conf (545) /private/etc/apache2/extra/httpd-autoindex.conf (585) /private/etc/apache2/other/php7.conf AH00558: httpd: Could not reliably determine the server's fully qualified domain name, using MacBook-Pro-de-Jura.local. Set the 'ServerName' directive globally to suppress this message =========== ps -aef | grep httpd 0 12792 1 0 9:33PM ?? 0:00.26 /usr/sbin/httpd -D FOREGROUND 70 12796 12792 0 9:33PM ?? 0:00.01 /usr/sbin/httpd -D FOREGROUND 70 12798 12792 0 9:33PM ?? 0:00.00 /usr/sbin/httpd -D FOREGROUND 70 12802 12792 0 9:33PM ?? 0:00.00 /usr/sbin/httpd -D FOREGROUND 501 12854 11282 0 9:40PM ttys000 0:00.00 grep httpd =========== netstat -at | grep LISTEN | grep *.http tcp46 0 0 *.http *.* LISTEN =========== tail -f /var/log/apache2/access_log ::1 - - [14/Jan/2019:16:30:10 -0200] "GET /con2.php HTTP/1.1" 500 - ::1 - - [14/Jan/2019:16:30:17 -0200] "GET /con.php HTTP/1.1" 500 - ::1 - - [14/Jan/2019:16:30:23 -0200] "GET /c1.php HTTP/1.1" 200 14 ::1 - - [14/Jan/2019:16:30:28 -0200] "GET /c2.php HTTP/1.1" 200 29 ::1 - - [14/Jan/2019:16:30:36 -0200] "GET /c2.php%20jura HTTP/1.1" 404 209 127.0.0.1 - - [14/Jan/2019:16:31:57 -0200] "GET / HTTP/1.1" 200 95516 127.0.0.1 - - [14/Jan/2019:16:31:57 -0200] "GET /favicon.ico HTTP/1.1" 404 209 127.0.0.1 - - [14/Jan/2019:16:32:17 -0200] "-" 408 - 127.0.0.1 - - [14/Jan/2019:17:58:29 -0200] "GET / HTTP/1.1" 200 95752 127.0.0.1 - - [14/Jan/2019:17:58:49 -0200] "-" 408 - tail /var/log/apache2/access_log | awk '{print $1}' | cut -d'=' -f2 | sort | uniq -c 5 127.0.0.1 5 ::1 lsof -i | grep -E "(LISTEN|ESTABLISHED)" | awk '{print $1, $8, $9}' Notes TCP 192.168.10.101:49652->pop3.tpa.com.br:imap Notes TCP 192.168.10.101:49652->pop3.tpa.com.br:imap rapportd TCP *:49605 rapportd TCP *:49605 rapportd TCP 192.168.10.101:49605->192.168.10.100:61298 Google TCP 192.168.10.101:49636->ce-in-f188.1e100.net:5228 Google TCP 192.168.10.101:49655->stackoverflow.com:https Google TCP 192.168.10.101:49751->38.4a.37a9.ip4.static.sl-reverse.com:https Google TCP 192.168.10.101:49795->201.87.209.146:https Google TCP 192.168.10.101:49756->eze03s06-in-f3.1e100.net:https Google TCP 192.168.10.101:49829->52.114.32.8:https Google TCP 192.168.10.101:49744->eze03s06-in-f14.1e100.net:https Google TCP 192.168.10.101:49786->ec2-34-204-21-246.compute-1.amazonaws.com:https Google TCP 192.168.10.101:49659->gru10s11-in-f14.1e100.net:https Google TCP 192.168.10.101:49758->gru06s35-in-f14.1e100.net:https Google TCP 192.168.10.101:49827->52.114.32.8:https Google TCP 192.168.10.101:49705->189.45.193.145:https Google TCP 192.168.10.101:49790->eze03s06-in-f4.1e100.net:https Google TCP 192.168.10.101:49791->eze03s06-in-f4.1e100.net:https Google TCP 192.168.10.101:49782->gru10s11-in-f3.1e100.net:https Google TCP 192.168.10.101:49794->gru10s13-in-f14.1e100.net:https Google TCP 192.168.10.101:49783->gru06s30-in-f14.1e100.net:https Google TCP 192.168.10.101:49831->e2a.google.com:https Google TCP 192.168.10.101:49787->189.45.193.146:https Google TCP 192.168.10.101:49692->edge-star-mini-shv-02-gru2.facebook.com:https Google TCP 192.168.10.101:49709->edge-star-shv-02-gru2.facebook.com:https Google TCP 192.168.10.101:49784->gru06s31-in-f14.1e100.net:https Google TCP 192.168.10.101:49807->gru10s11-in-f14.1e100.net:http Google TCP 192.168.10.101:49796->gru10s11-in-f14.1e100.net:https Google TCP 192.168.10.101:49823->104.244.42.8:https Google TCP 192.168.10.101:49800->edge.presslabs.net:http Google TCP 192.168.10.101:49797->gru14s07-in-f14.1e100.net:https Google TCP 192.168.10.101:49798->192.0.76.3:http Google TCP 192.168.10.101:49708->edge-star-shv-02-gru2.facebook.com:https Google TCP 192.168.10.101:49812->gru14s08-in-f2.1e100.net:http Google TCP 192.168.10.101:49799->23.101.156.198:https Google TCP 192.168.10.101:49804->xx-fbcdn-shv-02-gru2.fbcdn.net:https Google TCP 192.168.10.101:49802->151.101.252.84:https Google TCP 192.168.10.101:49803->gru06s34-in-f14.1e100.net:http Google TCP 192.168.10.101:49808->i2.wp.com:https Google TCP 192.168.10.101:49806->192.16.58.124:https Google TCP 192.168.10.101:49805->edge.presslabs.net:http Google TCP 192.168.10.101:49768->gru09s19-in-f106.1e100.net:https Google TCP 192.168.10.101:49810->ec2-52-201-111-104.compute-1.amazonaws.com:https Google TCP 192.168.10.101:49830->151.101.252.84:https Google TCP 192.168.10.101:49811->tags.expo9.exponential.com:http Google TCP 192.168.10.101:49813->192.16.58.25:http Google TCP 192.168.10.101:49816->192.16.58.25:https Google TCP 192.168.10.101:49820->edge.presslabs.net:http Google TCP 192.168.10.101:49825->eze03s05-in-f237.1e100.net:https Google TCP 192.168.10.101:49821->152.199.53.218:https Google TCP 192.168.10.101:49822->151.101.253.140:https =========== sudo lsof -PiTCP -sTCP:LISTEN COMMAND PID USER FD TYPE DEVICE SIZE/OFF NODE NAME core 47 root 12u IPv4 0xaf66da7671e06749 0t0 TCP localhost:30900 (LISTEN) core 47 root 14u IPv4 0xaf66da7671e07a49 0t0 TCP localhost:30800 (LISTEN) mysqld 97 _mysql 28u IPv6 0xaf66da76719c6609 0t0 TCP *:3306 (LISTEN) mysqld 97 _mysql 31u IPv6 0xaf66da76719c6bc9 0t0 TCP *:33060 (LISTEN) xartstora 220 root 3u IPv4 0xaf66da7671e070c9 0t0 TCP *:61500 (LISTEN) xartstora 220 root 4u IPv6 0xaf66da76719c7749 0t0 TCP *:61500 (LISTEN) rapportd 336 juraa.p. 3u IPv4 0xaf66da7680a8f749 0t0 TCP *:53119 (LISTEN) rapportd 336 juraa.p. 4u IPv6 0xaf66da7680e0fd09 0t0 TCP *:53119 (LISTEN) httpd 1652 root 4u IPv6 0xaf66da7680e0e609 0t0 TCP *:80 (LISTEN) httpd 1656 _www 4u IPv6 0xaf66da7680e0e609 0t0 TCP *:80 (LISTEN) httpd 1658 _www 4u IPv6 0xaf66da7680e0e609 0t0 TCP *:80 (LISTEN) httpd 1660 _www 4u IPv6 0xaf66da7680e0e609 0t0 TCP *:80 (LISTEN) httpd 1661 _www 4u IPv6 0xaf66da7680e0e609 0t0 TCP *:80 (LISTEN) lsof -i -sTCP:LISTEN COMMAND PID USER FD TYPE DEVICE SIZE/OFF NODE NAME loginwind 98 juraa.p. 7u IPv4 0xaf66da7670a6c729 0t0 UDP *:* UserEvent 297 juraa.p. 3u IPv4 0xaf66da76709fe3d1 0t0 UDP *:* identitys 320 juraa.p. 19u IPv4 0xaf66da766ef83779 0t0 UDP *:* SystemUIS 329 juraa.p. 12u IPv4 0xaf66da76709741b9 0t0 UDP *:* SystemUIS 329 juraa.p. 13u IPv4 0xaf66da7670973f01 0t0 UDP *:* SystemUIS 329 juraa.p. 14u IPv4 0xaf66da7670973c49 0t0 UDP *:56543 SystemUIS 329 juraa.p. 15u IPv4 0xaf66da76709736d9 0t0 UDP *:* SystemUIS 329 juraa.p. 18u IPv4 0xaf66da7670a69ba9 0t0 UDP *:* rapportd 336 juraa.p. 3u IPv4 0xaf66da7680a8f749 0t0 TCP *:53119 (LISTEN) rapportd 336 juraa.p. 4u IPv6 0xaf66da7680e0fd09 0t0 TCP *:53119 (LISTEN) rapportd 336 juraa.p. 9u IPv4 0xaf66da7670a6abf9 0t0 UDP *:xserveraid WiFiAgent 364 juraa.p. 5u IPv4 0xaf66da766ef821b9 0t0 UDP *:* sharingd 377 juraa.p. 4u IPv4 0xaf66da76710879e1 0t0 UDP *:* sharingd 377 juraa.p. 8u IPv4 0xaf66da76710871b9 0t0 UDP *:* sharingd 377 juraa.p. 9u IPv4 0xaf66da7671086c49 0t0 UDP *:* sharingd 377 juraa.p. 10u IPv4 0xaf66da7671087f51 0t0 UDP *:* sharingd 377 juraa.p. 11u IPv4 0xaf66da76710848f1 0t0 UDP *:* WiFiProxy 378 juraa.p. 5u IPv4 0xaf66da7670a6d779 0t0 UDP *:* assistant 383 juraa.p. 6u IPv4 0xaf66da76709e81b9 0t0 UDP *:* sudo lsof -iTCP -sTCP:LISTEN -P -n Password: COMMAND PID USER FD TYPE DEVICE SIZE/OFF NODE NAME core 47 root 12u IPv4 0xaf66da7671e06749 0t0 TCP 127.0.0.1:30900 (LISTEN) core 47 root 14u IPv4 0xaf66da7671e07a49 0t0 TCP 127.0.0.1:30800 (LISTEN) mysqld 97 _mysql 28u IPv6 0xaf66da76719c6609 0t0 TCP *:3306 (LISTEN) mysqld 97 _mysql 31u IPv6 0xaf66da76719c6bc9 0t0 TCP *:33060 (LISTEN) xartstora 220 root 3u IPv4 0xaf66da7671e070c9 0t0 TCP *:61500 (LISTEN) xartstora 220 root 4u IPv6 0xaf66da76719c7749 0t0 TCP *:61500 (LISTEN) rapportd 336 juraa.p. 3u IPv4 0xaf66da7680a8f749 0t0 TCP *:53119 (LISTEN) rapportd 336 juraa.p. 4u IPv6 0xaf66da7680e0fd09 0t0 TCP *:53119 (LISTEN) httpd 1652 root 4u IPv6 0xaf66da7680e0e609 0t0 TCP *:80 (LISTEN) httpd 1656 _www 4u IPv6 0xaf66da7680e0e609 0t0 TCP *:80 (LISTEN) httpd 1658 _www 4u IPv6 0xaf66da7680e0e609 0t0 TCP *:80 (LISTEN) httpd 1660 _www 4u IPv6 0xaf66da7680e0e609 0t0 TCP *:80 (LISTEN) httpd 1661 _www 4u IPv6 0xaf66da7680e0e609 0t0 TCP *:80 (LISTEN) lsof -n -i | grep -e LISTEN -e ESTABLISHED
Google 304 juraa.p. 72u IPv4 0xaf66da7680a90a49 0t0 TCP 192.168.10.101:53736->172.217.29.35:https (ESTABLISHED) Google 304 juraa.p. 104u IPv4 0xaf66da7672159749 0t0 TCP 192.168.10.101:53766->64.233.190.188:5228 (ESTABLISHED) Google 304 juraa.p. 105u IPv4 0xaf66da767a9910c9 0t0 TCP 192.168.10.101:53819->172.217.30.46:https (ESTABLISHED) Google 304 juraa.p. 177u IPv4 0xaf66da767e2f80c9 0t0 TCP 192.168.10.101:53786->157.240.12.35:https (ESTABLISHED) Google 304 juraa.p. 229u IPv4 0xaf66da7671e08d49 0t0 TCP 192.168.10.101:53793->34.204.21.246:https (ESTABLISHED) Google 304 juraa.p. 230u IPv4 0xaf66da767215bd49 0t0 TCP 192.168.10.101:53811->151.101.1.69:https (ESTABLISHED) Google 304 juraa.p. 231u IPv4 0xaf66da767aa77a49 0t0 TCP 192.168.10.101:53782->172.217.30.78:https (ESTABLISHED) Google 304 juraa.p. 232u IPv4 0xaf66da7680aaa0c9 0t0 TCP 192.168.10.101:53768->172.217.28.10:https (ESTABLISHED) Google 304 juraa.p. 243u IPv4 0xaf66da767d7bca49 0t0 TCP 192.168.10.101:53767->169.60.79.83:https (ESTABLISHED) Google 304 juraa.p. 246u IPv4 0xaf66da7671e083c9 0t0 TCP 192.168.10.101:53791->157.240.12.13:https (ESTABLISHED) Google 304 juraa.p. 247u IPv4 0xaf66da767dc51749 0t0 TCP 192.168.10.101:53813->31.13.85.4:https (ESTABLISHED) Google 304 juraa.p. 248u IPv4 0xaf66da767aa4cd49 0t0 TCP 192.168.10.101:53812->104.16.31.34:https (ESTABLISHED) Google 304 juraa.p. 251u IPv4 0xaf66da767d4373c9 0t0 TCP 192.168.10.101:53789->172.217.28.4:https (ESTABLISHED) Google 304 juraa.p. 252u IPv4 0xaf66da767d556a49 0t0 TCP 192.168.10.101:53790->172.217.28.227:https (ESTABLISHED) Google 304 juraa.p. 255u IPv4 0xaf66da767a7000c9 0t0 TCP 192.168.10.101:53816->198.252.206.25:https (ESTABLISHED) Google 304 juraa.p. 257u IPv4 0xaf66da767e2f9d49 0t0 TCP 192.168.10.101:53817->172.217.30.110:https (ESTABLISHED) Google 304 juraa.p. 260u IPv4 0xaf66da767a6ff749 0t0 TCP 192.168.10.101:53792->172.217.30.78:https (ESTABLISHED) Google 304 juraa.p. 270u IPv4 0xaf66da767e2f93c9 0t0 TCP 192.168.10.101:53810->157.240.12.13:https (ESTABLISHED) Google 304 juraa.p. 272u IPv4 0xaf66da767d5560c9 0t0 TCP 192.168.10.101:53814->172.217.30.66:https (ESTABLISHED) Google 304 juraa.p. 273u IPv4 0xaf66da767a700a49 0t0 TCP 192.168.10.101:53815->23.10.50.56:https (ESTABLISHED) Google 304 juraa.p. 275u IPv4 0xaf66da767e2f7749 0t0 TCP 192.168.10.101:53818->192.184.68.206:https (ESTABLISHED) Google 304 juraa.p. 301u IPv4 0xaf66da767d557d49 0t0 TCP 192.168.10.101:53809->172.217.28.14:https (ESTABLISHED) Google 304 juraa.p. 303u IPv4 0xaf66da767a992d49 0t0 TCP 192.168.10.101:53807->172.217.162.110:https (ESTABLISHED) Google 304 juraa.p. 312u IPv4 0xaf66da767d2bd0c9 0t0 TCP 192.168.10.101:53808->172.217.30.110:https (ESTABLISHED) Notes 308 juraa.p. 39u IPv4 0xaf66da767a701d49 0t0 TCP 192.168.10.101:53784->189.45.192.51:imap (ESTABLISHED) Notes 308 juraa.p. 41u IPv4 0xaf66da767a701d49 0t0 TCP 192.168.10.101:53784->189.45.192.51:imap (ESTABLISHED) rapportd 336 juraa.p. 3u IPv4 0xaf66da7680a91d49 0t0 TCP *:53740 (LISTEN) rapportd 336 juraa.p. 4u IPv6 0xaf66da768193d4c9 0t0 TCP *:53740 (LISTEN) rapportd 336 juraa.p. 8u IPv4 0xaf66da767215a0c9 0t0 TCP 192.168.10.101:53740->192.168.10.100:61240 (ESTABLISHED) CalendarA 387 juraa.p. 44u IPv4 0xaf66da7680a8f749 0t0 TCP 192.168.10.101:53769->17.248.137.177:https (ESTABLISHED) CalendarA 387 juraa.p. 47u IPv4 0xaf66da767d0ec3c9 0t0 TCP 192.168.10.101:53771->17.248.184.51:https (ESTABLISHED)
sudo lsof -iTCP -sTCP:LISTEN -P -n | grep mysql mysqld 97 _mysql 28u IPv6 0xaf66da76719c6609 0t0 TCP *:3306 (LISTEN) mysqld 97 _mysql 31u IPv6 0xaf66da76719c6bc9 0t0 TCP *:33060 (LISTEN) sudo lsof -iUDP -P -n | egrep -v '(127|::1)' COMMAND PID USER FD TYPE DEVICE SIZE/OFF NODE NAME launchd 1 root 28u IPv4 0xaf66da766ef82729 0t0 UDP *:137 launchd 1 root 30u IPv4 0xaf66da766ef82471 0t0 UDP *:138 systemsta 57 root 17u IPv4 0xaf66da7670a014c1 0t0 UDP *:* configd 59 root 8u IPv4 0xaf66da7670973421 0t0 UDP *:* configd 59 root 9u IPv4 0xaf66da7670975a31 0t0 UDP *:* configd 59 root 12u IPv4 0xaf66da7670a6a941 0t0 UDP *:* configd 59 root 20u IPv4 0xaf66da7671087c99 0t0 UDP *:* locationd 88 _locationd 9u IPv4 0xaf66da7670a6c1b9 0t0 UDP *:* loginwind 98 juraa.p. 7u IPv4 0xaf66da7670a6c729 0t0 UDP *:* bluetooth 103 root 4u IPv4 0xaf66da766ef81169 0t0 UDP *:* AirPlayXP 107 root 4u IPv4 0xaf66da766ef81f01 0t0 UDP *:* AirPlayXP 107 root 19u IPv4 0xaf66da766ef81991 0t0 UDP *:* symptomsd 165 _networkd 4u IPv4 0xaf66da7670a00729 0t0 UDP *:* mDNSRespo 183 _mdnsresponder 7u IPv4 0xaf66da7670a6dfa1 0t0 UDP *:5353 mDNSRespo 183 _mdnsresponder 8u IPv6 0xaf66da7670a6a119 0t0 UDP *:5353 mDNSRespo 183 _mdnsresponder 11u IPv4 0xaf66da76709e7c49 0t0 UDP *:63470 mDNSRespo 183 _mdnsresponder 13u IPv6 0xaf66da76709e6eb1 0t0 UDP *:63470 airportd 189 root 6u IPv4 0xaf66da7671088779 0t0 UDP *:* airportd 189 root 11u IPv6 0xaf66da766ef7fba9 0t0 UDP *:* airportd 189 root 12u IPv4 0xaf66da766ef7f639 0t0 UDP *:* airportd 189 root 13u IPv4 0xaf66da76709e63d1 0t0 UDP *:* airportd 189 root 17u IPv4 0xaf66da766ef84a81 0t0 UDP *:* airportd 189 root 19u IPv4 0xaf66da76709e6119 0t0 UDP *:* airportd 189 root 24u IPv4 0xaf66da76709ea7c9 0t0 UDP *:* airportd 189 root 26u IPv4 0xaf66da76709eaa81 0t0 UDP *:* airportd 189 root 28u IPv4 0xaf66da76709e50c9 0t0 UDP *:* airportd 189 root 30u IPv4 0xaf66da76709ffc49 0t0 UDP *:* systemsta 287 root 17u IPv4 0xaf66da7670a014c1 0t0 UDP *:* UserEvent 297 juraa.p. 3u IPv4 0xaf66da76709fe3d1 0t0 UDP *:* WirelessR 316 root 3u IPv4 0xaf66da76709e9a31 0t0 UDP *:* identitys 320 juraa.p. 19u IPv4 0xaf66da766ef83779 0t0 UDP *:* SystemUIS 329 juraa.p. 12u IPv4 0xaf66da76709741b9 0t0 UDP *:* SystemUIS 329 juraa.p. 13u IPv4 0xaf66da7670973f01 0t0 UDP *:* SystemUIS 329 juraa.p. 14u IPv4 0xaf66da7670973c49 0t0 UDP *:56543 SystemUIS 329 juraa.p. 15u IPv4 0xaf66da76709736d9 0t0 UDP *:* SystemUIS 329 juraa.p. 18u IPv4 0xaf66da7670a69ba9 0t0 UDP *:* rapportd 336 juraa.p. 9u IPv4 0xaf66da7670a6abf9 0t0 UDP *:3722 WiFiAgent 364 juraa.p. 5u IPv4 0xaf66da766ef821b9 0t0 UDP *:* sharingd 377 juraa.p. 4u IPv4 0xaf66da76710879e1 0t0 UDP *:* sharingd 377 juraa.p. 8u IPv4 0xaf66da76710871b9 0t0 UDP *:* sharingd 377 juraa.p. 9u IPv4 0xaf66da7671086c49 0t0 UDP *:* sharingd 377 juraa.p. 10u IPv4 0xaf66da7671087f51 0t0 UDP *:* sharingd 377 juraa.p. 11u IPv4 0xaf66da76710848f1 0t0 UDP *:* WiFiProxy 378 juraa.p. 5u IPv4 0xaf66da7670a6d779 0t0 UDP *:* assistant 383 juraa.p. 6u IPv4 0xaf66da76709e81b9 0t0 UDP *:* PerfPower 1826 root 6u IPv4 0xaf66da76710866d9 0t0 UDP *:* netbiosd 2910 _netbios 3u IPv4 0xaf66da766ef82729 0t0 UDP *:137 netbiosd 2910 _netbios 4u IPv4 0xaf66da766ef82471 0t0 UDP *:138 sudo lsof -Pan -i tcp -i udp | grep ESTABLISHED | wc -l 59 =========== lsof -Pnl +M -i -cmd | grep LISTEN rapportd 339 501 3u IPv4 0x634cfe1194fa3a3f 0t0 TCP *:49605 (LISTEN) rapportd 339 501 4u IPv6 0x634cfe118b9210ff 0t0 TCP *:49605 (LISTEN) =========== tail /private/var/log/apache2/access_log tail /var/log/apache2/error_log tail /private/var/log/system.log =========== last | grep -v "^$" | awk '{ print $1 }' | sort -nr | uniq -c 1 wtmp 79 shutdown 2 root 80 reboot 205 juraa.p. =========== ls -lh /var/log/total 99208 drwxr-xr-x 3 root wheel 96B Oct 22 15:01 Bluetooth -rw-r--r--@ 1 root wheel 12B Oct 22 15:00 CDIS.custom drwxr-xr-x 2 root wheel 64B Aug 20 22:45 CoreDuet drwxrwx--- 33 root admin 1.0K Jan 13 11:00 DiagnosticMessages drwxr-xr-x 4 root wheel 128B Jan 6 19:40 apache2 drwxr-xr-x 18 root wheel 576B Jan 13 07:59 asl drwxr-xr-x 2 root wheel 64B Aug 20 22:51 com.apple.xpc.launchd -rw-r--r-- 1 root wheel 8.5M Jan 13 17:25 corecaptured.log drwxr-xr-x 3 root wheel 96B Nov 30 13:51 cups -rw-r--r-- 1 root wheel 141K Jan 13 17:44 daily.out drwxr-xr-x 5 _displaypolicyd _displaypolicyd 160B Oct 24 12:31 displaypolicy -rw-r--r-- 1 root wheel 134B Oct 22 15:01 displaypolicyd.stdout.log drwxr-xr-x 3 root wheel 96B Aug 17 21:56 emond -rw-r--r-- 1 root wheel 108K Jan 13 17:45 fsck_apfs.log -rw-r--r-- 1 root wheel 15K Jan 9 16:50 fsck_hfs.log -rw-r--r--@ 1 juraa.p. staff 24M Jan 13 17:45 install.log -rw-r--r-- 1 root wheel 1.0K Dec 29 15:53 monthly.out drwxr-xr-x@ 18 root admin 576B Jan 13 07:59 powermanagement drwxr-xr-x 2 root wheel 64B Aug 23 00:24 ppp -rw-r--r-- 1 root wheel 0B Oct 24 12:32 shutdown_monitor.log -rw-r-----@ 1 root admin 165K Jan 13 18:17 system.log -rw-r----- 1 root admin 58K Jan 13 07:59 system.log.0.gz -rw-r----- 1 root admin 18K Jan 12 00:00 system.log.1.gz -rw-r----- 1 root admin 7.9K Jan 11 02:46 system.log.2.gz -rw-r----- 1 root admin 67K Jan 10 08:30 system.log.3.gz -rw-r----- 1 root admin 15K Jan 8 00:03 system.log.4.gz -rw-r----- 1 root admin 21K Jan 7 01:36 system.log.5.gz drwxr-xr-x 2 _uucp wheel 64B Aug 17 19:19 uucp -rw-r--r-- 1 root wheel 1.3M Jan 11 21:07 vnetlib -rw-r--r-- 1 root wheel 1.3K Jan 9 16:19 weekly.out -rw-r--r-- 1 root wheel 4.0M Jan 13 15:08 wifi-01-13-2019__15:08:12.028.log -rw-r--r-- 1 root wheel 4.0M Jan 13 15:08 wifi-01-13-2019__15:08:16.984.log -rw-r--r-- 1 root wheel 4.0M Jan 13 17:08 wifi-01-13-2019__17:08:51.594.log -rw-r--r-- 1 root admin 192K Jan 13 17:55 wifi.log -rw-r----- 1 root admin 33K Jan 12 00:30 wifi.log.0.bz2 -rw-r----- 1 root admin 9.8K Jan 8 00:03 wifi.log.1.bz2 -rw-r----- 1 root admin 30K Nov 23 00:30 wifi.log.10.bz2 -rw-r----- 1 root admin 411B Jan 6 00:30 wifi.log.2.bz2 -rw-r----- 1 root admin 26K Jan 6 00:28 wifi.log.3.bz2 -rw-r----- 1 root admin 50K Dec 26 00:27 wifi.log.4.bz2 -rw-r----- 1 root admin 20K Dec 17 00:10 wifi.log.5.bz2 -rw-r----- 1 root admin 14K Dec 13 00:45 wifi.log.6.bz2 -rw-r----- 1 root admin 4.4K Dec 9 00:01 wifi.log.7.bz2 -rw-r----- 1 root admin 33K Dec 8 00:07 wifi.log.8.bz2 -rw-r----- 1 root admin 30K Dec 1 00:15 wifi.log.9.bz2
=========== cd /var/log sudo ls -lh wifi.log.* Password: -rw-r----- 1 root admin 33K Jan 12 00:30 wifi.log.0.bz2 -rw-r----- 1 root admin 9.8K Jan 8 00:03 wifi.log.1.bz2 -rw-r----- 1 root admin 30K Nov 23 00:30 wifi.log.10.bz2 -rw-r----- 1 root admin 411B Jan 6 00:30 wifi.log.2.bz2 -rw-r----- 1 root admin 26K Jan 6 00:28 wifi.log.3.bz2 -rw-r----- 1 root admin 50K Dec 26 00:27 wifi.log.4.bz2 -rw-r----- 1 root admin 20K Dec 17 00:10 wifi.log.5.bz2 -rw-r----- 1 root admin 14K Dec 13 00:45 wifi.log.6.bz2 -rw-r----- 1 root admin 4.4K Dec 9 00:01 wifi.log.7.bz2 -rw-r----- 1 root admin 33K Dec 8 00:07 wifi.log.8.bz2 -rw-r----- 1 root admin 30K Dec 1 00:15 wifi.log.9.bz2 ls -lh wifi.log.* -rw-r----- 1 root admin 33K Jan 12 00:30 wifi.log.0.bz2 -rw-r----- 1 root admin 9.8K Jan 8 00:03 wifi.log.1.bz2 -rw-r----- 1 root admin 30K Nov 23 00:30 wifi.log.10.bz2 -rw-r----- 1 root admin 411B Jan 6 00:30 wifi.log.2.bz2 -rw-r----- 1 root admin 26K Jan 6 00:28 wifi.log.3.bz2 -rw-r----- 1 root admin 50K Dec 26 00:27 wifi.log.4.bz2 -rw-r----- 1 root admin 20K Dec 17 00:10 wifi.log.5.bz2 -rw-r----- 1 root admin 14K Dec 13 00:45 wifi.log.6.bz2 -rw-r----- 1 root admin 4.4K Dec 9 00:01 wifi.log.7.bz2 -rw-r----- 1 root admin 33K Dec 8 00:07 wifi.log.8.bz2 -rw-r----- 1 root admin 30K Dec 1 00:15 wifi.log.9.bz2 sudo rm wifi.log.* du -sh * | sort -n 0B CoreDuet 0B com.apple.xpc.launchd 0B emond 0B ppp 0B shutdown_monitor.log 0B uucp 2.0M vnetlib 4.0K CDIS.custom 4.0K cups 4.0K displaypolicyd.stdout.log 4.0K monthly.out 4.0K weekly.out 4.0M wifi-01-13-2019__15:08:12.028.log 4.0M wifi-01-13-2019__15:08:16.984.log 4.0M wifi-01-13-2019__17:08:51.594.log 4.2M powermanagement 4.4M asl 8.0K system.log.2.gz 9.0M corecaptured.log 14M DiagnosticMessages 16K fsck_hfs.log 16K system.log.4.gz 20K system.log.1.gz 24K system.log.5.gz 24M install.log 60K system.log.0.gz 68K system.log.3.gz 92K apache2 132K fsck_apfs.log 140K Bluetooth 196K daily.out 196K system.log 196K wifi.log 728K displaypolicy du -sch /var/log/ 72M /var/log/ 72M total cd /var/log/ && ls | wc -l 34 =========== lsof -i TCP:1-1024COMMAND PID USER FD TYPE DEVICE SIZE/OFF NODE NAME Google 304 juraa.p. 194u IPv4 0xaf66da767d1cc0c9 0t0 TCP 192.168.10.100:52288->gru10s11-in-f14.1e100.net:https (ESTABLISHED) Google 304 juraa.p. 248u IPv4 0xaf66da767d1cd3c9 0t0 TCP 192.168.10.100:52305->gru06s29-in-f3.1e100.net:https (ESTABLISHED) Notes 308 juraa.p. 39u IPv4 0xaf66da7680aa0749 0t0 TCP 192.168.10.100:52100->pop3.tpa.com.br:imap (ESTABLISHED) Notes 308 juraa.p. 41u IPv4 0xaf66da7680aa0749 0t0 TCP 192.168.10.100:52100->pop3.tpa.com.br:imap (ESTABLISHED) identitys 320 juraa.p. 29u IPv6 0xaf66da76719c4389 0t0 TCP macbook-pro-de-jura.local:1024->[fe80:11::acfd:bca5:63a7:6aad]:1024 (CLOSED)
=========== lsof -P -i -n | grep TCPGoogle 304 juraa.p. 72u IPv4 0xaf66da7680a58a49 0t0 TCP 192.168.10.100:52116->64.233.186.188:5228 (ESTABLISHED) Google 304 juraa.p. 246u IPv4 0xaf66da767d1cd3c9 0t0 TCP 192.168.10.100:52321->172.217.30.110:443 (ESTABLISHED) Google 304 juraa.p. 247u IPv4 0xaf66da767dc520c9 0t0 TCP 192.168.10.100:52319->216.58.202.131:443 (ESTABLISHED) Google 304 juraa.p. 248u IPv4 0xaf66da767d1cc0c9 0t0 TCP 192.168.10.100:52320->216.58.202.174:443 (ESTABLISHED) Google 304 juraa.p. 261u IPv4 0xaf66da7680aa10c9 0t0 TCP 192.168.10.100:52322->172.217.30.110:443 (ESTABLISHED) Notes 308 juraa.p. 39u IPv4 0xaf66da7680aa0749 0t0 TCP 192.168.10.100:52100->189.45.192.51:143 (ESTABLISHED) Notes 308 juraa.p. 41u IPv4 0xaf66da7680aa0749 0t0 TCP 192.168.10.100:52100->189.45.192.51:143 (ESTABLISHED) identitys 320 juraa.p. 29u IPv6 0xaf66da76719c4389 0t0 TCP [fe80:11::be77:6fe1:244a:78d]:1024->[fe80:11::acfd:bca5:63a7:6aad]:1024 (CLOSED) rapportd 336 juraa.p. 3u IPv4 0xaf66da767df150c9 0t0 TCP *:52046 (LISTEN) rapportd 336 juraa.p. 4u IPv6 0xaf66da768193d4c9 0t0 TCP *:52046 (LISTEN) rapportd 336 juraa.p. 6u IPv4 0xaf66da767d1cca49 0t0 TCP 192.168.10.100:52046->192.168.10.105:60881 (ESTABLISHED)
=========== lsof -iTCP -sTCP:ESTABLISHED | awk '{print $1}' | sort -u COMMAND Google Notes rapportd =========== Diretórios mais abertoslsof |awk ' {if ( $0 ~ /home/) print substr($0, index($0,"/home") ) }'|cut -d / -f 1-4|sort|uniq -c|sort -bgr 1 homed 351 juraa.p. txt REG 1,7 27143600 13273249 /usr/share/icu 1 homed 351 juraa.p. txt REG 1,7 1100896 13269036 /usr/lib/dyld 1 homed 351 juraa.p. txt REG 1,7 238416 14618686 /private/var/db 1 homed 351 juraa.p. txt REG 1,7 88848 13244378 /System/Library/PrivateFrameworks 1 homed 351 juraa.p. txt REG 1,7 32768 14711940 /private/var/db 1 homed 351 juraa.p. txt REG 1,7 32768 11842375 /Users/juraa.p./Library 1 homed 351 juraa.p. txt REG 1,7 20688 14711587 /Library/Preferences/Logging 1 homed 351 juraa.p. cwd DIR 1,7 896 2 / 1 homed 351 juraa.p. 9u unix 0x634cfe118f334bef 0t0 ->0x634cfe118f3370a7 1 homed 351 juraa.p. 8u unix 0x634cfe118f3370a7 0t0 ->0x634cfe118f334bef 1 homed 351 juraa.p. 7u unix 0x634cfe118f336fdf 0t0 ->0x634cfe118f334cb7 1 homed 351 juraa.p. 6 NPOLICY 1 homed 351 juraa.p. 5u REG 1,7 32768 11842375 /Users/juraa.p./Library 1 homed 351 juraa.p. 4u REG 1,7 2393752 11842374 /Users/juraa.p./Library 1 homed 351 juraa.p. 3u REG 1,7 626688 11842353 /Users/juraa.p./Library 1 homed 351 juraa.p. 2u CHR 3,2 0t0 317 /dev/null 1 homed 351 juraa.p. 1u CHR 3,2 0t0 317 /dev/null 1 homed 351 juraa.p. 0r CHR 3,2 0t0 317 /dev/null
=========== netstat -an | awk '/tcp/ {print $6}' | sort | uniq -c 1 CLOSED 1 CLOSE_WAIT 27 ESTABLISHED 9 LISTEN 1 com.apple.network.tcp_ccdebug ===========netstat -an | awk '$1 ~ /[Tt][Cc][Pp]/ && $NF ~ /ESTABLISHED/{i++}END{print "Connected:\t", i}'
Connected: 30 =========== netstat | awk '/EST/{print $5}' | sort 17.188.150.176.5223 17.188.166.17.5223 172.217.192.155.https 192.168.10.100.61448 9d.45.37a9.ip4.s.https cache.google.com.https cb-in-f188.1e100.5228 ec2-52-2-186-223.https ec2-52-4-104-97..https edge-star-shv-02.https edge-star-shv-02.https eze03s05-in-f238.https fe80::aede:48ff:.52032 fe80::aede:48ff:.61000 gru06s30-in-f14..https gru06s34-in-f14..https gru06s34-in-f3.1.https gru06s34-in-f3.1.https gru10s10-in-f14..https pop3.tpa.com.br.imap =========== Digite a linha de comando abaixo em uma única linha, quebrei aqui para melhor visualização.netstat -Watnlv | grep LISTEN | awk '{"ps -o comm= -p " $9 | getline procname;colred="\033[01;31m";colclr="\033[0m"; print colred "proto: " colclr $1 colred " | addr.port: " colclr $4 colred " | pid: " colclr $9 colred " | name: " colclr procname; }' | column -t -s "|" proto: tcp6 addr.port: *.53119 pid: 336 name: /usr/libexec/rapportd proto: tcp4 addr.port: *.53119 pid: 336 name: /usr/libexec/rapportd proto: tcp46 addr.port: *.80 pid: 1661 name: /usr/sbin/httpd proto: tcp4 addr.port: 127.0.0.1.30800 pid: 47 name: /usr/local/bin/warsaw/core proto: tcp4 addr.port: 127.0.0.1.30900 pid: 47 name: /usr/local/bin/warsaw/core proto: tcp6 addr.port: *.61500 pid: 220 name: /usr/libexec/xartstorageremoted proto: tcp4 addr.port: *.61500 pid: 220 name: /usr/libexec/xartstorageremoted proto: tcp46 addr.port: *.33060 pid: 97 name: /usr/local/mysql/bin/mysqld proto: tcp46 addr.port: *.3306 pid: 97 name: /usr/local/mysql/bin/mysqld
=========== Digite a linha de comando abaixo em uma única linha, quebrei aqui para melhor visualização. netstat -an | grep ESTABLISHED | awk '{print $5}' | awk -F: '{print $1}' | sort | uniq -c | awk '{ printf("%s\t%s\t",$2,$1) ; for (i = 0; i < $1; i++) {printf("*")}; print "" }' 104.19.196.151.443 1 * 104.244.42.200.443 1 * 157.240.12.13.443 1 * 157.240.12.35.443 1 * 157.240.12.53.443 1 * 17.188.151.44.5223 1 * 17.188.166.21.5223 1 * 17.248.184.50.443 2 ** 172.217.162.98.443 1 * 172.217.28.142.443 1 * 172.217.28.238.443 1 * 172.217.29.1.443 1 * 172.217.29.227.443 2 ** 172.217.30.110.443 1 * 172.217.30.78.443 1 * 189.45.192.51.143 1 * 189.45.193.145.443 1 * 192.0.73.2.443 1 * 192.168.10.100.61342 1 * 209.197.3.15.443 2 ** 216.58.202.131.443 1 * 216.58.202.234.443 1 * 216.58.202.68.443 2 ** 216.58.202.74.443 1 * 216.58.222.106.443 1 * 216.58.222.67.443 1 * 52.2.186.223.443 1 * 52.20.134.37.443 2 ** 64.233.190.156.443 1 * 64.233.190.188.5228 1 * fe80 2 ** =========== netstat -ant | awk '{print $NF}' | grep -v '[a-z]' | sort | uniq -c 46 *.* 147 0 14 1 1 11 2 2 1 3 1 7 1 CLOSED 13 ESTABLISHED 9 LISTEN 1 TIME_WAIT =========== netstat -na |awk '{print $5}' |cut -d "." -f1,2,3,4 |sort |uniq -c |sort -nr 228 0 3 65536 2 524288 2 172.217.29.14 1 sockets 1 sndbuf 1 servers) 1 id 1 fe80::aede:48ff:.61000 1 fe80::aede:48ff:.52032 1 class 1 Inode 1 Foreign 1 Address 1 8192 1 64.233.190.188 1 64.233.190.156 1 634cfe11935144cf 1 634cfe11935141e7 1 634cfe118f5027b7 1 634cfe118f4b992f 1 634cfe118f4b973f 1 634cfe118bad8c8f 1 634cfe118b8f40ef 1 634cfe118ae4e8af 1 634cfe118a4f63d7 1 634cfe11896db44f 1 634cfe11896da3d7 1 634cfe11896da2df 1 634cfe11896da1e7 1 634cfe11896d9837 1 634cfe11896ca167 1 634cfe11896c8a27 1 634cfe11896c8837 1 634cfe118969663f 1 634cfe1189696357 1 634cfe11896956bf 1 634cfe11896835c7 1 634cfe1189682eff 1 634cfe118965e44f 1 634cfe118964f0ef 1 634cfe11892c692f 1 216.58.202.163 1 201.87.209.187 1 192.168.10.100 1 189.45.192.51 1 172.217.30.78 1 172.217.30.46 1 172.217.29.99 1 172.217.29.3 1 172.217.28.238 1 172.217.28.132 1 17.188.166.21 1 17.188.151.44 1 151.101.193.69 1 131072 Digite a linha de comando abaixo em uma única linha, quebrei aqui para melhor visualização. netstat -ntu | awk ' $5 ~ /^(::ffff:|[0-9|])/ { gsub("::ffff:","",$5); print $5}' | cut -d: -f1 | sort | uniq -c | sort -nr 242 0 1 634cfe11935144cf 1 634cfe11935141e7 1 634cfe118f5027b7 1 634cfe118f4b992f 1 634cfe118f4b973f 1 634cfe118bad8c8f 1 634cfe118b8f40ef 1 634cfe118ae4e8af 1 634cfe118a4f63d7 1 634cfe11896db44f 1 634cfe11896da3d7 1 634cfe11896da2df 1 634cfe11896da1e7 1 634cfe11896d9837 1 634cfe11896ca167 1 634cfe11896c8a27 1 634cfe11896c8837 1 634cfe118969663f 1 634cfe1189696357 1 634cfe11896956bf 1 634cfe11896835c7 1 634cfe1189682eff 1 634cfe118965e44f 1 634cfe118964f0ef 1 634cfe11892c692f =========== awk -F: '$4!="" {print $1,$4}' /etc/group wheel root daemon root kmem root sys root tty root operator root mail _teamsserver procview root procmod root _taskgated _taskgated staff root certusers root,_jabber,_postfix,_cyrus,_calendar,_dovecot _keytabusers _calendar,_jabber,_postfix _appstore _appstore _www _devicemgr,_teamsserver _eppc _eppc admin root _calendar _teamsserver _teamsserver _devicemgr _softwareupdate _softwareupdate _detachedsig _locationd _odchpass _teamsserver _postgres _devicemgr,_calendar,_teamsserver,_xserverdocs _webauthserver _teamsserver,_devicemgr _warmd _warmd _analyticsusers _analyticsd,_networkd,_timed,_reportmemoryexception _analyticsd _analyticsd _fpsd _fpsd _reportmemoryexception _reportmemoryexception =========== netstat -ntu | awk '{print $5}' | cut -d: -f1 | sort | uniq -c | sort -n 1 634cfe11892c692f 1 634cfe118964f0ef 1 634cfe118965e44f 1 634cfe1189682eff 1 634cfe11896835c7 1 634cfe11896956bf 1 634cfe1189696357 1 634cfe118969663f 1 634cfe11896c8837 1 634cfe11896c8a27 1 634cfe11896ca167 1 634cfe11896d9837 1 634cfe11896da1e7 1 634cfe11896da2df 1 634cfe11896da3d7 1 634cfe11896db44f 1 634cfe118a4f63d7 1 634cfe118ae4e8af 1 634cfe118b8f40ef 1 634cfe118bad8c8f 1 634cfe118f4b973f 1 634cfe118f4b992f 1 634cfe118f5027b7 1 634cfe11935141e7 1 634cfe11935144cf 1 Inode 1 sockets 224 0 =========== netstat -ap tcp Active Internet connections (including servers) Proto Recv-Q Send-Q Local Address Foreign Address (state) tcp4 0 0 192.168.10.101.53620 gru06s30-in-f163.https ESTABLISHED tcp4 0 0 192.168.10.101.53605 stackoverflow.co.https ESTABLISHED tcp4 0 0 192.168.10.101.53586 151.101.204.64.https ESTABLISHED tcp4 0 0 192.168.10.101.53585 151.101.204.134.https ESTABLISHED tcp4 0 0 192.168.10.101.53584 151.101.204.64.https ESTABLISHED tcp4 0 0 192.168.10.101.53583 151.101.204.64.https ESTABLISHED tcp4 0 0 192.168.10.101.53580 151.101.64.134.https ESTABLISHED tcp4 0 0 192.168.10.101.53579 151.101.204.134.https ESTABLISHED tcp4 0 0 192.168.10.101.53578 151.101.204.134.https ESTABLISHED tcp4 0 0 192.168.10.101.53577 151.101.252.133.https ESTABLISHED tcp4 0 0 192.168.10.101.53575 151.101.252.133.https ESTABLISHED ^C whois 151.101.252.133 | grep StateProv StateProv: CA =========== Digite a linha de comando abaixo em uma única linha, quebrei aqui para melhor visualização. lsof |awk ' {if ( $0 ~ /home/) print substr($0, index($0,"/home") ) }'| cut -d / -f 1-4|sort|uniq -c|sort -bgr
1 homed 351 juraa.p. txt REG 1,7 27143600 13273249 /usr/share/icu 1 homed 351 juraa.p. txt REG 1,7 1100896 13269036 /usr/lib/dyld 1 homed 351 juraa.p. txt REG 1,7 238416 14618686 /private/var/db 1 homed 351 juraa.p. txt REG 1,7 88848 13244378 /System/Library/PrivateFrameworks 1 homed 351 juraa.p. txt REG 1,7 32768 14711940 /private/var/db 1 homed 351 juraa.p. txt REG 1,7 32768 11842375 /Users/juraa.p./Library 1 homed 351 juraa.p. txt REG 1,7 20688 14711587 /Library/Preferences/Logging 1 homed 351 juraa.p. cwd DIR 1,7 896 2 / 1 homed 351 juraa.p. 9u unix 0x634cfe118f334bef 0t0 ->0x634cfe118f3370a7 1 homed 351 juraa.p. 8u unix 0x634cfe118f3370a7 0t0 ->0x634cfe118f334bef 1 homed 351 juraa.p. 7u unix 0x634cfe118f336fdf 0t0 ->0x634cfe118f334cb7 1 homed 351 juraa.p. 6 NPOLICY 1 homed 351 juraa.p. 5u REG 1,7 32768 11842375 /Users/juraa.p./Library 1 homed 351 juraa.p. 4u REG 1,7 2393752 11842374 /Users/juraa.p./Library 1 homed 351 juraa.p. 3u REG 1,7 626688 11842353 /Users/juraa.p./Library 1 homed 351 juraa.p. 2u CHR 3,2 0t0 317 /dev/null 1 homed 351 juraa.p. 1u CHR 3,2 0t0 317 /dev/null 1 homed 351 juraa.p. 0r CHR 3,2 0t0 317 /dev/null 1 /homed
=========== ps aux | awk '$11!~/\[*\]/ {print $6/1024" Mb --> "$11,$12,$13,$14}' | sort -g0 Mb --> COMMAND 0.109375 Mb --> /System/Library/Frameworks/AudioToolbox.framework/XPCServices/com.apple.audio.SandboxHelper.xpc/Contents/MacOS/com.apple.audio.SandboxHelper 0.109375 Mb --> /System/Library/Frameworks/AudioToolbox.framework/XPCServices/com.apple.audio.SandboxHelper.xpc/Contents/MacOS/com.apple.audio.SandboxHelper 0.109375 Mb --> /usr/libexec/loginitemregisterd 0.109375 Mb --> /usr/libexec/periodic-wrapper daily 0.109375 Mb --> /usr/libexec/periodic-wrapper monthly 0.109375 Mb --> /usr/libexec/smd 0.109375 Mb --> SafeEjectGPUAgent 0.113281 Mb --> /System/Library/PrivateFrameworks/AssetCacheServicesExtensions.framework/XPCServices/AssetCacheManagerService.xpc/Contents/MacOS/AssetCacheManagerService 0.113281 Mb --> /System/Library/PrivateFrameworks/PackageKit.framework/Resources/installd 0.113281 Mb --> /System/Library/PrivateFrameworks/PackageKit.framework/Resources/system_installd 0.117188 Mb --> /usr/libexec/colorsyncd 0.125 Mb --> autofsd 0.128906 Mb --> /usr/libexec/bootinstalld 0.128906 Mb --> /usr/sbin/KernelEventAgent 0.140625 Mb --> /System/Library/Frameworks/CryptoTokenKit.framework/ctkd -s 0.140625 Mb --> /System/Library/Frameworks/PCSC.framework/Versions/A/XPCServices/com.apple.ctkpcscd.xpc/Contents/MacOS/com.apple.ctkpcscd 0.140625 Mb --> /usr/libexec/taskgated 0.15625 Mb --> /usr/libexec/keybagd -t 15 0.175781 Mb --> /Applications/Google Chrome.app/Contents/Versions/71.0.3578.98/Google Chrome Framework.framework/Versions/A/XPCServices/AlertNotificationService.xpc/Contents/MacOS/AlertNotificationService 0.183594 Mb --> login -pf juraa.p. 0.253906 Mb --> /System/Library/Frameworks/GSS.framework/Helpers/GSSCred 0.3125 Mb --> /usr/sbin/httpd -D FOREGROUND 0.3125 Mb --> /usr/sbin/httpd -D FOREGROUND 0.3125 Mb --> /usr/sbin/httpd -D FOREGROUND 0.3125 Mb --> /usr/sbin/httpd -D FOREGROUND 0.335938 Mb --> /usr/libexec/thermald 0.492188 Mb --> /usr/libexec/watchdogd 0.5 Mb --> /usr/libexec/securityd_service 0.535156 Mb --> /usr/sbin/httpd -D FOREGROUND 0.535156 Mb --> /usr/sbin/httpd -D FOREGROUND 0.5625 Mb --> /System/Library/PrivateFrameworks/CoreSymbolication.framework/coresymbolicationd 0.570312 Mb --> /System/Library/PrivateFrameworks/Uninstall.framework/Resources/uninstalld 0.574219 Mb --> /System/Library/Frameworks/OpenGL.framework/Versions/A/Libraries/CVMServer 0.628906 Mb --> /usr/libexec/apfsd 0.636719 Mb --> /System/Library/CryptoTokenKit/com.apple.ifdreader.slotd/Contents/MacOS/com.apple.ifdreader 0.644531 Mb --> /usr/sbin/cfprefsd agent 0.65625 Mb --> /System/Library/PrivateFrameworks/CharacterPicker.framework/Versions/A/XPCServices/com.apple.CharacterPicker.FileService.xpc/Contents/MacOS/com.apple.CharacterPicker.FileService 0.671875 Mb --> /usr/libexec/USBAgent 0.675781 Mb --> /System/Library/PrivateFrameworks/CommerceKit.framework/Versions/A/Resources/storedownloadd 0.675781 Mb --> /System/Library/PrivateFrameworks/CoreSpeech.framework/corespeechd 0.679688 Mb --> /System/Library/CoreServices/CrashReporterSupportHelper server-init 0.683594 Mb --> /System/Library/Frameworks/CoreMediaIO.framework/Versions/A/XPCServices/com.apple.cmio.registerassistantservice.xpc/Contents/MacOS/com.apple.cmio.registerassistantservice 0.6875 Mb --> /usr/libexec/colorsync.displayservices 0.6875 Mb --> /usr/libexec/silhouette 0.699219 Mb --> /System/Library/PrivateFrameworks/CommerceKit.framework/Versions/A/Resources/storeinstalld 0.710938 Mb --> /usr/bin/sysdiagnose 0.71875 Mb --> /System/Library/CoreServices/APFSUserAgent 0.722656 Mb --> /System/Library/CoreServices/NotificationCenter.app/Contents/XPCServices/com.apple.notificationcenterui.WeatherSummary.xpc/Contents/MacOS/com.apple.notificationcenterui.WeatherSummary 0.726562 Mb --> /System/Library/PrivateFrameworks/CommerceKit.framework/Versions/A/Resources/storelegacy 0.734375 Mb --> /usr/libexec/spindump_agent 0.75 Mb --> /usr/libexec/nsurlstoraged --privileged 0.757812 Mb --> /Applications/Google Chrome.app/Contents/Versions/71.0.3578.98/Google Chrome Framework.framework/Helpers/crashpad_handler 0.761719 Mb --> /System/Library/PrivateFrameworks/QuickLookThumbnailing.framework/Support/com.apple.quicklook.ThumbnailsAgent 0.765625 Mb --> /System/Library/PrivateFrameworks/CloudDocsDaemon.framework/XPCServices/ContainerMetadataExtractor.xpc/Contents/MacOS/ContainerMetadataExtractor 0.777344 Mb --> /usr/sbin/distnoted agent 0.78125 Mb --> /usr/sbin/distnoted agent 0.792969 Mb --> sort -g 0.796875 Mb --> /System/Library/Frameworks/CoreServices.framework/Frameworks/Metadata.framework/Versions/A/Support/mdwrite 0.796875 Mb --> /usr/sbin/distnoted agent 0.820312 Mb --> /System/Library/PrivateFrameworks/CommerceKit.framework/Versions/A/XPCServices/com.apple.CommerceKit.TransactionService.xpc/Contents/MacOS/com.apple.CommerceKit.TransactionService 0.851562 Mb --> awk $11!~/\[*\]/ {print $6/1024" 0.859375 Mb --> /System/Library/CoreServices/iconservicesd 0.863281 Mb --> /System/Library/CoreServices/Software Update.app/Contents/Resources/softwareupdate_notify_agent 0.871094 Mb --> /System/Library/PrivateFrameworks/ContextKit.framework/Versions/A/XPCServices/ContextService.xpc/Contents/MacOS/ContextService 0.886719 Mb --> /System/Library/PrivateFrameworks/FileProvider.framework/Support/fileproviderd 0.890625 Mb --> /System/Library/CoreServices/Menu Extras/SafeEjectGPUExtra.menu/Contents/XPCServices/SafeEjectGPUService.xpc/Contents/MacOS/SafeEjectGPUService 0.894531 Mb --> /System/Library/PrivateFrameworks/PhotoLibrary.framework/Versions/A/XPCServices/com.apple.PhotoIngestService.xpc/Contents/MacOS/com.apple.PhotoIngestService 0.898438 Mb --> /usr/sbin/spindump 0.917969 Mb --> /usr/libexec/AssetCache/AssetCache 0.925781 Mb --> /System/Library/PrivateFrameworks/FamilyCircle.framework/Versions/A/Resources/familycircled 0.933594 Mb --> /System/Library/PrivateFrameworks/CacheDelete.framework/deleted 0.933594 Mb --> aslmanager 0.941406 Mb --> /System/Library/PrivateFrameworks/EmbeddedOSInstall.framework/Versions/A/XPCServices/EmbeddedOSInstallService.xpc/Contents/MacOS/EmbeddedOSInstallService 0.945312 Mb --> /System/Library/PrivateFrameworks/AssistantServices.framework/Versions/A/XPCServices/media-indexer.xpc/Contents/MacOS/media-indexer 0.957031 Mb --> /usr/libexec/videosubscriptionsd 0.964844 Mb --> /System/Library/CoreServices/iconservicesagent runAsRoot 0.964844 Mb --> /System/Library/PrivateFrameworks/PhotoLibraryPrivate.framework/Versions/A/Frameworks/PhotoLibraryServices.framework/Versions/A/XPCServices/com.apple.photomodel.xpc/Contents/MacOS/com.apple.photomodel 0.972656 Mb --> /usr/libexec/swcd 0.996094 Mb --> /System/Library/Frameworks/Security.framework/Versions/A/XPCServices/com.apple.CodeSigningHelper.xpc/Contents/MacOS/com.apple.CodeSigningHelper 1.01953 Mb --> /usr/libexec/dmd 1.01953 Mb --> /usr/libexec/usbd 1.02734 Mb --> /System/Library/CoreServices/Software Update.app/Contents/Resources/suhelperd 1.03516 Mb --> /usr/sbin/mDNSResponderHelper 1.04297 Mb --> /usr/libexec/captiveagent 1.04688 Mb --> /usr/libexec/dprivacyd 1.05078 Mb --> /System/Library/Frameworks/CryptoTokenKit.framework/ctkahp.bundle/Contents/MacOS/ctkahp -d 1.05859 Mb --> /System/Library/Frameworks/ApplicationServices.framework/Frameworks/ATS.framework/Support/atsd 1.07031 Mb --> /usr/sbin/syslogd 1.10938 Mb --> -bash 1.10938 Mb --> ps aux 1.11719 Mb --> /System/Library/PrivateFrameworks/PhotoLibraryPrivate.framework/Versions/A/Support/photolibraryd 1.11719 Mb --> /usr/libexec/secinitd 1.125 Mb --> /usr/libexec/eoshostd 1.125 Mb --> /usr/libexec/secinitd 1.15625 Mb --> /System/Library/Frameworks/CoreAudio.framework/Versions/A/XPCServices/com.apple.audio.DriverHelper.xpc/Contents/MacOS/com.apple.audio.DriverHelper 1.15625 Mb --> /usr/libexec/findmydevice-user-agent 1.17578 Mb --> /usr/libexec/displaypolicyd -k 1 1.17969 Mb --> /System/Library/PrivateFrameworks/MobileDevice.framework/Versions/A/Resources/usbmuxd -launchd 1.17969 Mb --> /usr/libexec/secinitd 1.18359 Mb --> /System/Library/PrivateFrameworks/Noticeboard.framework/Versions/A/Resources/nbstated 1.18359 Mb --> /usr/libexec/gamecontrollerd 1.19141 Mb --> /System/Library/Frameworks/iTunesLibrary.framework/Versions/A/XPCServices/com.apple.iTunesLibraryService.xpc/Contents/MacOS/com.apple.iTunesLibraryService 1.19141 Mb --> /usr/libexec/amfid 1.19531 Mb --> /System/Library/CoreServices/logind 1.20312 Mb --> /System/Library/CoreServices/sharedfilelistd 1.21094 Mb --> /System/Library/PrivateFrameworks/PhotoLibraryPrivate.framework/Versions/A/Frameworks/PhotoLibraryServices.framework/Versions/A/XPCServices/com.apple.photomoments.xpc/Contents/MacOS/com.apple.photomoments 1.22656 Mb --> /System/Library/CoreServices/ScopedBookmarkAgent 1.23828 Mb --> /System/Library/PrivateFrameworks/AccountPolicy.framework/XPCServices/com.apple.AccountPolicyHelper.xpc/Contents/MacOS/com.apple.AccountPolicyHelper 1.23828 Mb --> /System/Library/PrivateFrameworks/PerformanceAnalysis.framework/Versions/A/XPCServices/com.apple.PerformanceAnalysis.animationperfd.xpc/Contents/MacOS/com.apple.PerformanceAnalysis.animationperfd 1.25391 Mb --> /System/Library/CoreServices/sharedfilelistd 1.25781 Mb --> /usr/libexec/networkserviceproxy 1.27344 Mb --> /usr/libexec/nfcd 1.32031 Mb --> /System/Library/PrivateFrameworks/IMFoundation.framework/XPCServices/IMRemoteURLConnectionAgent.xpc/Contents/MacOS/IMRemoteURLConnectionAgent 1.32812 Mb --> /System/Library/Frameworks/CryptoTokenKit.framework/ctkd -tw 1.34766 Mb --> /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/HIServices.framework/Versions/A/XPCServices/com.apple.hiservices-xpcservice.xpc/Contents/MacOS/com.apple.hiservices-xpcservice 1.36719 Mb --> /System/Library/Image Capture/Support/icdd 1.40234 Mb --> /usr/sbin/systemstats --logger-helper /private/var/db/systemstats 1.42578 Mb --> /usr/libexec/xartstorageremoted 1.42578 Mb --> /usr/sbin/httpd -D FOREGROUND 1.42578 Mb --> /usr/sbin/httpd -D FOREGROUND 1.42969 Mb --> /System/Library/CoreServices/backgroundtaskmanagementagent 1.4375 Mb --> /usr/libexec/SidecarRelay 1.44531 Mb --> /System/Library/PrivateFrameworks/CallHistory.framework/Support/CallHistoryPluginHelper 1.46875 Mb --> /usr/libexec/trustd --agent 1.48047 Mb --> /usr/libexec/seld 1.48828 Mb --> /System/Library/PrivateFrameworks/ViewBridge.framework/Versions/A/XPCServices/ViewBridgeAuxiliary.xpc/Contents/MacOS/ViewBridgeAuxiliary 1.49609 Mb --> /usr/libexec/diskarbitrationd 1.50391 Mb --> /usr/sbin/filecoordinationd 1.54688 Mb --> /usr/sbin/distnoted daemon 1.59766 Mb --> /usr/sbin/notifyd 1.62891 Mb --> /System/Library/CoreServices/SocialPushAgent.app/Contents/MacOS/SocialPushAgent 1.63672 Mb --> /System/Library/CoreServices/backupd.bundle/Contents/Resources/backupd-helper -launchd 1.64453 Mb --> /usr/libexec/diskmanagementd 1.70312 Mb --> /System/Library/PrivateFrameworks/AssetCacheServices.framework/Versions/A/XPCServices/AssetCacheLocatorService.xpc/Contents/MacOS/AssetCacheLocatorService -a 1.73047 Mb --> /System/Library/PrivateFrameworks/GenerationalStorage.framework/Versions/A/Support/revisiond 1.74219 Mb --> /System/Library/PrivateFrameworks/CommunicationsFilter.framework/CMFSyncAgent 1.76562 Mb --> /System/Library/CoreServices/mapspushd 1.77734 Mb --> /usr/libexec/AirPlayXPCHelper 1.78516 Mb --> /System/Library/PrivateFrameworks/AppStoreDaemon.framework/Support/appstoreagent 1.80078 Mb --> /usr/libexec/pboard 1.88281 Mb --> /System/Library/Frameworks/CryptoTokenKit.framework/ctkahp.bundle/Contents/MacOS/ctkahp 1.88672 Mb --> /usr/libexec/assertiond 1.91797 Mb --> /System/Library/CoreServices/SafariSupport.bundle/Contents/MacOS/SafariBookmarksSyncAgent 1.9375 Mb --> /usr/libexec/nehelper 1.99219 Mb --> /System/Library/Frameworks/AudioToolbox.framework/AudioComponentRegistrar -daemon 2.01562 Mb --> /System/Library/PrivateFrameworks/CoreFollowUp.framework/Versions/A/Support/followupd 2.05859 Mb --> /System/Library/PrivateFrameworks/IMFoundation.framework/XPCServices/IMRemoteURLConnectionAgent.xpc/Contents/MacOS/IMRemoteURLConnectionAgent 2.06641 Mb --> /usr/libexec/biokitaggdd 2.09766 Mb --> /usr/sbin/systemsoundserverd 2.10938 Mb --> /System/Library/PrivateFrameworks/CloudPhotoServices.framework/Versions/A/Frameworks/CloudPhotosConfigurationXPC.framework/Versions/A/XPCServices/com.apple.CloudPhotosConfiguration.xpc/Contents/MacOS/com.apple.CloudPhotosConfiguration 2.14062 Mb --> /System/Library/CoreServices/appleeventsd --server 2.15234 Mb --> /System/Library/CoreServices/cloudpaird 2.17578 Mb --> /System/Library/PrivateFrameworks/CoreParsec.framework/parsecd 2.21875 Mb --> /System/Library/PrivateFrameworks/WirelessDiagnostics.framework/Support/awdd 2.24219 Mb --> /System/Library/PrivateFrameworks/AmbientDisplay.framework/Versions/A/XPCServices/com.apple.AmbientDisplayAgent.xpc/Contents/MacOS/com.apple.AmbientDisplayAgent 2.24609 Mb --> /usr/sbin/httpd -D FOREGROUND 2.26562 Mb --> /System/Library/PrivateFrameworks/IMDPersistence.framework/XPCServices/IMDPersistenceAgent.xpc/Contents/MacOS/IMDPersistenceAgent 2.32812 Mb --> /System/Library/PrivateFrameworks/AuthKit.framework/Versions/A/Support/akd 2.39844 Mb --> /System/Library/Frameworks/CoreMediaIO.framework/Resources/VDC.plugin/Contents/Resources/VDCAssistant 2.55469 Mb --> /System/Library/CoreServices/coreservicesd 2.55859 Mb --> /System/Library/PrivateFrameworks/PassKitCore.framework/passd 2.58594 Mb --> /usr/libexec/corebrightnessd --launchd 2.59766 Mb --> /usr/sbin/WirelessRadioManagerd 2.61328 Mb --> /usr/libexec/lsd 2.66797 Mb --> /System/Library/Frameworks/Security.framework/Versions/A/Resources/CloudKeychainProxy.bundle/Contents/MacOS/CloudKeychainProxy 2.6875 Mb --> /System/Library/CoreServices/SubmitDiagInfo server-init 2.75391 Mb --> /System/Library/CoreServices/pbs 2.80469 Mb --> /usr/libexec/trustd --agent 2.81641 Mb --> /System/Library/PrivateFrameworks/CoreWLANKit.framework/Versions/A/XPCServices/WiFiProxy.xpc/Contents/MacOS/WiFiProxy 2.83594 Mb --> /System/Library/CoreServices/Software Update.app/Contents/Resources/softwareupdate_download_service 2.86328 Mb --> /System/Library/Frameworks/AddressBook.framework/Executables/ContactsAccountsService 2.91797 Mb --> /usr/libexec/dmd 2.92578 Mb --> /usr/libexec/timed 2.94141 Mb --> /usr/sbin/wirelessproxd 3.13672 Mb --> /usr/sbin/cfprefsd agent 3.14062 Mb --> /System/Library/Frameworks/AudioToolbox.framework/AudioComponentRegistrar 3.16406 Mb --> /usr/sbin/distnoted agent 3.23438 Mb --> /System/Library/PrivateFrameworks/MessagesKit.framework/Resources/soagent.app/Contents/MacOS/soagent 3.24219 Mb --> /System/Library/PrivateFrameworks/MediaRemote.framework/Support/mediaremoted 3.26172 Mb --> /System/Library/Frameworks/Security.framework/Versions/A/XPCServices/authd.xpc/Contents/MacOS/authd 3.33984 Mb --> /usr/sbin/cfprefsd daemon 3.41016 Mb --> /usr/libexec/nsurlsessiond --privileged 3.41797 Mb --> /usr/sbin/universalaccessd launchd -s 3.43359 Mb --> /System/Library/PrivateFrameworks/ViewBridge.framework/Versions/A/XPCServices/ViewBridgeAuxiliary.xpc/Contents/MacOS/ViewBridgeAuxiliary 3.53516 Mb --> /System/Library/PrivateFrameworks/CommerceKit.framework/Versions/A/Resources/storeaccountd 3.57031 Mb --> /System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/FSEvents.framework/Versions/A/Support/fseventsd 3.57812 Mb --> /System/Library/Frameworks/InputMethodKit.framework/Resources/imklaunchagent 3.57812 Mb --> /usr/libexec/keyboardservicesd 3.60938 Mb --> /System/Library/PrivateFrameworks/CloudDocsDaemon.framework/Versions/A/Support/bird 3.80469 Mb --> /usr/libexec/secinitd 3.875 Mb --> /usr/sbin/mDNSResponder 3.96875 Mb --> /usr/libexec/sysmond 4.07422 Mb --> /System/Library/PrivateFrameworks/HomeKitDaemon.framework/Support/homed 4.14453 Mb --> /System/Library/CoreServices/launchservicesd 4.21094 Mb --> /System/Library/PrivateFrameworks/CoreADI.framework/adid 4.21484 Mb --> /System/Library/Frameworks/MediaLibrary.framework/Versions/A/XPCServices/com.apple.MediaLibraryService.xpc/Contents/MacOS/com.apple.MediaLibraryService 4.24609 Mb --> /System/Library/PrivateFrameworks/TCC.framework/Resources/tccd 4.27344 Mb --> /usr/sbin/systemstats --daemon 4.32031 Mb --> /System/Library/Frameworks/LocalAuthentication.framework/Support/coreauthd 4.39453 Mb --> /System/Library/PrivateFrameworks/GeoServices.framework/Versions/A/XPCServices/com.apple.geod.xpc/Contents/MacOS/com.apple.geod 4.42578 Mb --> /usr/libexec/biometrickitd --launchd 4.49219 Mb --> /usr/libexec/UserEventAgent (System) 4.51172 Mb --> /usr/libexec/rapportd 4.51172 Mb --> /usr/sbin/coreaudiod 4.55859 Mb --> /System/Library/PrivateFrameworks/UserActivity.framework/Agents/useractivityd 4.58203 Mb --> /System/Library/CoreServices/diagnostics_agent 4.66797 Mb --> /usr/libexec/lsd runAsRoot 4.67578 Mb --> /System/Library/Frameworks/CoreServices.framework/Frameworks/Metadata.framework/Versions/A/Support/mdworker_shared -s mdworker -c 4.74219 Mb --> /System/Library/Input Methods/PressAndHold.app/Contents/PlugIns/PAH_Extension.appex/Contents/MacOS/PAH_Extension 4.75781 Mb --> /System/Library/CoreServices/powerd.bundle/powerd 4.76172 Mb --> /usr/sbin/securityd -i 4.87891 Mb --> /System/Library/PrivateFrameworks/CoreAnalytics.framework/Support/analyticsd 4.89844 Mb --> /usr/libexec/hidd 4.90625 Mb --> /System/Library/Frameworks/Quartz.framework/Versions/A/Frameworks/QuickLookUI.framework/Versions/A/XPCServices/QuickLookUIService.xpc/Contents/MacOS/QuickLookUIService 4.98047 Mb --> /usr/local/bin/warsaw/core 5.06641 Mb --> /usr/libexec/UserEventAgent (Aqua) 5.18359 Mb --> /usr/sbin/bluetoothd 5.33984 Mb --> /System/Library/Frameworks/MediaAccessibility.framework/Versions/A/XPCServices/com.apple.accessibility.mediaaccessibilityd.xpc/Contents/MacOS/com.apple.accessibility.mediaaccessibilityd 5.40234 Mb --> /System/Library/PrivateFrameworks/IMCore.framework/imagent.app/Contents/MacOS/imagent 5.73438 Mb --> /usr/libexec/nsurlstoraged 5.76953 Mb --> /System/Library/PrivateFrameworks/ProtectedCloudStorage.framework/Helpers/ProtectedCloudKeySyncing 5.92188 Mb --> /usr/libexec/fmfd 5.94141 Mb --> /System/Library/PrivateFrameworks/TCC.framework/Resources/tccd system 5.98828 Mb --> /System/Library/PrivateFrameworks/GeoServices.framework/Versions/A/XPCServices/com.apple.geod.xpc/Contents/MacOS/com.apple.geod 5.99219 Mb --> /System/Library/CoreServices/AirPlayUIAgent.app/Contents/MacOS/AirPlayUIAgent --launchd 6.04688 Mb --> /System/Library/PrivateFrameworks/CommerceKit.framework/Resources/LaterAgent.app/Contents/MacOS/LaterAgent 6.12109 Mb --> /usr/libexec/pkd 6.26562 Mb --> /System/Library/PrivateFrameworks/CoreDuetContext.framework/Resources/contextstored 6.3125 Mb --> /System/Library/PrivateFrameworks/PhotoAnalysis.framework/Versions/A/Support/photoanalysisd 6.36328 Mb --> /System/Library/CoreServices/CoreLocationAgent.app/Contents/MacOS/CoreLocationAgent 6.42188 Mb --> /usr/sbin/usernoted 6.50391 Mb --> /System/Library/PrivateFrameworks/TelephonyUtilities.framework/callservicesd 6.50781 Mb --> /System/Library/CoreServices/WiFiAgent.app/Contents/MacOS/WiFiAgent 6.57031 Mb --> /System/Library/CoreServices/talagent 6.57812 Mb --> /System/Library/PrivateFrameworks/IDS.framework/identityservicesd.app/Contents/MacOS/identityservicesd 6.66016 Mb --> /System/Library/PrivateFrameworks/AuthKit.framework/Versions/A/Support/akd 6.69531 Mb --> /System/Library/PrivateFrameworks/Noticeboard.framework/Versions/A/Resources/nbagent.app/Contents/MacOS/nbagent 6.76562 Mb --> /usr/libexec/configd 6.84766 Mb --> /System/Library/Frameworks/LocalAuthentication.framework/Support/coreauthd 6.85938 Mb --> /System/Library/CoreServices/PowerChime.app/Contents/MacOS/PowerChime 6.92188 Mb --> /System/Library/PrivateFrameworks/CommerceKit.framework/Versions/A/Resources/storeuid.app/Contents/MacOS/storeuid 6.93359 Mb --> /usr/libexec/findmydeviced 7.01562 Mb --> /System/Library/PrivateFrameworks/CommerceKit.framework/Versions/A/Resources/storeassetd 7.01953 Mb --> /System/Library/CoreServices/iconservicesagent 7.07031 Mb --> /usr/libexec/dasd 7.40234 Mb --> /usr/libexec/knowledge-agent 7.80078 Mb --> /System/Library/Frameworks/ApplicationServices.framework/Frameworks/ATS.framework/Support/fontd 8.07812 Mb --> /usr/libexec/symptomsd 8.20703 Mb --> /System/Library/CoreServices/Siri.app/Contents/MacOS/Siri launchd 8.24609 Mb --> /System/Library/Input Methods/EmojiFunctionRowIM.app/Contents/PlugIns/EmojiFunctionRowIM_Extension.appex/Contents/MacOS/EmojiFunctionRowIM_Extension 8.65625 Mb --> /usr/libexec/syspolicyd 8.66016 Mb --> /usr/libexec/opendirectoryd 8.70312 Mb --> /usr/libexec/nsurlsessiond 8.80078 Mb --> /usr/libexec/sandboxd 8.89453 Mb --> /System/Library/PrivateFrameworks/ApplePushService.framework/apsd 8.93359 Mb --> /System/Library/PrivateFrameworks/GeoServices.framework/Versions/A/XPCServices/com.apple.geod.xpc/Contents/MacOS/com.apple.geod 8.96094 Mb --> /System/Library/Frameworks/AudioToolbox.framework/XPCServices/com.apple.audio.SandboxHelper.xpc/Contents/MacOS/com.apple.audio.SandboxHelper 9.01562 Mb --> /System/Library/PrivateFrameworks/CoreCDP.framework/Versions/A/Resources/cdpd 9.04688 Mb --> /System/Library/CoreServices/CoreServicesUIAgent.app/Contents/MacOS/CoreServicesUIAgent 9.08594 Mb --> /System/Library/Frameworks/CoreTelephony.framework/Support/CommCenter -L 9.08984 Mb --> /usr/libexec/routined LAUNCHED_BY_LAUNCHD 9.16016 Mb --> /usr/libexec/PerfPowerServices 9.22266 Mb --> /System/Library/PrivateFrameworks/CommerceKit.framework/Versions/A/Resources/commerce 9.35156 Mb --> /Applications/Network Security by Max 9.36328 Mb --> /System/Library/CoreServices/Dock.app/Contents/MacOS/Dock 9.60547 Mb --> /usr/libexec/mobileassetd 10.0234 Mb --> /sbin/launchd 10.2773 Mb --> /Applications/Google Chrome.app/Contents/Versions/71.0.3578.98/Google Chrome Helper.app/Contents/MacOS/Google 10.2773 Mb --> /Applications/Google Chrome.app/Contents/Versions/71.0.3578.98/Google Chrome Helper.app/Contents/MacOS/Google 10.332 Mb --> /Applications/Google Chrome.app/Contents/Versions/71.0.3578.98/Google Chrome Helper.app/Contents/MacOS/Google 10.4336 Mb --> /usr/local/mysql/bin/mysqld --user=_mysql --basedir=/usr/local/mysql --datadir=/usr/local/mysql/data 10.4414 Mb --> /usr/libexec/kextd 10.4727 Mb --> /System/Library/Frameworks/VideoToolbox.framework/Versions/A/XPCServices/VTDecoderXPCService.xpc/Contents/MacOS/VTDecoderXPCService 10.5352 Mb --> /usr/sbin/netbiosd 10.582 Mb --> /Applications/Open File.app/Contents/MacOS/Open File -psn_0_77843 10.8398 Mb --> /System/Library/CoreServices/Dock.app/Contents/XPCServices/com.apple.dock.extra.xpc/Contents/MacOS/com.apple.dock.extra 10.9336 Mb --> /System/Library/PrivateFrameworks/CalendarNotification.framework/Versions/A/XPCServices/CalNCService.xpc/Contents/MacOS/CalNCService 11.0273 Mb --> /System/Library/CoreServices/cloudphotosd.app/Contents/MacOS/cloudphotosd 11.0703 Mb --> /usr/libexec/locationd 11.2773 Mb --> /System/Library/Frameworks/VideoToolbox.framework/Versions/A/XPCServices/VTDecoderXPCService.xpc/Contents/MacOS/VTDecoderXPCService 11.3047 Mb --> /System/Library/Frameworks/iTunesLibrary.framework/Versions/A/XPCServices/com.apple.iTunesLibraryService.xpc/Contents/MacOS/com.apple.iTunesLibraryService 11.5 Mb --> /usr/libexec/TouchBarServer 11.875 Mb --> /Applications/Google Chrome.app/Contents/Versions/71.0.3578.98/Google Chrome Helper.app/Contents/MacOS/Google 11.9844 Mb --> /usr/libexec/adprivacyd 12.0547 Mb --> /Applications/Utilities/Activity Monitor.app/Contents/MacOS/Activity Monitor -psn_0_65552 12.1992 Mb --> /usr/libexec/sharingd 12.2227 Mb --> /usr/libexec/logd 12.3281 Mb --> /usr/libexec/trustd 12.7422 Mb --> /usr/libexec/airportd 13.1484 Mb --> /System/Library/CoreServices/LocationMenu.app/Contents/MacOS/LocationMenu 13.3594 Mb --> /System/Library/Frameworks/Accounts.framework/Versions/A/Support/accountsd 13.4648 Mb --> /Applications/Google Chrome.app/Contents/Versions/71.0.3578.98/Google Chrome Helper.app/Contents/MacOS/Google 13.5547 Mb --> /usr/libexec/trustd --agent 13.7031 Mb --> /usr/libexec/siriknowledged 15.0664 Mb --> /usr/libexec/coreduetd 15.1758 Mb --> /System/Library/Frameworks/LocalAuthentication.framework/Support/coreautha.bundle/Contents/MacOS/coreautha 15.2305 Mb --> /System/Library/Frameworks/CoreServices.framework/Frameworks/Metadata.framework/Support/mds 15.2422 Mb --> /System/Library/CoreServices/SystemUIServer.app/Contents/MacOS/SystemUIServer 15.668 Mb --> /Applications/Google Chrome.app/Contents/Versions/71.0.3578.98/Google Chrome Helper.app/Contents/MacOS/Google 15.8867 Mb --> /System/Library/PrivateFrameworks/AssistantServices.framework/Versions/A/XPCServices/com.apple.siri.ClientFlow.ClientScripter.xpc/Contents/MacOS/com.apple.siri.ClientFlow.ClientScripter 16.1719 Mb --> /Applications/Google Chrome.app/Contents/Versions/71.0.3578.98/Google Chrome Helper.app/Contents/MacOS/Google 16.2109 Mb --> /usr/local/bin/warsaw/core 16.4648 Mb --> /System/Library/PrivateFrameworks/CoreSuggestions.framework/Versions/A/Support/suggestd 16.6211 Mb --> /usr/libexec/secd 16.707 Mb --> /System/Library/CoreServices/Spotlight.app/Contents/MacOS/Spotlight 17.375 Mb --> /System/Library/Frameworks/CoreServices.framework/Frameworks/Metadata.framework/Versions/A/Support/mdworker_shared -s mdworker -c 17.8984 Mb --> /System/Library/Frameworks/CoreServices.framework/Frameworks/Metadata.framework/Versions/A/Support/corespotlightd 18.3789 Mb --> /System/Library/PrivateFrameworks/FMClient.framework/Versions/A/XPCServices/FMIPClientXPCService.xpc/Contents/MacOS/FMIPClientXPCService 18.8633 Mb --> /System/Library/CoreServices/ControlStrip.app/Contents/XPCServices/com.apple.DFRSystemExtra.Siri.xpc/Contents/MacOS/com.apple.DFRSystemExtra.Siri 19.5508 Mb --> /System/Library/PrivateFrameworks/CloudKitDaemon.framework/Support/cloudd 19.793 Mb --> /Applications/Google Chrome.app/Contents/Versions/71.0.3578.98/Google Chrome Helper.app/Contents/MacOS/Google 21.1406 Mb --> /System/Library/CoreServices/OSDUIHelper.app/Contents/MacOS/OSDUIHelper 22.2773 Mb --> /System/Library/Frameworks/ApplicationServices.framework/Frameworks/SpeechSynthesis.framework/Resources/com.apple.speech.speechsynthesisd 23.75 Mb --> /Applications/Google Chrome.app/Contents/Versions/71.0.3578.98/Google Chrome Helper.app/Contents/MacOS/Google 23.918 Mb --> /Applications/Google Chrome.app/Contents/Versions/71.0.3578.98/Google Chrome Helper.app/Contents/MacOS/Google 24.2031 Mb --> /System/Library/CoreServices/loginwindow.app/Contents/MacOS/loginwindow console 25.1484 Mb --> /System/Library/CoreServices/Software Update.app/Contents/Resources/softwareupdated 25.2891 Mb --> /System/Library/PrivateFrameworks/CloudServices.framework/Versions/A/XPCServices/com.apple.sbd.xpc/Contents/MacOS/com.apple.sbd 25.4062 Mb --> /System/Library/CoreServices/EscrowSecurityAlert.app/Contents/MacOS/EscrowSecurityAlert 26.5859 Mb --> /System/Library/CoreServices/NotificationCenter.app/Contents/MacOS/NotificationCenter 26.6211 Mb --> /Applications/Google Chrome.app/Contents/Versions/71.0.3578.98/Google Chrome Helper.app/Contents/MacOS/Google 27.6523 Mb --> /System/Library/CoreServices/Finder.app/Contents/MacOS/Finder 30.3398 Mb --> /Applications/Google Chrome.app/Contents/Versions/71.0.3578.98/Google Chrome Helper.app/Contents/MacOS/Google 32.8047 Mb --> /System/Library/CoreServices/ControlStrip.app/Contents/MacOS/ControlStrip 34.2148 Mb --> /System/Library/PrivateFrameworks/AssistantServices.framework/Versions/A/Support/assistantd 36.6289 Mb --> /Applications/Google Chrome.app/Contents/Versions/71.0.3578.98/Google Chrome Helper.app/Contents/MacOS/Google 38.5078 Mb --> /System/Library/PrivateFrameworks/CalendarAgent.framework/Executables/CalendarAgent 40.3516 Mb --> /Applications/Google Chrome.app/Contents/Versions/71.0.3578.98/Google Chrome Helper.app/Contents/MacOS/Google 46.5898 Mb --> /Applications/Google Chrome.app/Contents/Versions/71.0.3578.98/Google Chrome Helper.app/Contents/MacOS/Google 52.6367 Mb --> /System/Library/Services/AppleSpell.service/Contents/MacOS/AppleSpell 53.7695 Mb --> /System/Library/Frameworks/CoreServices.framework/Frameworks/Metadata.framework/Versions/A/Support/mds_stores 54.6406 Mb --> /Applications/Google Chrome.app/Contents/Versions/71.0.3578.98/Google Chrome Helper.app/Contents/MacOS/Google 55.1445 Mb --> /System/Library/Frameworks/CoreServices.framework/Frameworks/Metadata.framework/Versions/A/Support/mdworker_shared -s mdworker -c 55.3008 Mb --> /Applications/Google Chrome.app/Contents/Versions/71.0.3578.98/Google Chrome Helper.app/Contents/MacOS/Google 55.8711 Mb --> /System/Library/CoreServices/Siri.app/Contents/XPCServices/SiriNCService.xpc/Contents/MacOS/SiriNCService 56.793 Mb --> /System/Library/Frameworks/CoreServices.framework/Frameworks/Metadata.framework/Versions/A/Support/mdworker_shared -s mdworker -c 61.8828 Mb --> /System/Library/Frameworks/CoreServices.framework/Frameworks/Metadata.framework/Versions/A/Support/mdworker_shared -s mdworker -c 64.7773 Mb --> /System/Library/Frameworks/CoreServices.framework/Frameworks/Metadata.framework/Versions/A/Support/mdworker_shared -s mdworker -c 87.7422 Mb --> /System/Library/PrivateFrameworks/SkyLight.framework/Resources/WindowServer -daemon 89.9062 Mb --> /Applications/Google Chrome.app/Contents/Versions/71.0.3578.98/Google Chrome Helper.app/Contents/MacOS/Google 94.3867 Mb --> /Applications/Google Chrome.app/Contents/Versions/71.0.3578.98/Google Chrome Helper.app/Contents/MacOS/Google 102.297 Mb --> /Applications/Utilities/Terminal.app/Contents/MacOS/Terminal -psn_0_69649 112.156 Mb --> /Applications/Google Chrome.app/Contents/Versions/71.0.3578.98/Google Chrome Helper.app/Contents/MacOS/Google 119.66 Mb --> /System/Library/PrivateFrameworks/AssistantServices.framework/Versions/A/Support/assistant_service 126.316 Mb --> /Applications/Google Chrome.app/Contents/Versions/71.0.3578.98/Google Chrome Helper.app/Contents/MacOS/Google 235.273 Mb --> /Applications/Google Chrome.app/Contents/Versions/71.0.3578.98/Google Chrome Helper.app/Contents/MacOS/Google 273.75 Mb --> /Applications/Google Chrome.app/Contents/Versions/71.0.3578.98/Google Chrome Helper.app/Contents/MacOS/Google 304.984 Mb --> /Applications/Google Chrome.app/Contents/Versions/71.0.3578.98/Google Chrome Helper.app/Contents/MacOS/Google 344.969 Mb --> /Applications/Google Chrome.app/Contents/MacOS/Google Chrome 385.055 Mb --> /Applications/Notes.app/Contents/MacOS/Notes -psn_0_73746 530.66 Mb --> /Applications/Google Chrome.app/Contents/Versions/71.0.3578.98/Google Chrome Helper.app/Contents/MacOS/Google
=========== grep -ri "amigos" my_php_stuff/ my_php_stuff//nano.save:$query = "SELECT * FROM amigos ORDER BY nome"; my_php_stuff//nano.save:$query = "SELECT * FROM amigos ORDER BY nome"; my_php_stuff//amigos.php: my_php_stuff//d4.php:$sql = "SELECT id, nome, cidade FROM amigos"; my_php_stuff//list2.php:$sql = "SELECT id, nome, cidade FROM amigos"; my_php_stuff//d3.php:$query2="SELECT * FROM amigos"; my_php_stuff//d2.php:$query2="SELECT * FROM amigos"; my_php_stuff//b.php:$tablename = "amigos"; my_php_stuff//c7.php: $query = "SELECT * FROM amigos"; my_php_stuff//c5.php:$query = "SELECT * FROM amigos"; =========== sudo nmap -sS localhost Starting Nmap 7.70 ( https://nmap.org ) at 2019-01-14 22:09 -02 Nmap scan report for localhost (127.0.0.1) Host is up (0.000097s latency). Other addresses for localhost (not scanned): ::1 Not shown: 998 closed ports PORT STATE SERVICE 80/tcp open http 3306/tcp open mysql =========== history | awk '{print $2}' | sort | uniq -c | sort -rn | head 90 sudo 66 tail 55 ls 34 nano 34 lsof 29 cd 25 cat 16 ssh 16 ps 12 netstat =========== ps aux |awk '{$1} {++P[$1]} END {for(a in P) if (a !="USER") print a,P[a]}' root 110 _usbmuxd 1 _nsurlstoraged 1 _applepay 2 _assetcache 1 juraa.p. 185 _locationd 6 _gamecontrollerd 1 _www 8 _mdnsresponder 1 _cmiodalassistants 1 _hidd 1 _timed 1 _spotlight 3 _appleevents 1 _displaypolicyd 1 _mysql 1 _fpsd 1 _analyticsd 1 _iconservices 1 _coreaudiod 3 _captiveagent 1 _windowserver 1 _networkd 1 _distnote 1 _netbios 1 _ctkd 1 _nsurlsessiond 1 _softwareupdate 1 =========== Go to https://www.sequelpro.com and download Sequel Pro. This is like phpMyAdmin, but better because it’s a desktop app.  Go through the installation, open Sequel Pro, and enter 127.0.0.1 for the Host. Enter root for the Username and newpassword for the Password. Press Connect =========== ps aux | grep mysql _mysql 2739 0.3 2.4 4907988 395536 s000 S 9:29PM 0:01.73 /usr/local/mysql/bin/mysqld --basedir=/usr/local/mysql --datadir=/usr/local/mysql/data --plugin-dir=/usr/local/mysql/lib/plugin --user=mysql --log-error=MacBook-Pro-de-Jura.local.err --pid-file=/usr/local/mysql/data/MacBook-Pro-de-Jura.local.pid root 2655 0.0 0.0 4271688 1348 s000 S 9:29PM 0:00.02 /bin/sh /usr/local/mysql/bin/mysqld_safe --datadir=/usr/local/mysql/data --pid-file=/usr/local/mysql/data/MacBook-Pro-de-Jura.local.pid juraa.p. 2784 0.0 0.0 4268036 796 s000 S+ 9:32PM 0:00.00 grep mysql sudo kill -9 2655 ps aux | grep mysql _mysql 2739 0.3 2.4 4907988 395536 s000 S 9:29PM 0:01.95 /usr/local/mysql/bin/mysqld --basedir=/usr/local/mysql --datadir=/usr/local/mysql/data --plugin-dir=/usr/local/mysql/lib/plugin --user=mysql --log-error=MacBook-Pro-de-Jura.local.err --pid-file=/usr/local/mysql/data/MacBook-Pro-de-Jura.local.pid juraa.p. 2791 0.0 0.0 4268036 796 s000 S+ 9:33PM 0:00.00 grep mysql sudo kill -9 2739 ps aux | grep mysql juraa.p. 2795 0.0 0.0 4268036 796 s000 S+ 9:33PM 0:00.00 grep mysql
Ruby
Ruby é uma Linguagem de programação interpretada, com tipagem dinâmica e forte, orientada a objetos e, com várias semelhanças com Perl, Python e SmallTalk. Ruby é uma Linguagem de programação interpretada, com tipagem dinâmica e forte, orientada a objetos e, com várias semelhanças com Perl, Python e SmallTalk. No terminal digite: ruby --version ruby 2.3.7p456 (2018-03-28 revision 63024) [universal.x86_64-darwin18] ============= nano hello.rb puts "Hello, world!" print "Hello Ruby!\n" ctrl + x + y ruby hello.rb Hello, world! ============= ruby -e 'print "Hello Ruby!\n"' Hello Ruby! ============= ruby -e 'print "Hello Ruby!\n"' -e 'print "Goodbye Ruby!\n"' Hello Ruby! Goodbye Ruby! ============= ruby name.rb puts "Please enter your name." name = gets puts "Hi, #{name}! I'm Ruby!" ctrl + x + y Please enter your name. Jurandir ( nome Jurandir foi digitado ) Hi, Jurandir ! I'm Ruby! ============= nano dir1.rb #!/usr/bin/env ruby def prnthelp puts "Hello sir, what would you like to do?" puts "1: dir" puts "2: exit" end def loop prnthelp case gets.chomp.to_i when 1 then system('ls -la') when 2 then exit exit end loop end loop ruby dir1.rb Hello sir, what would you like to do? 1: dir 2: exit 1 total 32 drwxr-xr-x 6 juraa.p. staff 192 Jan 8 11:10 . drwxr-xr-x+ 41 juraa.p. staff 1312 Jan 8 11:02 .. -rw-r--r-- 1 juraa.p. staff 249 Jan 8 11:10 dir1.rb -rw-r--r-- 1 juraa.p. staff 44 Jan 8 10:59 hello.rb -rw-r--r-- 1 juraa.p. staff 74 Jan 8 11:03 name.rb -rw-r--r-- 1 juraa.p. staff 78 Jan 8 11:07 name2.rb Hello sir, what would you like to do? 1: dir 2: exit 2 ============= hello.rb puts "Hello, world!" print "Hello Ruby!\n" puts "\e[31m" # set format (red foreground) puts "This is a red line........." puts "\e[0m" # clear format puts "\033[36m" puts "xxxxxxxxxxxxxxxxxx"![]()
"Wisdom is like a river, the deeper it is the less noise it makes"Afim de aprender mais? Fale comigo: linux1.noip@gmail.com