{"id":138,"date":"2011-09-22T03:25:55","date_gmt":"2011-09-22T03:25:55","guid":{"rendered":"http:\/\/pixert.com\/blog\/?p=138"},"modified":"2021-03-24T01:14:45","modified_gmt":"2021-03-24T01:14:45","slug":"mac-clear-terminal-command-history","status":"publish","type":"post","link":"https:\/\/pixert.com\/blog\/mac-clear-terminal-command-history\/","title":{"rendered":"Mac : clear Terminal command history"},"content":{"rendered":"<pre class=\"brush: bash; title: Code Block; notranslate\" title=\"Code Block\"> history -c <\/pre>\n","protected":false},"excerpt":{"rendered":"<p>history -c<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"jetpack_post_was_ever_published":false,"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_memberships_contains_paid_content":false,"footnotes":""},"categories":[34],"tags":[53,36,47],"class_list":["post-138","post","type-post","status-publish","format-standard","hentry","category-mac-os","tag-mac","tag-mac-os-2","tag-macbook"],"aioseo_notices":[],"jetpack_featured_media_url":"","jetpack_shortlink":"https:\/\/wp.me\/p1pvi1-2e","jetpack-related-posts":[{"id":110,"url":"https:\/\/pixert.com\/blog\/how-to-delete-or-remove-a-local-git-repo-repository\/","url_meta":{"origin":138,"position":0},"title":"How to delete or remove a local Git repo (repository)","author":"Pixel Insert \/ Pixert","date":"May 22, 2011","format":false,"excerpt":"If you want to delete everything (.git folder, files and folders), just delete the whole directory Mac OSX Open Terminal and run the following [bash] rm -rf directoryname [\/bash] Windows Right-click the folder and choose Delete. It will goes to Recycle bin Note: this works for Git Clone and Git\u2026","rel":"","context":"In &quot;Mac OS&quot;","block_context":{"text":"Mac OS","link":"https:\/\/pixert.com\/blog\/category\/mac-os\/"},"img":{"alt_text":"","src":"https:\/\/i0.wp.com\/pixert.com\/blog\/wp-content\/uploads\/2011\/04\/githeader.png?resize=350%2C200","width":350,"height":200},"classes":[]},{"id":82,"url":"https:\/\/pixert.com\/blog\/git-lesson-branch\/","url_meta":{"origin":138,"position":1},"title":"Git lesson : Branch","author":"Pixel Insert \/ Pixert","date":"April 12, 2011","format":false,"excerpt":"What is GIT? Git is... Git is a free & open source, distributed version control system designed to handle everything from small to very large projects with speed and efficiency. Every Git clone is a full-fledged repository with complete history and full revision tracking capabilities, not dependent on network access\u2026","rel":"","context":"In &quot;Mac OS&quot;","block_context":{"text":"Mac OS","link":"https:\/\/pixert.com\/blog\/category\/mac-os\/"},"img":{"alt_text":"","src":"https:\/\/i0.wp.com\/pixert.com\/blog\/wp-content\/uploads\/2011\/04\/githeader.png?resize=350%2C200","width":350,"height":200},"classes":[]},{"id":803,"url":"https:\/\/pixert.com\/blog\/how-to-prevent-screensavers-from-appearing-when-youre-away-from-a-mac\/","url_meta":{"origin":138,"position":2},"title":"How to prevent Screensavers from appearing when you&#8217;re away from a mac","author":"Pixel Insert \/ Pixert","date":"September 30, 2025","format":false,"excerpt":"I've set my Mac to display screensavers after 5 minutes of inactivity. We know there's a 'caffeinate' command to prevent my Mac from going to sleep. In this case, sometimes we just want to be away from my Mac to make coffee, make a phone call, or whatever, and it's\u2026","rel":"","context":"In &quot;Mac OS&quot;","block_context":{"text":"Mac OS","link":"https:\/\/pixert.com\/blog\/category\/mac-os\/"},"img":{"alt_text":"","src":"https:\/\/i0.wp.com\/pixert.com\/blog\/wp-content\/uploads\/2025\/09\/Screenshot-2025-09-28-at-15.11.07.jpg?fit=760%2C457&ssl=1&resize=350%2C200","width":350,"height":200,"srcset":"https:\/\/i0.wp.com\/pixert.com\/blog\/wp-content\/uploads\/2025\/09\/Screenshot-2025-09-28-at-15.11.07.jpg?fit=760%2C457&ssl=1&resize=350%2C200 1x, https:\/\/i0.wp.com\/pixert.com\/blog\/wp-content\/uploads\/2025\/09\/Screenshot-2025-09-28-at-15.11.07.jpg?fit=760%2C457&ssl=1&resize=525%2C300 1.5x, https:\/\/i0.wp.com\/pixert.com\/blog\/wp-content\/uploads\/2025\/09\/Screenshot-2025-09-28-at-15.11.07.jpg?fit=760%2C457&ssl=1&resize=700%2C400 2x"},"classes":[]},{"id":46,"url":"https:\/\/pixert.com\/blog\/change-mamp-mysql-password\/","url_meta":{"origin":138,"position":3},"title":"Change MAMP MySQL password","author":"Pixel Insert \/ Pixert","date":"March 12, 2011","format":false,"excerpt":"MAMP creates a local server environment on Mac OS X by installing Apache, PHP and MySQL right out of the box. The default username\/password for MySQL install is root\/root. That's not safe. For security purposes, in our case we want sync between our WAMP and MAMP , it's best to\u2026","rel":"","context":"In &quot;Mac OS&quot;","block_context":{"text":"Mac OS","link":"https:\/\/pixert.com\/blog\/category\/mac-os\/"},"img":{"alt_text":"","src":"https:\/\/i0.wp.com\/pixert.com\/blog\/wp-content\/uploads\/2011\/03\/mamplogo.png?resize=350%2C200","width":350,"height":200},"classes":[]},{"id":125,"url":"https:\/\/pixert.com\/blog\/git-lesson-branch-is-ahead-by-x-commits\/","url_meta":{"origin":138,"position":4},"title":"Git Lesson : branch is ahead by x commits","author":"Pixel Insert \/ Pixert","date":"July 7, 2011","format":false,"excerpt":"\u00a0\u00a0If Git suddenly popup a warning, \"branch is ahead by x commits\". You can do the following Switch to the branch, e.g it's the Master branch [bash]git checkout master[\/bash] Then, use Git Fetch to\u00a0update the local copy of a remote branch [bash]git fetch[\/bash] Git fetch is similar to pull, except\u2026","rel":"","context":"In &quot;Mac OS&quot;","block_context":{"text":"Mac OS","link":"https:\/\/pixert.com\/blog\/category\/mac-os\/"},"img":{"alt_text":"","src":"https:\/\/i0.wp.com\/pixert.com\/blog\/wp-content\/uploads\/2011\/04\/githeader.png?resize=350%2C200","width":350,"height":200},"classes":[]},{"id":338,"url":"https:\/\/pixert.com\/blog\/show-hidden-files-mac-os-x\/","url_meta":{"origin":138,"position":5},"title":"Show and Hidden Files on Mac OS X","author":"Pixel Insert \/ Pixert","date":"November 2, 2013","format":false,"excerpt":"I often edit. htacces, but when downloading or create files. htacces, the files hidden by Mac OS X, I'm currently using OSX 10.8.5. In Mac OS X, files with names that start with a dot (.) are hidden I'm using Terminal command to reveal the hidden files in OS X\u2026","rel":"","context":"In &quot;Mac OS&quot;","block_context":{"text":"Mac OS","link":"https:\/\/pixert.com\/blog\/category\/mac-os\/"},"img":{"alt_text":"","src":"https:\/\/i0.wp.com\/pixert.com\/blog\/wp-content\/uploads\/2013\/11\/macosx1085.jpg?fit=640%2C480&ssl=1&resize=350%2C200","width":350,"height":200,"srcset":"https:\/\/i0.wp.com\/pixert.com\/blog\/wp-content\/uploads\/2013\/11\/macosx1085.jpg?fit=640%2C480&ssl=1&resize=350%2C200 1x, https:\/\/i0.wp.com\/pixert.com\/blog\/wp-content\/uploads\/2013\/11\/macosx1085.jpg?fit=640%2C480&ssl=1&resize=525%2C300 1.5x"},"classes":[]}],"jetpack_sharing_enabled":true,"jetpack_likes_enabled":true,"_links":{"self":[{"href":"https:\/\/pixert.com\/blog\/wp-json\/wp\/v2\/posts\/138","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/pixert.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/pixert.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/pixert.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/pixert.com\/blog\/wp-json\/wp\/v2\/comments?post=138"}],"version-history":[{"count":0,"href":"https:\/\/pixert.com\/blog\/wp-json\/wp\/v2\/posts\/138\/revisions"}],"wp:attachment":[{"href":"https:\/\/pixert.com\/blog\/wp-json\/wp\/v2\/media?parent=138"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/pixert.com\/blog\/wp-json\/wp\/v2\/categories?post=138"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/pixert.com\/blog\/wp-json\/wp\/v2\/tags?post=138"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}