This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision | ||
os:macos [2022/08/11 17:51] tomas |
os:macos [2024/09/24 13:13] (current) tomas [Sit/network] |
||
---|---|---|---|
Line 1: | Line 1: | ||
- | =====MacOS===== | + | ===== MacOS ===== |
- | == Sluzby == | + | ==== Sluzby==== |
launchctl list ... seznam slizem\\ | launchctl list ... seznam slizem\\ | ||
launchctl unload | launchctl unload | ||
- | == Balickovaci system == | + | ==== Balickovaci system ==== |
- | brew install corkscrew | + | sudo installer -verbose -pkg aaa.pkg ... nainstaluje balíček\\ |
- | brew install htop # ==> https:// | + | pkgutil --pkgs |
- | brew install node # ==> https:// | + | pkgutil --pkg-info net.pulsesecure.TnccPlugin.pkg ... informace o balíčku\\ |
- | brew install tree # ==> http://mama.indstate.edu/ | + | pkgutil --only-files --files net.pulsesecure.TnccPlugin.pkg ... seznam nainstalovaných souboru z balíčku\\ |
- | brew install vim # ==> https://www.vim.orgtunnel SSH through HTTP proxies | + | |
- | == Sit/network == | + | === Homebrew === |
- | = Routing | + | brew install corkscrew |
+ | brew install htop # ==> https:// | ||
+ | brew install node # ==> https:// | ||
+ | brew install tree # ==> http:// | ||
+ | brew install vim # ==> https:// | ||
+ | brew install --cask balícek ... nejaké balíčky jsou typu cask - instalace balíčku\\ | ||
+ | brew uninstall cask -balíček ... odinstalace cask balíčku\\ | ||
+ | brew upgrade --cask --greedy --all ... upgrade a přeinstalování všech cask balíčků\\ | ||
+ | |||
+ | === Macports === | ||
+ | port ... management [[https:// | ||
+ | sudo port -v selfupdate\\ | ||
+ | sudo port install nodejs10 ... instalace node\\ | ||
+ | port installed ... seznam nainstalovaných balíčků\\ | ||
+ | |||
+ | |||
+ | === pkgsrc === | ||
+ | |||
+ | ==== Sit/network ==== | ||
+ | [[https:// | ||
+ | **stove karty**\\ | ||
+ | ifconfig ... seznam síťových zařízení a ip adres\\ | ||
+ | ifconfig lo0 10.0.0.1 alias ... pride dalsi alias (ip adresu)\\ | ||
+ | scutil --proxy ... ukáže nastavení proxy\\ | ||
+ | |||
+ | **Routing**\\ | ||
netstat -rn #... zobrazi routovaci tabulku\\ | netstat -rn #... zobrazi routovaci tabulku\\ | ||
route delete default\\ | route delete default\\ | ||
Line 22: | Line 46: | ||
networksetup -listnetworkserviceorder #.. jine vylistovani\\ | networksetup -listnetworkserviceorder #.. jine vylistovani\\ | ||
networksetup -setadditionalroutes networkservice [dest1 mask1 gate1] [dest2 mask2 gate2] ... [destN maskN gateN]]\\ | networksetup -setadditionalroutes networkservice [dest1 mask1 gate1] [dest2 mask2 gate2] ... [destN maskN gateN]]\\ | ||
+ | |||
+ | **firewall - pf packet filtering**\\ | ||
+ | '' | ||
+ | '' | ||
+ | '' | ||
+ | '' | ||
+ | '' | ||
+ | '' | ||
+ | '' | ||
+ | %%echo "rdr pass on lo0 inet proto tcp from any to 10.0.0.1 port 80 -> 127.0.0.1 port 3000" | sudo pfctl -ef -%%\\ | ||
+ | '' | ||
+ | '' | ||
+ | '' | ||
+ | |||
+ | **name resolution**\\ | ||
+ | discoveryutil udnsflushcaches\\ | ||
+ | dscacheutil -flushcache\\ | ||
+ | |||
+ | **Síťové profily** | ||
+ | networksetup -listlocations ... seznam profilů, tzv. lokací\\ | ||
+ | networksetup -getcurrentlocation ... ukáže aktuálmí profil\\ | ||
+ | networksetup -switchtolocation aaa ... přepne na profil aaa\\ | ||
== Microsoft Defender == | == Microsoft Defender == | ||
mdatp\\ | mdatp\\ | ||
+ | |||
+ | ==other== | ||
+ | csrutil status ... system integrity protection status\\ | ||
+ | |||
+ | |||
+ | xattr -dr com.apple.quarantine / | ||
+ | ==== správa zařízení a disků ==== | ||
+ | system_profiler SPUSBDataType ... ukáže připojená USB zařízení\\ | ||
+ | system_profiler SPPCIDataType ... sezam PCI zařízení\\ | ||
+ | diskutil list ... seznam disků\\ | ||
+ | diskutil listFilesystems ... seznam file systémů\\ | ||
+ | ioreg -p IOUSB seznam USB\\ |