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 | pbcopy
whatever is the output of the command will be copied to the clipboardshift command option v
to copy without formatting, It's really a godsend if try to copy something from notes to Google Docs or majorly anything to Google Docscaffeinate
type thing in the terminal and your Mac won't sleep till u end this command, perfect for a coffee breakcommand control shift 4
like normally u take screenshots by pressingshift command 3
or for a specific areashift comand 4
but 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/screenshots
Currently the default saving location for your screenshots is your desktop, u can change it with this commandpasswd
to change your passwordwhoami
will tell u ur user nameditto
there r two commands on Mac to copy and paste via your terminal,cp
andditto
, don't know sure, but a Mac expert said to me thatditto
is better thancp
df -h
will tell u how much space u have in your Mac, its full form displays free disk spaceman
to open the manual or if u want a manual of something, like saycp
command u can type,man cp
open
to just open things likeopen .
will open finder, oropen myprofilepic.png
ping
to check whether a website is up or not, likeping google.com
ifconfig
configures 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.com
to see the path u r taking to get to a certain website, great for troubleshootingdig websitename.com
If u want to dig into DNS of a website, u can get all the DNS goodnessps
to see all the processes on your computerps -ax
to see more, like a lot moretop
u can see which processes are using the most CPU in real-timetop -o rsize
can see processes by memorykill -9 processid
will kill a running process, cooler combination for this is,ps -ax | grep processname
which $SHELL
to see which shell we r usingbash
to switch to bash shellzsh
to switch back to zsh shelluptime
to find how long have your mac been upqlmanage -p thefileNameThatUWantToPreview
to preview any filediff file1 file2
to compare two filescurl theLink < where u want to store
to downloadleave 1245
will set an alarm in the terminal, and will tell u to leave at that timehistory
to see the history of all the commands u have been typing in your terminalpython3 -m http.server
This will create a web server of your hard disk and anyone can go to the ip address and see your filesshutdown -h now
to shutdown immediatelyshutdown -r now
to restart immediately
Last active
October 5, 2023 18:23
-
-
Save tusharxoxoxo/2f5cc5673d2b8187fff017da9085a2bb to your computer and use it in GitHub Desktop.
list of super cool mac terminal tricks
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment