say then whatever u want ur mac to say, Siri will say whatever u want her/him to say, but don't know why it's always a male voice i tried to change it but was unable to, If someone knows how to make a female voice say in terminalsecurity find-generic-password -wa "whatever is ur wifi name"this will show the password of the wifi stored in ur macsome command | pbcopywhatever is the output of the command will be copied to the clipboardshift command option vto copy without formatting, It's really a godsend if try to copy something from notes to Google Docs or majorly anything to Google Docscaffeinatetype thing in the terminal and your Mac won't sleep till u end this command, perfect for a coffee breakcommand control shift 4like normally u take screenshots by pressingshift command 3or for a specific areashift comand 4but by doing so the screenshot will get saved on the desktop and then u have to go to the desktop and from there u need to copy and then paste it somewhere but with this command, u can take a screenshot of a particular place and copy it to clipboard.. really amazing one A couple of terminal commands to make changes around your screenshotdefaults write com.apple.screencapture name-> Set a default name to your screenshotsdefaults write com.apple.screencapture type-> u can set your screenshot file format to jpg, png, etcdefault write com.apple.screencapture location ~/Desktop/screenshotsCurrently the default saving location for your screenshots is your desktop, u can change it with this commandpasswdto change your passwordwhoamiwill tell u ur user namedittothere r two commands on Mac to copy and paste via your terminal,cpandditto, don't know sure, but a Mac expert said to me thatdittois better thancpdf -hwill tell u how much space u have in your Mac, its full form displays free disk spacemanto open the manual or if u want a manual of something, like saycpcommand u can type,man cpopento just open things likeopen .will open finder, oropen myprofilepic.pngpingto check whether a website is up or not, likeping google.comifconfigconfigures network interface parameters, u can use it with different variations and combinations as such,ifconfig en0,ifconfig en0 | grep inet,ifconfig en0 | grep inet | awk 'carry regular expressions'traceroute website.comto see the path u r taking to get to a certain website, great for troubleshootingdig websitename.comIf u want to dig into DNS of a website, u can get all the DNS goodnesspsto see all the processes on your computerps -axto see more, like a lot moretopu can see which processes are using the most CPU in real-timetop -o rsizecan see processes by memorykill -9 processidwill kill a running process, cooler combination for this is,ps -ax | grep processnamewhich $SHELLto see which shell we r usingbashto switch to bash shellzshto switch back to zsh shelluptimeto find how long have your mac been upqlmanage -p thefileNameThatUWantToPreviewto preview any filediff file1 file2to compare two filescurl theLink < where u want to storeto downloadleave 1245will set an alarm in the terminal, and will tell u to leave at that timehistoryto see the history of all the commands u have been typing in your terminalpython3 -m http.serverThis will create a web server of your hard disk and anyone can go to the ip address and see your filesshutdown -h nowto shutdown immediatelyshutdown -r nowto restart immediately
Last active
December 8, 2025 03:02
-
-
Save tusharxoxoxo/2f5cc5673d2b8187fff017da9085a2bb to your computer and use it in GitHub Desktop.
list of super cool mac terminal tricks
Author
tusharxoxoxo
commented
Jul 12, 2025
via email
I am happy u liked it
…On Sat, 12 Jul, 2025, 10:33 pm Hugo, ***@***.***> wrote:
***@***.**** commented on this gist.
------------------------------
this is great! so many things i didn't know were possible. this impressed
me tbh
that python3 http.server command is kinda dangerous tho, i tried and it
lists *EVERY SINGLE ONE* of your files, even *hidden ones*. kinda scary
the wifi password one was kinda cool tho, i made an alias to make it
easier to type. add on your .zshrc:
function wifipass
{
command security find-generic-password -wa $1
}
anyways, i appreciate this info! really cool things.
—
Reply to this email directly, view it on GitHub
<https://gist.github.com/tusharxoxoxo/2f5cc5673d2b8187fff017da9085a2bb#gistcomment-5673728>
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AS3DYSVCG2DWEVNC4K7UB733IFIF7BFKMF2HI4TJMJ2XIZLTSKBKK5TBNR2WLJDUOJ2WLJDOMFWWLO3UNBZGKYLEL5YGC4TUNFRWS4DBNZ2F6YLDORUXM2LUPGBKK5TBNR2WLJDHNFZXJJDOMFWWLK3UNBZGKYLEL52HS4DFVRZXKYTKMVRXIX3UPFYGLK2HNFZXIQ3PNVWWK3TUUZ2G64DJMNZZDAVEOR4XAZNEM5UXG5FFOZQWY5LFVEYTENJSHE4TENBVU52HE2LHM5SXFJTDOJSWC5DF>
.
You are receiving this email because you authored the thread.
Triage notifications on the go with GitHub Mobile for iOS
<https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675>
or Android
<https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub>
.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment