50 macOS Tips and Tricks Using Terminal (the last one is CRAZY!)

Поділитися
Вставка
  • Опубліковано 30 тра 2024
  • I know your password. Change it with Dashlane: www.dashlane.com/networkchuck50 (Use code networkchuck50 to get 50% off)
    In this video, NetworkChuck shows you the top 50 MacOS terminal commands you NEED to know. Now, while Mac OS is unix-based and very similar to Linux, it has its nuances and things worth paying attention to. Things like, making your Macbook talk, finding wifi passwords, diving into the matrix and taking a trip to the aquarium, all from your terminal.
    🔥🔥Join Hackwell Academy: ntck.co/NCAcademy
    **Sponsored by Dashlane
    SUPPORT NETWORKCHUCK
    ---------------------------------------------------
    ➡️NetworkChuck membership: ntck.co/Premium
    ☕☕ COFFEE and MERCH: ntck.co/coffee
    Check out my new channel: ntck.co/ncclips
    🆘🆘NEED HELP?? Join the Discord Server: / discord
    STUDY WITH ME on Twitch: bit.ly/nc_twitch
    READY TO LEARN??
    ---------------------------------------------------
    -Learn Python: bit.ly/3rzZjzz
    -Get your CCNA: bit.ly/nc-ccna
    FOLLOW ME EVERYWHERE
    ---------------------------------------------------
    Instagram: / networkchuck
    Twitter: / networkchuck
    Facebook: / networkchuck
    Join the Discord server: bit.ly/nc-discord
    0:00 ⏩ Intro
    0:12 ⏩ say
    0:23 ⏩ security find-generic-password -wa Wifi
    0:40 ⏩ pbcopy
    0:54 ⏩ command + option + shift + v
    1:08 ⏩ caffeinate
    1:20 ⏩ command + shift + 3
    1:53 ⏩ defaults write com.apple.screencapture name
    2:10 ⏩ defaults write com.apple.screencapture type
    2:19 ⏩ default write com.apple.screencapture location ~/Desktop/screenshots
    2:40 ⏩ passwd
    4:11 ⏩ cd
    4:17 ⏩ ls
    4:20 ⏩ pwd
    4:26 ⏩ whoami
    4:32 ⏩ mv
    4:36 ⏩ cp
    4:41 ⏩ ditto
    4:48 ⏩ df -h
    4:51 ⏩ nano
    5:00 ⏩ man
    5:09 ⏩ open
    5:18 ⏩ ping
    5:25 ⏩ ifconfig
    5:36 ⏩ grep
    5:43 ⏩ awk
    5:53 ⏩ traceroute
    6:04 ⏩ dig
    6:12 ⏩ ps
    6:21 ⏩ top
    6:31 ⏩ kill
    6:47 ⏩ which $SHELL
    6:56 ⏩ bash
    7:00 ⏩ zsh
    7:05 ⏩ uptime
    7:10 ⏩ killall mDNSResponder….and more
    7:15 ⏩ qlmanage
    7:22 ⏩ diff
    7:27 ⏩ curl
    7:42 ⏩ leave
    7:54 ⏩ history
    7:59 ⏩ disable gatekeeper
    8:20 ⏩ brew
    8:46 ⏩ cmatrix
    9:02 ⏩ asciiquarium
    9:13 ⏩ toilet
    9:31 ⏩ tetris
    9:48 ⏩ python3
    10:18 ⏩ shutdown
    10:33 ⏩ sudo touch id
    AFFILIATES & REFERRALS
    ---------------------------------------------------
    (GEAR I USE...STUFF I RECOMMEND)
    My network gear: geni.us/L6wyIUj
    Amazon Affiliate Store: www.amazon.com/shop/networkchuck
    Buy a Raspberry Pi: geni.us/aBeqAL
    Do you want to know how I draw on the screen?? Go to ntck.co/EpicPen and use code NetworkChuck to get 20% off!!
    #MacOS #Terminal #brew
  • Наука та технологія

КОМЕНТАРІ • 613

  • @NetworkChuck
    @NetworkChuck  Рік тому +87

    I know your password. Change it with Dashlane: www.dashlane.com/networkchuck50 (Use code networkchuck50 to get 50% off)
    0:00 ⏩ Intro
    0:12 ⏩ say
    0:23 ⏩ security find-generic-password -wa Wifi
    0:40 ⏩ pbcopy
    0:54 ⏩ command + option + shift + v
    1:08 ⏩ caffeinate
    1:20 ⏩ command + shift + 3
    1:53 ⏩ defaults write com.apple.screencapture name
    2:10 ⏩ defaults write com.apple.screencapture type
    2:19 ⏩ default write com.apple.screencapture location ~/Desktop/screenshots
    2:40 ⏩ passwd
    4:11 ⏩ cd
    4:17 ⏩ ls
    4:20 ⏩ pwd
    4:26 ⏩ whoami
    4:32 ⏩ mv
    4:36 ⏩ cp
    4:41 ⏩ ditto
    4:48 ⏩ df -h
    4:51 ⏩ nano
    5:00 ⏩ man
    5:09 ⏩ open
    5:18 ⏩ ping
    5:25 ⏩ ifconfig
    5:36 ⏩ grep
    5:43 ⏩ awk
    5:53 ⏩ traceroute
    6:04 ⏩ dig
    6:12 ⏩ ps
    6:21 ⏩ top
    6:31 ⏩ kill
    6:47 ⏩ which $SHELL
    6:56 ⏩ bash
    7:00 ⏩ zsh
    7:05 ⏩ uptime
    7:10 ⏩ killall mDNSResponder….and more
    7:15 ⏩ qlmanage
    7:22 ⏩ diff
    7:27 ⏩ curl
    7:42 ⏩ leave
    7:54 ⏩ history
    7:59 ⏩ disable gatekeeper
    8:20 ⏩ brew
    8:46 ⏩ cmatrix
    9:02 ⏩ asciiquarium
    9:13 ⏩ toilet
    9:31 ⏩ tetris
    9:48 ⏩ python3
    10:18 ⏩ shutdown
    10:33 ⏩ sudo touch id

  • @blakecalhoun3721
    @blakecalhoun3721 Рік тому +388

    Please do more Mac videos.

  • @BrutusMaximusAurelius
    @BrutusMaximusAurelius Рік тому +177

    Been a Mac and Linux user for a long time, but I always like these type of videos because there’s almost always something new. In this video it’s the last one with touchID. It somehow completely escaped me that this is possible, so thanks!

    • @rishabhpant1828
      @rishabhpant1828 Рік тому +1

      Same here

    • @vaniad555
      @vaniad555 Рік тому +2

      so true, I have forgoten that we can play games in the terminal, and good reminder of how great brew is.

    • @adalmar9889
      @adalmar9889 10 місяців тому +1

      Same here- Mac has the edge over Linux for me now

  • @Zancb
    @Zancb Рік тому +76

    With your `kill -9` command, you needed to specify that `kill -9` forcefully kills a process without giving it a chance to gracefully exit/terminate. You never NEVER want to use `kill -9` for ending just any process. Using regular `kill` will at least give the process a chance to clean up after itself. If you use `kill -9` you could run the risk of heaps of memory being stuck in RAM or open files that couldn't close, which could cause further processes hanging, like Finder trying to figure out why a file is open and not able to be accessed.

  • @BaileyMagikz
    @BaileyMagikz Рік тому +8

    as a longtime viewer and a macos / windows user i appreciate the mac content and showing how amazing terminal/macos/launchpad is

  • @leodepaulis
    @leodepaulis Рік тому +27

    Very useful (as always). With ´history' the list has each command with an index number on the left, so you can then run a specific command in the list by typing !. In your example if you wanted to run the "ps -ax" command you would type !593. You can also count from the bottom up, so that command is the 14 last which means you could also run it by typing !-14.

    • @gizmoitus
      @gizmoitus Рік тому

      I am a long time bash/history user, and use it frequently. It also supports incremental search for prior commands using ctrl-r, which is a great feature. However, just to make it clear this is a bash feature, as other popular shells like zsh do things differently. Commands get stored in the ~/.bash_history file. This is useful to know, because you can actually edit that file with vi if you mistakenly add a bunch of commands by accident. There are also 2 environment variables you can set globally by editing the /etc/bashrc file to change them. By default on osx i think it's 500 entries (depends on your version?) but if you'd rather increase this to 5000, you would add these lines: export HISTSIZE=5000 and export HISTFILESIZE=5000. Open a new terminal and you will now have a larger history buffer file.

  • @talha-raja
    @talha-raja Рік тому +3

    Chuck is coming up with exactly that content which I am learning right now. Legend 💫

  • @williemaxt
    @williemaxt Рік тому +3

    Thanks so much for making this. I'm a lifelong Linux user that just switched to an M1 Mac a few days ago and this is exactly what I needed

  • @PeteRatcliffe
    @PeteRatcliffe Рік тому +5

    Quickest 11 minutes ever! Nicely done.

  • @greggdingle3882
    @greggdingle3882 Рік тому +1

    Fantastic! From very useful to very fun. A hook came down and caught one of my fish from the asciiquarium. Keep up the great work!

  • @stopper0203
    @stopper0203 Рік тому

    This video was very enjoyable to watch. Thanks NetworkChuck!

  • @Luiblonc
    @Luiblonc Рік тому

    Thanks, NetworkChuck these commands will certainly push me further in the terminal - especially with a cup of brew! :)

  • @MoodyCodes
    @MoodyCodes Рік тому +1

    Bro that was lit!! Loved the sudo with Touch ID and the find password for wifi.

  • @sens5551
    @sens5551 Рік тому +18

    We'd honestly be lost without you, thank you chuck!

    • @borisvukcevic1454
      @borisvukcevic1454 Рік тому +1

      Do a Google search and you would see you're fine. This existed long before he made this video.

    • @borisvukcevic1454
      @borisvukcevic1454 Рік тому +1

      No, no one is lost without Chuck. I think you need to stop smoking his pipe. XD XD XD

    • @ahmedahmedx9600
      @ahmedahmedx9600 Рік тому +1

      @@borisvukcevic1454 you right ! People need to start learn how to search for information or they will be stuck until someone explains stuff

    • @sens5551
      @sens5551 Рік тому +2

      @@borisvukcevic1454 yea I know but I meant it as a thanks for all the videos he posted overall throughout the years.

  • @SteveUrich
    @SteveUrich Місяць тому

    Great Video. I haven’t used UNIX in quite a while, but your video made me remember just how powerful it can be.
    What I would love to see are some of the commands that can be used to organize your files.

  • @NajaUS
    @NajaUS Рік тому

    You contents are awesome bro. Leaning a lot from you. Keep the good work up man

  • @dosaiba5294
    @dosaiba5294 Рік тому +4

    These were all awesome, one I would add is that you can hold option and click to change the location of the cursor which is extremely useful when copying and pasting long commands and wanting to change small parts of it

  • @ErtanB0B
    @ErtanB0B Рік тому

    Amazing content; fast and serious:) loved it, thank you

  • @emiel333
    @emiel333 11 місяців тому

    Great and useful commands, thanks! Want to see more Mac videos like this one.

  • @carnavalesenpanama
    @carnavalesenpanama Рік тому

    The last tip will help me A LOT as a developer when I need to install packages and stuff on my Mac. Thank you!

  • @h00t3r
    @h00t3r Рік тому

    I've learned alot from your channel..Thanks NetworkChurck!!!

  • @sebastianhildebrandt
    @sebastianhildebrandt Рік тому +1

    I can only click "like" 👍 once for this video but I wanted to click it 50 times (for every tip)... awesome!!! My absolute favorite UA-cam channel, always having fun! Thank you so much!

  • @xoxoxo-42
    @xoxoxo-42 Рік тому

    Love ya chuck keep ‘em coming brother

  • @iuriigrytsai392
    @iuriigrytsai392 Рік тому +2

    Hey man!
    You’re crazy! I’m excited about your expression and how you do a job - teaching people.
    Just realised that you have bug bounty basics courses and other interesting stuff at your academy.
    So. I’m going to subscribe immediately!
    Thank you once again for digging me into IT.

  • @vincentfinn292
    @vincentfinn292 Рік тому +4

    Very good video, as always! Thanks!

  • @mkdn
    @mkdn Рік тому

    This is pure gold! Thank you 🙏🏻

  • @tagheuer164
    @tagheuer164 2 місяці тому

    Thank you for that eye opener video!🙏🏽

  • @seanki
    @seanki Рік тому

    I like you more and more, great format on the video. I’m gonna go play with my Mac, thanks 👏🏼🔥

  • @Asherstitusworld
    @Asherstitusworld Рік тому +2

    Super Video Chuck Your videos are Awesome

  • @TheYooToob2000
    @TheYooToob2000 Рік тому +18

    I’m taking a Linux class now (total beginner) and had no idea you could do this kind of stuff in the terminal. Pretty cool

    • @LovecraftianGodsKiller
      @LovecraftianGodsKiller Рік тому +6

      Luckily, most of the things you can do in the terminal in Linux, you can in MacOS and vice versa. I'm primarily a Linux user, but if I had to choose between Windows and MacOS I would choose MacOS any day because of how similar it and Linux are.

    • @martinb.770
      @martinb.770 Рік тому

      The so called userland (aka GNU environment), including the bash/shell, grew together between the BSD and Linux world.
      There is a bunch of system commands, that still are different for BSD/Mac, but just a small number compared to the overlapping parts.
      If you use Homebrew or the MacPorts (you can even use both aside), you get a repository that offers the an increasing number of projects (shell based, but also GUI/X/Qt etc.) from the Linux world.
      It's no wonder, Apple ditched many features (=all non-Mac specific services) from the old MacOSX Server, because most people will use the more common pendants of webservers, DNS, DHCP, mail, .... from the GNU ecosystem, anyway.

  • @RobSlayerRodeoDrive
    @RobSlayerRodeoDrive Рік тому

    Network Chuck's videos are the best. So much fun to watch. 😜

  • @xjype
    @xjype Рік тому

    Awesome content, keep it up man!

  • @not.securewifi
    @not.securewifi Місяць тому

    I suggest 1/2 speed playback for network chill chuck, plus you can keep up with the commands and take notes......1:48 "better say yes nick, Ima lock you in a limmittle space" (at 1/2 speed) thanks for putting this together @networkchuck new fan and love your work.

  • @ibashyougood
    @ibashyougood Рік тому

    Would love to see more mac tips n Trix :D this is awesome!

  • @nevergonnabesilent
    @nevergonnabesilent Рік тому +1

    Dude, you're awesome. Keep the great content coming

  • @alexjr181
    @alexjr181 Рік тому +13

    Cmd+Shift+4 then press the space bar. Now you can choose which entire window you want to take a screenshot of.

  • @ilyagurenko4190
    @ilyagurenko4190 Рік тому

    thank u sir ! that was actually very nice, especially the wifi pass and the caffeinate

  • @sargismartirosyan9946
    @sargismartirosyan9946 Рік тому +1

    Big fan Network Chuck 😀 love your all videos 🙂

  • @FrankPerkins
    @FrankPerkins Рік тому

    Tip #49 is killer! Thanks for sharing.

  • @christopheanfry2425
    @christopheanfry2425 Рік тому

    Thank you so much for all of these unknown and useful commands.

  • @swap2505
    @swap2505 Рік тому

    the content of this video is amazing btw, thank you Chuck !

  • @G0nz0uk
    @G0nz0uk Рік тому

    This is great, I hope you do another!

  • @eugrus
    @eugrus Рік тому +8

    As someone who has been using Linux since 2004, this is the first video ever that got me interested in getting a Mac!

    • @hmdz150
      @hmdz150 Рік тому +1

      Mac is Unix and a modern UI on top of it. You can always run Linux in Mac using parallels.

    • @eugrus
      @eugrus Рік тому +1

      @@hmdz150 thanks, cap!

  • @KasimSheyi
    @KasimSheyi Рік тому +1

    You just gained a new subscriber. Awesome content

  • @zippyz4170
    @zippyz4170 Рік тому +1

    That screen capture with command+shift+4 just changed my workflow. Thank you!

    • @nonanleon
      @nonanleon Рік тому

      Ctrl + shift +command +4; are you talking about this combination?

    • @petrocksgarage
      @petrocksgarage 11 місяців тому

      @@nonanleon Try command-shift-5, change to Record Selection in the HUD that appears, to create screen recordings. Bonus points to enable Show Mouse Clicks in the Options popup in that HUD.

  • @arunachalamm3399
    @arunachalamm3399 Рік тому

    I guess you are the only channel which makes even an advertisement so interesting to watch!!!

  • @WonderTwin89
    @WonderTwin89 Рік тому

    The new studio looks awesome, Chuck!

  • @mrfordsclass
    @mrfordsclass Рік тому

    Sharing this one as well with my students. Thank you.

  • @konsl3133
    @konsl3133 Рік тому +1

    That screenshot with clipboard is amazing. I was always upset that i had to take it from the desktop!!! Man u just improved my life!!! 😂

  • @Santana09133
    @Santana09133 Рік тому

    Helped me a lot! Good video!

  • @HungarianManbeast
    @HungarianManbeast Рік тому

    the touch id sudo is a killer! thanks Chuck

  • @rudya.hernandez7238
    @rudya.hernandez7238 Рік тому

    Saving this video for future reference. Thanks Chuck.

  • @FahimX95
    @FahimX95 Рік тому

    im not a mac user but its nice to see that you cover the most of your audience. Cheers

  • @fernandochow2629
    @fernandochow2629 Рік тому

    One of the awesomest videos!! Thank you

  • @kargasounds6451
    @kargasounds6451 Рік тому

    Thank you so much for this video!

  • @karanrajpurohit132
    @karanrajpurohit132 Рік тому +1

    Last one was The One I really needed with my new mac

  • @kodymiller1602
    @kodymiller1602 Рік тому +5

    This came just in time. I’ve been recently working with macs more at work so this is helpful.

  • @digsbious
    @digsbious Рік тому

    Thank you Mr. Network Chuck.

  • @Avesta.
    @Avesta. Рік тому

    Ha! Most of those I already knew but that last one is the bomb! You rock dude!🍺

  • @fifthmaple
    @fifthmaple Рік тому

    You are the only reason I am understanding everything in networking now! You make learning so fun! One question though, the command to download brew where is that?

    • @Sonnii
      @Sonnii 7 місяців тому

      idk

  • @juanleche5382
    @juanleche5382 7 місяців тому

    This was incredibly helpful 👏 👌

  • @sklise1
    @sklise1 Рік тому +5

    Thanks! All the stuff with cloudron, and raspberryPi stuff.. super awesome. Figured i could at least buy you a cup of coffee...Have a great thanksgiving.

    • @NetworkChuck
      @NetworkChuck  Рік тому +2

      Thanks Steve!! I can always use more coffee ☕️

  • @thebozzIDW
    @thebozzIDW Рік тому +2

    29 seconds into this video and it is already awesome.

  • @bunnybird12
    @bunnybird12 Рік тому

    This was super cool. Would consider myself a Mac power user but I didn’t know a lot of this.

  • @squilliam79
    @squilliam79 Рік тому

    This is the first time I’ve watched a tips for OS video and learned something new and useful

  • @supriyochatterjee4095
    @supriyochatterjee4095 Рік тому +1

    Awesome, waiting for Windows Server, Active Directory, VMWARE, Networking top troubleshooting commands videos soon, thanks a lot

  • @sh1ma958
    @sh1ma958 Рік тому +1

    Love your content

  • @cgme9535
    @cgme9535 Рік тому +1

    Love the video 👍

  • @gkennedy_aiforsocialbenefit

    Been follwing you for years. Thank you for your excellence.

  • @ashishawasthi4350
    @ashishawasthi4350 3 місяці тому

    “While ur brew is brewing …brew brew…..” that was hilarious….😂
    Amazing stuff brother…the entire video was really informative…

  • @limbicbrain3748
    @limbicbrain3748 Рік тому

    Fantastic stuff. Just to add the last command also works on apple watch. So not only does sudo work with touch ID, but if you have apple watch configured to unlock your mac, it will work with sudo.Great stuff!

  • @Gael_AG
    @Gael_AG Рік тому

    The touchid trick is mind blowing 🤯🔥

  • @nomirrors3552
    @nomirrors3552 Рік тому +9

    Here's a bonus tip:
    Is there a really long file name you don't want to have to type? No problem. Just drag that file INTO your terminal window. Bam, it prints out the file name including the full path. Easy.

    • @us_f4rmer
      @us_f4rmer 5 місяців тому

      Now THAT is a great extra, ty @nomirrors3552

  • @rhpmpp
    @rhpmpp Рік тому

    We need another video like this..! Please upload moreee

  • @ChipBeforePC
    @ChipBeforePC Рік тому +1

    *Truly Outstanding* TY

  • @NayJ2008
    @NayJ2008 Рік тому

    Hey bro, found you almost a week ago, I've been really enjoying your videos. You're like the Peter McKinnon (One of my favourite photography based UA-camrs) of computer networks lol and hey, you both love coffee ;)

  • @sirflimflam
    @sirflimflam Рік тому +2

    That touchid sudo was the best gem for me

  • @JoeAddison72
    @JoeAddison72 Рік тому

    Love the sudo touch ID thing!

  • @gabrieljuarez8840
    @gabrieljuarez8840 Рік тому

    I will love more stuff for Mac. thank you

  • @Argylleagen
    @Argylleagen Рік тому

    Lovely. Brilliant. Magnifico!

  • @parsonsmarcus
    @parsonsmarcus Рік тому

    I have to say that I freaking love Dashlane! I wish I saw your code because I just outright bought it a couple months back, but it's been a crap ton better than NordPass or especially ExpressVPN Keys. I love it!!

  • @moazabuobida9433
    @moazabuobida9433 Рік тому +3

    Hey man, your videos are fantastic.
    Can you make a video about installing macOS on non-apple PC using the open-core method?
    I think you are the best who can explain it!

  • @patrickperson3913
    @patrickperson3913 Рік тому

    really useful bro😊

  • @nithinkumar4664
    @nithinkumar4664 Рік тому +2

    It is very useful sir thank you 😊

  • @jerrysz3155
    @jerrysz3155 8 місяців тому

    Hey, good stuff. I used many of these regularly except for nano. vi for terminal or gvim for the stand alone. Also, for simple stuff 'cut' command is pretty good, and the one I was surprised not see in your video was 'find' - that one I use daily. Also cd -, !! and !$.

  • @phaberest_
    @phaberest_ Рік тому

    Knew every of them expept the last one and yeah it was definitely worth watching the entire video!

  • @wisemasterbuilder
    @wisemasterbuilder Рік тому

    Epic Mighty Friend!

  • @raphostrovsky
    @raphostrovsky Рік тому +1

    Awesome, no enough good material about this elsewhere.
    More macOS!

  • @rommelcampos4452
    @rommelcampos4452 3 місяці тому

    The touchId in terminal is fantastic! hahahaha thanks buddy!

  • @benroth1837
    @benroth1837 Рік тому

    Great video - thanks! And great sound, what microphone are you using?

  • @codemaniadev
    @codemaniadev Рік тому

    Man, the touch id with sudo is a life saver ❤❤❤

  • @hinesslaga2500
    @hinesslaga2500 Рік тому

    That's a great one 🎉🎉🎉

  • @IorgaArtStudio
    @IorgaArtStudio 6 місяців тому

    man I love your videos and those intros :))

  • @choy211995yt
    @choy211995yt Рік тому

    I love the last touch ID bypass!

  • @jeffreyhatfield7989
    @jeffreyhatfield7989 Рік тому

    Incredible video. Bought an M1 air last year for my wife, after this video it might get way more use from me!

  • @watermelonboimemez
    @watermelonboimemez Рік тому

    thanks so much for this i have always used a mac and wanted this for so long do more mac videos please

  • @MarkNorgate
    @MarkNorgate Рік тому

    That last sudo one was worth the whole video 👍🏻

  • @Andrew-7324
    @Andrew-7324 4 місяці тому

    perfect video, thx a lot

  • @PraveenRai
    @PraveenRai Рік тому

    @NetworkChuck thanks sharing such a informative video..some of commands you discussed is very handy... btw if you not mind would you please help me to know the font and color scheme you used in this terminal ...it's really crisp and eye pleasing ... i would like to try

  • @itspervez17
    @itspervez17 Рік тому +3

    Thanks for the sharing