{"id":142,"date":"2019-08-23T11:00:07","date_gmt":"2019-08-23T09:00:07","guid":{"rendered":"https:\/\/expanic.at\/wordpress\/?p=142"},"modified":"2025-09-22T11:10:52","modified_gmt":"2025-09-22T09:10:52","slug":"terminal","status":"publish","type":"post","link":"https:\/\/expanic.at\/wordpress\/2019\/08\/23\/terminal\/","title":{"rendered":"Terminal"},"content":{"rendered":"\n<h2 class=\"wp-block-heading\">PDF-Meta-Daten \u00e4ndern<\/h2>\n\n\n\n<p>Gib in der App \u201eTerminal\u201c\u00a0<img loading=\"lazy\" decoding=\"async\" height=\"30\" width=\"30\" src=\"https:\/\/help.apple.com\/assets\/65A8106E7C69B635140E606E\/65A81072C0272B1FFA02DE51\/de_DE\/20f5edbfdfa0bd8ad4c4c6452e5b6761.png\" alt=\"\">\u00a0auf deinem Mac die folgenden Befehle ein, um die Meta-Daten eines .PDF zu \u00e4ndern. Ggf vorher das .PDF reparieren: <\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">brew install exiftool<br>brew install ghostscript<br><br>gs -o repaired.pdf -sDEVICE=pdfwrite -dPDFSETTINGS=\/prepress \/Users\/a\/Desktop\/BROKEN.pdf<br><br>exiftool -PDF:CreateDate=\"2025:09:22 10:11:17\" repaired.pdf<br>exiftool -PDF:ModifyDate=\"2025:09:22 10:11:17\" repaired.pdf<br>exiftool -Title=\"Mein neuer PDF-Titel\" -overwrite_original \/Users\/a\/Desktop\/repaired.pdf<br><br>PR\u00dcFEN: <br>exiftool \/Users\/a\/repaired.pdf | grep Title<br><br><br><\/pre>\n\n\n\n<div style=\"height:100px\" aria-hidden=\"true\" class=\"wp-block-spacer\"><\/div>\n\n\n\n<h2 class=\"wp-block-heading\">Keine Zeitpl\u00e4ne mehr in Sonoma &#8211; pmset<\/h2>\n\n\n\n<p>Gib in der App \u201eTerminal\u201c&nbsp;<img loading=\"lazy\" decoding=\"async\" height=\"30\" width=\"30\" src=\"https:\/\/help.apple.com\/assets\/65A8106E7C69B635140E606E\/65A81072C0272B1FFA02DE51\/de_DE\/20f5edbfdfa0bd8ad4c4c6452e5b6761.png\" alt=\"\">&nbsp;auf deinem Mac den Befehl&nbsp;<code>pmset<\/code>&nbsp;ein. Eine Liste der Befehle, die du verwenden kannst, findest du auf der&nbsp;<a href=\"x-man-page:\/\/pmset\">pmset<\/a>&nbsp;man-Seite. F\u00fchre zum Beispiel k\u00f6nntest du folgendes ausprobieren:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><code>pmset -g sched<\/code>: Siehe dir den aktuellen Zeitplan an.<\/li>\n\n\n\n<li><code>sudo pmset repeat wake M 8:00:00<\/code>: Stelle deinen Mac so ein, dass er jeden Montag um 8:00 Uhr den Ruhezustand beendet.<\/li>\n\n\n\n<li><code>sudo pmset repeat cancel<\/code>: L\u00f6sche den aktuellen Zeitplan.<\/li>\n<\/ul>\n\n\n\n<p>Dr\u00fccke den Zeilenschalter. Um zu sehen, welche Schedules aktiv sind: <\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">x@iMac24i2021-User ~ % pmset -g sched<br>Repeating power events:<br>  wakepoweron at 9:55PM every day<br>  shutdown at 0:00AM every day<br><\/pre>\n\n\n\n<p>Um auch die folgenden Eintr\u00e4ge zu entfernen: <\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">Scheduled power events:<br>[0] wake at 11\/28\/2024 17:16:40 by 'com.bombich.ccchelper'<br>[1] wake at 11\/28\/2024 23:03:01 by 'com.apple.alarm.user-invisible-com.apple.acmd.alarm'<\/pre>\n\n\n\n<p>&#171;<strong>sudo pmset sched cancelall<\/strong>&#187; und danach folgenden Befehl anwenden:<\/p>\n\n\n\n<p><strong>&#171;sudo chflags schg \/Library\/Preferences\/SystemConfiguration\/com.apple.AutoWake.plist&#187;<\/strong><\/p>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<p><strong>TIPP<\/strong>: use <strong>ONYX<\/strong> for a GUI \ud83d\ude09<\/p>\n\n\n\n<div style=\"height:100px\" aria-hidden=\"true\" class=\"wp-block-spacer\"><\/div>\n\n\n\n<h2 class=\"wp-block-heading\">Mit netcat zB STARTSSL beim SMTP-Server testen:<\/h2>\n\n\n\n<pre class=\"wp-block-preformatted\">nc -C smtp.securehost.de 25<br>EHLO expanic.com<\/pre>\n\n\n\n<div style=\"height:100px\" aria-hidden=\"true\" class=\"wp-block-spacer\"><\/div>\n\n\n\n<h2 class=\"wp-block-heading\">CCC less restrictive for non-admin users<\/h2>\n\n\n\n<p><em>Modifying CCC&#8217;s Security Configuration:<br>Those instructions indicate how to make the CCC privilege more restricted. If you want to make it less restricted, run these commands in the Terminal instead. The non-admin user should then be able to run CCC tasks without additional authorization.<\/em><\/p>\n\n\n\n<p>Folgenden Befehl in der App \u201e<strong>Terminal<\/strong>\u201c&nbsp;auf dem Mac eingeben:<code> <\/code><\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">security authorizationdb read com.bombich.ccc.helper &gt; \/tmp\/ccc.plist<br>defaults write \/tmp\/ccc \"authenticate-user\" -bool NO<br>defaults write \/tmp\/ccc \"session-owner\" -bool YES<br>plutil -convert xml1 \/tmp\/ccc.plist<br>security authorizationdb write com.bombich.ccc.helper &lt; \/tmp\/ccc.plist<br>security authorize -ud com.bombich.ccc.helper<\/pre>\n\n\n\n<div style=\"height:100px\" aria-hidden=\"true\" class=\"wp-block-spacer\"><\/div>\n\n\n\n<h2 class=\"wp-block-heading\">macOS Version einer externen SSD feststellen<\/h2>\n\n\n\n<p>Folgenden Befehl in der App \u201e<strong>Terminal<\/strong>\u201c&nbsp;auf dem Mac eingeben:<code> <\/code><\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">cat \/System\/Library\/CoreServices\/SystemVersion.plist<\/pre>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"468\" src=\"https:\/\/expanic.at\/wordpress\/wp-content\/uploads\/2024\/05\/determine-macOS-version-1024x468.png\" alt=\"\" class=\"wp-image-886\" srcset=\"https:\/\/expanic.at\/wordpress\/wp-content\/uploads\/2024\/05\/determine-macOS-version-1024x468.png 1024w, https:\/\/expanic.at\/wordpress\/wp-content\/uploads\/2024\/05\/determine-macOS-version-300x137.png 300w, https:\/\/expanic.at\/wordpress\/wp-content\/uploads\/2024\/05\/determine-macOS-version-768x351.png 768w, https:\/\/expanic.at\/wordpress\/wp-content\/uploads\/2024\/05\/determine-macOS-version-1536x702.png 1536w, https:\/\/expanic.at\/wordpress\/wp-content\/uploads\/2024\/05\/determine-macOS-version-1140x521.png 1140w, https:\/\/expanic.at\/wordpress\/wp-content\/uploads\/2024\/05\/determine-macOS-version.png 1868w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><figcaption class=\"wp-element-caption\">*macOS 13.2.1 aka Ventura<\/figcaption><\/figure>\n\n\n\n<h2 class=\"wp-block-heading\">Erstellungs-Datum et cetera f\u00fcr eine Datei \u00e4ndern:<\/h2>\n\n\n\n<p>Folgenden Befehl in der App \u201e<strong>Terminal<\/strong>\u201c&nbsp;auf dem Mac eingeben:<code> <\/code><\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">SetFile -d '7\/31\/2019 19:48:17' \/PFAD\/zur\/Datei.pdf<\/pre>\n\n\n\n<p><em><strong>Anmerkung:<\/strong>&nbsp;Um das \u00c4nderungsdatum zu \u00e4ndern, einfach <\/em> <strong>SetFile -m<\/strong> <em>verwenden.<\/em><\/p>\n\n\n\n<div style=\"height:100px\" aria-hidden=\"true\" class=\"wp-block-spacer\"><\/div>\n\n\n\n<h2 class=\"wp-block-heading\">Laufende Prozesse\/Scripte in macOS anzeigen lassen:<\/h2>\n\n\n\n<p>Gib den folgenden Befehl in der App \u201e<strong>Terminal<\/strong>\u201c&nbsp;auf dem Mac ein:<code> <\/code><\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">ps aux<\/pre>\n\n\n\n<p><em>oder<\/em><\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">pgrep -lf .<\/pre>\n\n\n\n<p><em><strong>Anmerkung:<\/strong>&nbsp;Hier werden nur die PIDs und Namen angezeigt.<\/em><\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">top -o +state<\/pre>\n\n\n\n<p><em><strong>Anmerkung:<\/strong>&nbsp;Zeigt alle Prozesse und deren aktuellen Status (running, sleeping, <strong>stuck<\/strong> &gt; hilfreich beim Troubleshooten von Scripten)<\/em>. <br><em><strong>OPTIONEN: <\/strong><\/em> top -o <strong>rsize<\/strong> oder top -o <strong>cpu<\/strong><\/p>\n\n\n\n<p><strong>NOTA BENE: <\/strong><em>Falls mehr Informationen n\u00f6tig sind, einfach <strong>htop<\/strong> oder <strong>pstree<\/strong> via Homebrew installieren. Der Befehl <strong>lsof<\/strong> als auch der \u201e<strong>Aktivit\u00e4tsmonitor<\/strong>\u201c sind immer hilfreich \ud83d\ude09<\/em><\/p>\n\n\n\n<p><br><\/p>\n\n\n\n<div style=\"height:100px\" aria-hidden=\"true\" class=\"wp-block-spacer\"><\/div>\n\n\n\n<h2 class=\"wp-block-heading\">Bestimmte Partitionen\/APFS-Volumes im Finder unsichtbar machen<\/h2>\n\n\n\n<p>Gib den folgenden Befehl in der App \u201e<strong>Terminal<\/strong>\u201c&nbsp;auf dem Mac ein:<code> <\/code><\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">sudo chflags hidden \"\/Volumes\/Drive&nbsp;Name\/\"<\/pre>\n\n\n\n<pre class=\"wp-block-preformatted\">killall Finder<\/pre>\n\n\n\n<p><em><strong>Anmerkung:<\/strong>&nbsp;Funktioniert gut bei Partitionen oder APFS-Volumes ohne ein macOS installiert. F\u00fcr Laufwerke mit Betriebssystem folgenden Befehl verwenden:<\/em><\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">sudo SetFile -a V \/Volumes\/\"Drive&nbsp;Name\"<\/pre>\n\n\n\n<p><em><strong>Note:<\/strong>&nbsp;Install command line developer tools if you\u2019re prompted to do that.<\/em><br>The lower-case \u201cv\u201d in this command as opposed to the upper-case in the hiding command. This is the attribute controlled by \u201c-a\u201d; \u201cV\u201d means \u201cinvisible,\u201d and \u201cv\u201d means \u201cvisible.\u201d<\/p>\n\n\n\n<div style=\"height:100px\" aria-hidden=\"true\" class=\"wp-block-spacer\"><\/div>\n\n\n\n<h2 class=\"wp-block-heading\">How to prevent partitions from mounting when you boot up, log in, or connect drives to your Mac<\/h2>\n\n\n\n<p>1) To prevent partitions from mounting automatically we are going to add their UUIDs to a list via Terminal. First, connect the drives and mount the partitions which you do not want to mount automatically in future.<\/p>\n\n\n\n<p>2) Next, launch Terminal (found in \/Applications\/Utilities, or with Spotlight). At the prompt, paste the command:<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">diskutil info \/Volumes\/\"Volume Name\" | grep 'Volume UUID'<\/pre>\n\n\n\n<p>Replace \u201cVolume Name\u201d with the name of the partition you want to stop from mounting, making sure to retain the speech marks if your volume name contains spaces or punctuation.<\/p>\n\n\n\n<p>It will return a string titled \u201cVolume UUID\u201d.<\/p>\n\n\n\n<p>3) Copy this long string and paste it somewhere, then repeat the command for all the other partition names you want, pasting their UUIDs somewhere safe too.<\/p>\n\n\n\n<p>4) Once this is done, in Terminal, type:<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">sudo vifs<\/pre>\n\n\n\n<p>5) Enter your administrator password when prompted. An empty editable document will then appear in the Terminal window. Press the \u201cA\u201d key to bring up the cursor and, using the \u201cDown Arrow\u201d key and a final press of the \u201cEnter\u201d key, navigate down the document to below the lines marked with the # symbol, and above the lines marked with the ~ symbol.<\/p>\n\n\n\n<p>Now copy and paste the following line into the document:<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">UUID=XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX none hfs rw,noauto<\/pre>\n\n\n\n<p>6) When you\u2019ve finished, press the \u201cesc\u201d key to exit cursor mode, then type \u201c:x\u201d and hit the \u201cEnter\u201d key to save your changes and exit the document.<\/p>\n\n\n\n<p>After a reboot, logout\/login, or disconnect\/reconnect of the drives, the partitions you have added to the document should not automatically mount. If you wish to mount those partitions in future, you can use Disk Utility or Terminal to do it manually.<\/p>\n\n\n\n<p>In order to reverse the changes described here you can remove the UUIDs of your drives from the <strong>\/etc\/fstab<\/strong> file which we added them to, using a similar process as before. First, open Terminal and issue the \u201csudo vifs\u201d command. Enter your password to view \/etc\/fstab with your list of drives inside. Press \u201cA\u201d to enter edit mode, navigate down to your inserted lines with the \u201cDown Arrow\u201d key, and use the \u201cDelete\u201d or \u201cBackspace\u201d key to remove as many of them as you like. When finished, press \u201cesc\u201d to leave edit mode, then type \u201c:x\u201d and press the \u201cEnter\u201d key to save changes and exit the editor.<\/p>\n\n\n\n<p>This method will work with normal, RAID, encrypted and CoreStorage partitions. The command given in this guide assumes the partition in question is formatted jhfs+ (Mac OS Extended Journaled), and that you wish it to be read-write on mount. Most macOS partitions are formatted in this way, but you can check the formatting of your drive in the Disk Utility application if you are unsure. If your partitions are set up differently, you must edit the command accordingly.<\/p>\n\n\n\n<p>For example, if you did want the partition to mount automatically, but wanted it to be mounted as read-only instead of read-write, you could remove the phrase \u201cnoauto\u201d, and replace \u201crw\u201d with \u201cro\u201d.<\/p>\n\n\n\n<p>To set a partition that is formatted as FAT to not automatically mount, replace \u201chfs\u201d in the above command with \u201cmsdos\u201d.<\/p>\n\n\n\n<p>Other file type commands are available, look up the ones you need if they are not mentioned here. I have verified this guide as working from OS X 10.7 \u2013 macOS 10.12.<\/p>\n\n\n\n<p>As a final note, many guides suggest using this command to edit the file:<\/p>\n\n\n\n<p>sudo nano \/etc\/fstab<\/p>\n\n\n\n<p>Although I have used this command myself and it works well, it is not recommended by Apple as completely safe. As detailed, Apple recommends always using the \u201cvifs\u201d tool instead.<\/p>\n\n\n\n<p>Please let me know if you found this useful below, or if you have any questions or problems regarding the process. Happy mounting!<\/p>\n\n\n\n<div style=\"height:100px\" aria-hidden=\"true\" class=\"wp-block-spacer\"><\/div>\n\n\n\n<h2 class=\"wp-block-heading\">Lokalen Computer neu starten aka reboot<\/h2>\n\n\n\n<p>Gib den folgenden Befehl in der App \u201eTerminal\u201c&nbsp;<img loading=\"lazy\" decoding=\"async\" width=\"30\" height=\"30\" src=\"https:\/\/help.apple.com\/assets\/61E89D604694F96BA04E7D79\/61E89D614694F96BA04E7D80\/de_DE\/20f5edbfdfa0bd8ad4c4c6452e5b6761.png\" alt=\"\">&nbsp;auf dem Mac ein:<code>% <\/code><\/p>\n\n\n\n<pre class=\"wp-block-preformatted\"><code>sudo shutdown -r now<\/code><\/pre>\n\n\n\n<h2 class=\"wp-block-heading\">Entfernten Computer sofort neu starten<\/h2>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Gib die folgenden Befehle in der App \u201eTerminal\u201c&nbsp;<img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/help.apple.com\/assets\/61E89D604694F96BA04E7D79\/61E89D614694F96BA04E7D80\/de_DE\/20f5edbfdfa0bd8ad4c4c6452e5b6761.png\" alt=\"\" width=\"30\" height=\"30\">&nbsp;auf dem Mac ein:<code>% <\/code><br><br><code>ssh -l <em>admincomputer<\/em>% sudo shutdown -r now<\/code><br><br>Ersetze&nbsp;<em>admin<\/em>&nbsp;durch den Kurznamen eines Benutzeraccounts auf dem entfernten Computer.Ersetze&nbsp;<em>computer<\/em>&nbsp;durch die IP-Adresse oder den Hostnamen des entfernten Computers.<\/li>\n<\/ul>\n\n\n\n<h2 class=\"wp-block-heading\">Entfernten Computer zu einer bestimmten Zeit neu starten<\/h2>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Gib die folgenden Befehle in der App \u201eTerminal\u201c&nbsp;<img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/help.apple.com\/assets\/61E89D604694F96BA04E7D79\/61E89D614694F96BA04E7D80\/de_DE\/20f5edbfdfa0bd8ad4c4c6452e5b6761.png\" alt=\"\" width=\"30\" height=\"30\">&nbsp;auf dem Mac ein:<code>% <\/code><br><br><code>ssh -l <em>admin<\/em>&nbsp;<em>computer<\/em>% sudo shutdown -r <em>hhmm<\/em><\/code><br><br>Ersetze&nbsp;<em>admin<\/em>&nbsp;durch den Kurznamen eines Benutzeraccounts auf dem entfernten Computer.Ersetze&nbsp;<em>computer<\/em>&nbsp;durch die IP-Adresse oder den Hostnamen des entfernten Computers.Ersetze&nbsp;<em>hhmm<\/em>&nbsp;durch die Stunde und Minute, zu der du den entfernten Computer neu starten m\u00f6chtest.<\/li>\n<\/ul>\n\n\n\n<h2 class=\"wp-block-heading\">Nach Stromausfall automatisch neu starten<\/h2>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Gib den folgenden Befehl in der App \u201eTerminal\u201c&nbsp;<img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/help.apple.com\/assets\/61E89D604694F96BA04E7D79\/61E89D614694F96BA04E7D80\/de_DE\/20f5edbfdfa0bd8ad4c4c6452e5b6761.png\" alt=\"\" width=\"30\" height=\"30\">&nbsp;auf dem Mac ein:<code>% <\/code><br><br><code>sudo systemsetup -setwaitforstartupafterpowerfailure <em>seconds<\/em><\/code><br><br>Ersetze&nbsp;<em>seconds<\/em>&nbsp;durch die Anzahl der Sekunden, die verstreichen sollen, bevor der Computer nach einem Stromausfall gestartet wird. Dieser Wert muss 0 (Null) oder ein Vielfaches von 30 sein.<\/li>\n<\/ul>\n\n\n\n<p><em>Hinweis:&nbsp;<\/em>Du kannst auch in der&nbsp;<a href=\"https:\/\/support.apple.com\/de-at\/guide\/mac-help\/mchlp1168\">Systemeinstellung \u201eEnergie sparen\u201c<\/a>&nbsp;festlegen, dass der Mac nach einem Stromausfall automatisch gestartet werden soll.&nbsp;<\/p>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity is-style-wide\"\/>\n\n\n\n<p><strong>W<em>ie kann ich via SSH ARD aktivieren f\u00fcr alle User?<\/em><\/strong><\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>sudo \/System\/Library\/CoreServices\/RemoteManagement\/ARDAgent.app\/Contents\/Resources\/kickstart -configure -allowAccessFor -allUsers -privs -all<\/code><\/pre>\n\n\n\n<p><strong>W<em>ie kann ich via SSH ARD aktivieren f\u00fcr  User X?<\/em><\/strong><\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>sudo \/System\/Library\/CoreServices\/RemoteManagement\/ARDAgent.app\/Contents\/Resources\/kickstart -activate -configure -access -on -users x -privs -all -restart -agent -menu<\/code><\/pre>\n\n\n\n<p><strong>W<em>ie kann ich meinen Mac \u00fcber den Terminal neustarten?<\/em><\/strong><\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>sudo shutdown -r now<\/code><\/pre>\n\n\n\n<hr class=\"wp-block-separator has-css-opacity\"\/>\n\n\n\n<p><em><strong>Welcher Prozessor ist im Mac eingebaut?<\/strong><br><\/em>iMac24iSSD-mid2007:~ x$ <strong>sysctl -a | grep brand<\/strong><br>machdep.cpu.brand_string: Intel(R) Core(TM)2 Duo CPU T7700 @ 2.40GHz<br>machdep.cpu.brand: 0<\/p>\n\n\n\n<p><\/p>\n\n\n\n<h4 class=\"wp-block-heading\" id=\"monitor-progress-of-du-or-copy-command\">Monitor Progress of du or copy Command<\/h4>\n\n\n\n<p>In Linux, while copying files from one location to other using&nbsp;<code>cp<\/code>&nbsp;command, the progress of data is not shown, to see the progress of data being copied, you can use the&nbsp;<code>watch<\/code>&nbsp;command along with&nbsp;<a href=\"https:\/\/www.tecmint.com\/check-linux-disk-usage-of-files-and-directories\/\" target=\"_blank\" rel=\"noreferrer noopener\">du -s command to check the disk usage<\/a>&nbsp;in real time.<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\"># cp ubuntu-15.10-desktop-amd64.iso \/home\/tecmint\/ &amp;\n# watch -n 0.1 du -s \/home\/tecmint\/ubuntu-15.10-desktop-amd64.iso \n<\/pre>\n\n\n\n<figure class=\"wp-block-image\" id=\"attachment_18985\"><a href=\"https:\/\/www.tecmint.com\/wp-content\/uploads\/2016\/02\/Monitor-Progress-of-Copy-Command.gif\"><img decoding=\"async\" src=\"https:\/\/www.tecmint.com\/wp-content\/uploads\/2016\/02\/Monitor-Progress-of-Copy-Command.gif\" alt=\"Monitor Progress of Copy Command\" class=\"wp-image-18985\"\/><\/a><\/figure>\n\n\n\n<p><\/p>\n\n\n\n<p><strong>Kennwort-Richtlinien l\u00f6schen<\/strong><\/p>\n\n\n\n<p><code>pwpolicy -clearaccountpolicies<\/code><\/p>\n\n\n\n<p><strong>Re-run mac OS Setup-Assistant<\/strong><\/p>\n\n\n\n<p>sudo rm \/var\/db\/.AppleSetupDone<\/p>\n\n\n\n<p><\/p>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"owc-aura-pro-x2-ssd-in-macbookpro-13i-2015-fix-crash-on-sleep-issue\">OWC Aura Pro X2 SSD in MacBookPro 13i *2015 &gt; fix crash on sleep issue<\/h2>\n\n\n\n<p><em><strong>Drive type:<\/strong>&nbsp;NVMe SSDs running macOS 10.13 or later (as boot volumes)<\/em><\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">sudo pmset -a standby 0<\/pre>\n\n\n\n<p><a href=\"https:\/\/eshop.macsales.com\/Service\/Knowledgebase\/Article\/26\/785\/NVMe-SSDs-Standby-Mode-Issue\">https:\/\/eshop.macsales.com\/Service\/Knowledgebase\/Article\/26\/785\/NVMe-SSDs-Standby-Mode-Issue<\/a><\/p>\n\n\n\n<div style=\"height:100px\" aria-hidden=\"true\" class=\"wp-block-spacer\"><\/div>\n\n\n\n<p><\/p>\n\n\n\n<p><strong>TimeMachine Backups &gt; um festzustellen, was sich beim Backup \u00e4ndert (!), gleich geblieben ist (-) und dazugekommen ist (+):<\/strong><br>tmutil compare -s<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img loading=\"lazy\" decoding=\"async\" width=\"2864\" height=\"1466\" src=\"https:\/\/expanic.at\/wordpress\/wp-content\/uploads\/2019\/10\/tmutil-compare-s.png\" alt=\"\" class=\"wp-image-185\" srcset=\"https:\/\/expanic.at\/wordpress\/wp-content\/uploads\/2019\/10\/tmutil-compare-s.png 2864w, https:\/\/expanic.at\/wordpress\/wp-content\/uploads\/2019\/10\/tmutil-compare-s-300x154.png 300w, https:\/\/expanic.at\/wordpress\/wp-content\/uploads\/2019\/10\/tmutil-compare-s-768x393.png 768w, https:\/\/expanic.at\/wordpress\/wp-content\/uploads\/2019\/10\/tmutil-compare-s-1024x524.png 1024w, https:\/\/expanic.at\/wordpress\/wp-content\/uploads\/2019\/10\/tmutil-compare-s-1140x584.png 1140w, https:\/\/expanic.at\/wordpress\/wp-content\/uploads\/2019\/10\/tmutil-compare-s-552x283.png 552w\" sizes=\"auto, (max-width: 2864px) 100vw, 2864px\" \/><\/figure>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"disable-boot-on-lid-open-power-connection-on-macbook-pro-2016\">Disable Boot on Lid Open \/ Power Connection on MacBook Pro (2016+)<\/h2>\n\n\n\n<ol class=\"wp-block-list\">\n<li>Open the Terminal, which is found in \/Applications\/Utilities\/, and then enter the following command syntax exactly:<\/li>\n<\/ol>\n\n\n\n<pre class=\"wp-block-preformatted\"><strong><code>sudo nvram AutoBoot=%00<\/code><\/strong><\/pre>\n\n\n\n<ol class=\"wp-block-list\">\n<li>Hit return and authenticate with the admin password (necessary due to sudo)<\/li>\n\n\n\n<li>Exit Terminal when finished<\/li>\n<\/ol>\n\n\n\n<p>With AutoBoot turned off, when the MacBook Pro lid is opened, it will no longer boot the computer or turn the computer on simply by opening the lid. Additionally, connecting the power cable will not automatically boot the Mac. Instead, the behavior is like it was on earlier Macs, which can open the lid of a Mac without turning the computer itself on.&nbsp;<\/p>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"return-to-default-setting-of-booting-on-lid-open-with-macbook-pro\">Return to Default Setting of Booting on Lid Open with MacBook Pro<\/h3>\n\n\n\n<p>To return to the new default setting of booting automatically when the lid opens or when the power is connected, return to the command line and issue the following command syntax:<\/p>\n\n\n\n<p><code>sudo nvram AutoBoot=%03<\/code><\/p>\n\n\n\n<p>Hitting return and authenticating will complete the change. You can also&nbsp;<a href=\"http:\/\/osxdaily.com\/2010\/11\/15\/reset-pram-mac\/\">reset Mac NVRAM<\/a>&nbsp;to return the setting to default.<ins><\/ins><\/p>\n\n\n\n<p>If you\u2019re not sure what setting is enabled, using \u201cnvram -p\u201d will print the nvram settings that have been or can be configured.<\/p>\n\n\n\n<p>This is a handy tip similar to adjusting whether or not the new MacBook Pro makes a boot sound effect or not. Thanks to a thread on&nbsp;<a href=\"http:\/\/forums.macrumors.com\/threads\/tutorial-disable-auto-boot-on-new-macbook-pros.2011044\/\" target=\"_blank\" rel=\"noreferrer noopener\">MacRumors forums<\/a>&nbsp;for the appropriate AutoBoot syntax.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"how-to-see-all-third-party-kernel-extensions-in-mac-os-x\">How to See All Third Party Kernel Extensions in Mac OS X<\/h3>\n\n\n\n<p>The full syntax to see third party kernel extensions is as follows:<\/p>\n\n\n\n<p><code>kextstat | grep -v com.apple<\/code><\/p>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"if-terminal-says-that-permissions-reset-failed\">If Terminal says that permissions reset failed<\/h2>\n\n\n\n<p>When following the previous steps, if you get a message that permissions reset on user home directory failed (error -69841), follow these steps.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"if-your-mac-is-using-macos-mojave\">If your Mac is using macOS Mojave<\/h3>\n\n\n\n<ol class=\"wp-block-list\">\n<li>Quit Terminal.<\/li>\n\n\n\n<li>Choose Apple menu \uf8ff &gt; System Preferences, click Security &amp; Privacy, then click Privacy.<\/li>\n\n\n\n<li>Click the lock&nbsp;, then enter your administrator password.<\/li>\n\n\n\n<li>From the list of items on the left, select Full Disk Access.&nbsp;<\/li>\n\n\n\n<li>Add Terminal to the apps allowed full-disk access: Either use the add button&nbsp;,&nbsp;or just drag the Terminal app into the space above it.&nbsp;<\/li>\n\n\n\n<li>Open Terminal, then enter&nbsp;<code>chflags&nbsp;-R&nbsp;nouchg&nbsp;~<\/code>.<\/li>\n\n\n\n<li>Enter &nbsp;<code>diskutil&nbsp;resetUserPermissions&nbsp;\/&nbsp;`id&nbsp;-u`<\/code>&nbsp;again.<\/li>\n\n\n\n<li>When the process completes, restart your Mac.<\/li>\n\n\n\n<li>Choose Apple menu \uf8ff &gt; System Preferences, click Security &amp; Privacy, then click Privacy.<\/li>\n\n\n\n<li>Click the lock&nbsp;, then enter your administrator password.<\/li>\n\n\n\n<li>From the list of items on the left, select Full Disk Access.&nbsp;<\/li>\n\n\n\n<li>You can now remove Terminal from the apps allowed full-disk access, or just deselect the checkbox next to Terminal.<br><br>&nbsp;<\/li>\n<\/ol>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"passwort-richtlinie-andern-mojave\">Passwort-Richtlinie \u00e4ndern (Mojave):<\/h2>\n\n\n\n<p><code>pwpolicy -clearaccountpolicies<\/code><\/p>\n\n\n\n<p><strong>Optionen:<br><\/strong>pwpolicy -u user -getpolicy<br>pwpolicy -u user -clearaccountpolicies<br><\/p>\n\n\n\n<p><\/p>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"hide-a-user-account-in-the-macos-login-window\">Hide a user account in the macOS login window<\/h2>\n\n\n\n<p>1. Log in as an admin user.<\/p>\n\n\n\n<p>2. Use this Terminal&nbsp;command. Substitute the short name of the user that you want to hide for &#171;hiddenuser&#187;:<\/p>\n\n\n\n<p><code>sudo dscl . create \/Users\/hiddenuser IsHidden 1<\/code><\/p>\n\n\n\n<p>The user account is also hidden in System Preferences the next time it&#8217;s opened. This command can&#8217;t be used with the Guest user account. <a href=\"https:\/\/support.apple.com\/guide\/mac-help\/change-users-groups-guest-user-preferences-mh15600\/mac\">Learn how to manage the Guest user account<\/a>.<\/p>\n\n\n\n<p>If you want, you can delete the IsHidden attribute instead.<\/p>\n\n\n\n<p>Hide the home directory and share point<\/p>\n\n\n\n<p>You can move the hidden user&#8217;s home directory to a place that&#8217;s not visible from the Finder. And you can remove the hidden user&#8217;s Public Folder share point.<\/p>\n\n\n\n<p>This command moves the home directory of &#171;hiddenuser&#187; to \/var, a hidden directory:<\/p>\n\n\n\n<p><code>sudo mv \/Users\/hiddenuser \/var\/hiddenuser<\/code><\/p>\n\n\n\n<p>This command updates the user record of &#171;hiddenuser&#187; with the new home directory path in \/var:<\/p>\n\n\n\n<p><code>sudo dscl . create \/Users\/hiddenuser NFSHomeDirectory \/var\/hiddenuser<\/code><\/p>\n\n\n\n<p>This command removes the Public Folder share point for the user with the long name &#171;Hidden User\u201d:<\/p>\n\n\n\n<p><code>sudo dscl . delete \"\/SharePoints\/Hidden User's Public Folder\"<\/code><\/p>\n\n\n\n<p>Anmeldebildschirm: Anzeigen von \u00abAndere &#8230;\u00bb oder \u00abOther &#8230;\u00bb<\/p>\n\n\n\n<p><code>sudo defaults write \/Library\/Preferences\/com.apple.loginwindow SHOWOTHERUSERS_MANAGED -bool TRUE <\/code><\/p>\n\n\n\n<p>Show a hidden user account<\/p>\n\n\n\n<p>If you want to show the hidden user, set the user\u2019s IsHidden attribute to 0:<\/p>\n\n\n\n<p><code>sudo dscl . create \/Users\/hiddenuser IsHidden 0<\/code><\/p>\n\n\n\n<div style=\"height:100px\" aria-hidden=\"true\" class=\"wp-block-spacer\"><\/div>\n\n\n\n<div class=\"wp-block-file\"><a id=\"wp-block-file--media-afbe88c8-eab2-4ce4-b356-9cb594c1d595\" href=\"https:\/\/expanic.at\/wordpress\/wp-content\/uploads\/2020\/08\/multidig.sh_by-Florian-2020v07.zip\">multidig.sh_by-Florian-2020v07<\/a><a href=\"https:\/\/expanic.at\/wordpress\/wp-content\/uploads\/2020\/08\/multidig.sh_by-Florian-2020v07.zip\" class=\"wp-block-file__button wp-element-button\" download aria-describedby=\"wp-block-file--media-afbe88c8-eab2-4ce4-b356-9cb594c1d595\">Herunterladen<\/a><\/div>\n\n\n\n<h1 class=\"wp-block-heading\" id=\"bin-bash\">!\/bin\/bash<\/h1>\n\n\n\n<p>if [ $1 == &#8217;ns&#8216; ]; then<br>while true; do<br>echo Enter a domain:<br>read domain<br>echo &#171;&#187;<br>dig ns $domain +short<br>echo &#171;&#187;<br>done<br>elif [ $1 == &#8218;mx&#8216; ]; then<br>while true; do<br>echo Enter a domain:<br>read domain<br>echo &#171;&#187;<br>dig mx $domain +short<br>echo &#171;&#187;<br>done<br>elif [ $1 == &#8218;whois&#8216; ]; then<br>while true; do<br>echo Enter a domain:<br>read domain<br>echo &#171;&#187;<br>whois $domain<br>done<br>fi<\/p>\n\n\n\n<div style=\"height:100px\" aria-hidden=\"true\" class=\"wp-block-spacer\"><\/div>\n\n\n\n<p>Crontab editieren f\u00fcr Zugriffsrechte<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"595\" src=\"https:\/\/expanic.at\/wordpress\/wp-content\/uploads\/2020\/08\/server-crontab-1024x595.png\" alt=\"\" class=\"wp-image-371\" srcset=\"https:\/\/expanic.at\/wordpress\/wp-content\/uploads\/2020\/08\/server-crontab-1024x595.png 1024w, https:\/\/expanic.at\/wordpress\/wp-content\/uploads\/2020\/08\/server-crontab-300x174.png 300w, https:\/\/expanic.at\/wordpress\/wp-content\/uploads\/2020\/08\/server-crontab-768x446.png 768w, https:\/\/expanic.at\/wordpress\/wp-content\/uploads\/2020\/08\/server-crontab-1140x663.png 1140w, https:\/\/expanic.at\/wordpress\/wp-content\/uploads\/2020\/08\/server-crontab-552x321.png 552w, https:\/\/expanic.at\/wordpress\/wp-content\/uploads\/2020\/08\/server-crontab.png 1304w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<pre class=\"wp-block-preformatted\">server:~ adminCOMPANY$ sudo pico \/etc\/crontab\nGNU nano 2.0.6 File: \/etc\/crontab Modified\n$NetBSD: crontab,v 1.13 1997\/10\/26 13:36:31 lukem Exp $\nedited by Alexander 2010 bis 2020v08\n\/etc\/crontab - root's crontab\n#\nSHELL=\/bin\/bash\nPATH=\/bin:\/sbin:\/usr\/bin:\/usr\/sbin\nHOME=\/var\/log\nmin hour mday month wday user command\n*\/5 7-19 1,2,3,4,5 * * root \/bin\/chmod -R 777 \/Volumes\/RAID1_Daten\/ORDNERNAME\/*\n*\/5 7-19 1,2,3,4,5 * * root \/bin\/chmod -R 777 \/Volumes\/RAID1_Daten\/FOLDERNAME\/*<\/pre>\n","protected":false},"excerpt":{"rendered":"<p class=\"post-excerpt\">PDF-Meta-Daten \u00e4ndern Gib in der App \u201eTerminal\u201c\u00a0\u00a0auf deinem Mac die folgenden Befehle ein, um die Meta-Daten eines .PDF zu \u00e4ndern&#8230;.<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":true,"template":"","format":"standard","meta":{"_jetpack_memberships_contains_paid_content":false,"footnotes":""},"categories":[1],"tags":[],"class_list":["post-142","post","type-post","status-publish","format-standard","hentry","category-allgemein"],"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/expanic.at\/wordpress\/wp-json\/wp\/v2\/posts\/142","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/expanic.at\/wordpress\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/expanic.at\/wordpress\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/expanic.at\/wordpress\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/expanic.at\/wordpress\/wp-json\/wp\/v2\/comments?post=142"}],"version-history":[{"count":55,"href":"https:\/\/expanic.at\/wordpress\/wp-json\/wp\/v2\/posts\/142\/revisions"}],"predecessor-version":[{"id":931,"href":"https:\/\/expanic.at\/wordpress\/wp-json\/wp\/v2\/posts\/142\/revisions\/931"}],"wp:attachment":[{"href":"https:\/\/expanic.at\/wordpress\/wp-json\/wp\/v2\/media?parent=142"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/expanic.at\/wordpress\/wp-json\/wp\/v2\/categories?post=142"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/expanic.at\/wordpress\/wp-json\/wp\/v2\/tags?post=142"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}