This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision Last revision Both sides next revision | ||
os:macos [2022/08/11 17:51] tomas |
os:macos [2023/10/25 15:16] 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 | brew install corkscrew | ||
brew install htop # ==> https:// | brew install htop # ==> https:// | ||
Line 10: | Line 10: | ||
brew install tree # ==> http:// | brew install tree # ==> http:// | ||
brew install vim # ==> https:// | 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ů\\ | ||
+ | sudo installer -verbose -pkg aaa.pkg ... nainstaluje balíček\\ | ||
+ | pkgutil --pkgs ... seznam nainstalovaných balíčku\\ | ||
+ | pkgutil --pkg-info net.pulsesecure.TnccPlugin.pkg ... informace o balíčku\\ | ||
+ | pkgutil --only-files --files net.pulsesecure.TnccPlugin.pkg ... seznam nainstalovaných souboru z balíčku\\ | ||
- | == Sit/network == | + | ==== Sit/network ==== |
- | = Routing | + | [[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 35: | ||
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\\ | ||
+ | |||
+ | ==== 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\\ |