Mac Terminal  10 Awesome Mac Terminal Commands!

Поделиться
HTML-код
  • Опубликовано: 27 окт 2024

Комментарии • 111

  • @Geedid
    @Geedid 4 года назад +23

    Good job man, I feel cool right now! 😎

    • @AppleNinja
      @AppleNinja  4 года назад +3

      You just made my Friday with that comment! I love geeking out on the terminal and sharing this info. Thanks again and have an awesome Friday!

  • @leonmettler9601
    @leonmettler9601 2 года назад +3

    Super super insightful. Thanks so much bro.. just got retrenched and started upskilling myself. This makes it feel alot more exciting

  • @chelloveck
    @chelloveck 9 месяцев назад +2

    learned the last one, thank you.

  • @zeskar8669
    @zeskar8669 3 года назад +4

    Man your videos insane i loved it i subbed for sure keep it up.

  • @nikolas8741
    @nikolas8741 3 года назад +4

    Very helpful tutorial. Thanks so much!

  • @vagl0k
    @vagl0k 3 года назад +2

    Very very nice video. With command "say" I make a big party with my friends !! huhu

  • @glhmedic
    @glhmedic 4 года назад +2

    Just subbed to your channel because of this vid. I like vids bout Mac terminal. Keep it up.

    • @AppleNinja
      @AppleNinja  4 года назад

      Thanks bud! Have an awesome night!

  • @aynita-tube8960
    @aynita-tube8960 3 года назад +3

    men what awesome tip .

  • @mazgijoker
    @mazgijoker 2 года назад +2

    Wow thank you!👍

  • @FF7824
    @FF7824 Год назад +1

    Very nicely done! Learned quite a bit

    • @AppleNinja
      @AppleNinja  Год назад

      Awesome, glad you liked it. Have a great day!

  • @alexshewan
    @alexshewan 3 года назад +3

    You can play with the "say" cmd for hours. It has become the new highlight of my apple life :')

    • @AppleNinja
      @AppleNinja  3 года назад +1

      That’s how I feel! Hahahaha

  • @kommamusic4174
    @kommamusic4174 Год назад +1

    Hi im looking for a term. command for open all new aplications on my older mac 10.15.catalina :) or install from apple sites :)

  • @user-sv6bu8ek8z
    @user-sv6bu8ek8z 3 года назад +2

    I got to say I watched over 10 15 videos on how to get my MacBook working again and I got to say this is one of the best videos out there so thank you very much for putting this video out and I hope to see more great job dude.

    • @AppleNinja
      @AppleNinja  3 года назад

      Thank you very much bud! Have an awesome weekend!

  • @memem1792
    @memem1792 3 месяца назад

    more videos please i love your videos

  • @defcon9998
    @defcon9998 4 года назад +6

    This was amazing! Very helpful to refresh ones command skills both new and existing users.

  • @Bearz314
    @Bearz314 Год назад +3

    For anyone still confused about the difference in file sizes, there are two concepts:
    1⃣ There is still confusion in the tech world to this day how much is a kilobyte. In macOS, 1KB=1000B and 1MB=1,000,000B. Meanwhile, some Linux distros would report in kibibytes and mebibytes (1KiB=1024B and 1MiB=1024*1024B). In Windows, 1KB=1024B (but some people would regard this to be wrong). Anyway, drive manufacturers use the first definition, which is why if you bought a 1TB drive, it'll show up as less on a Windows.
    2⃣ File systems like to store files in chunks, with each chunk size being powers of 2. For example, depending on how the drive is formatted, the smallest file size could be 4 KiB. If your file takes up 5KiB (actual), 8KiB on the disk will be used for storage (3KiB wasted). These are the two sizes you see in Get Info panel.
    Putting the two together, macOS's Get Info panel reports in KB/MB while the terminal tools report in KiB/MiB.
    Therefore, the actual size is 313,382,858 B = 313.4 MB = 313.4 * (1000/1024)^2 MiB = 299 MiB (reported by ls)
    The size occupied on disk is 315.9 MB = 315.9 * (1000/1024)^2 MiB = 301 MiB (reported by du)

    • @AppleNinja
      @AppleNinja  Год назад +1

      Awesome explanation! Thanks Bearz314, hope you have a great day!

    • @Bearz314
      @Bearz314 Год назад +1

      @@AppleNinja not a problem and thank you for the video :) Good day to you too.

  • @liamdonohoe8498
    @liamdonohoe8498 2 года назад +1

    H, very cool video! I wanted to try find your video on getting your mac to tell you what software updates are avilable upon login, but the link comes up with an error saying private video.

  • @immodetalbatros3469
    @immodetalbatros3469 2 года назад +1

    thanks bro, now I feel better at work

    • @AppleNinja
      @AppleNinja  2 года назад

      Awesome!!! Happy to help bro!

  • @engoworld3364
    @engoworld3364 3 года назад +1

    Great video

  • @Bestvideosreact
    @Bestvideosreact 3 года назад +2

    Amazing ❤❤

  • @dfpvmed3589
    @dfpvmed3589 2 года назад +1

    Any advice to free up space using terminal? I’m stuck in a loop as not enough space to upgrade to Monterey

  • @francon9586
    @francon9586 Год назад +1

    The "say" command was my favorite.

  • @superfoodie1417
    @superfoodie1417 5 лет назад +2

    Excellent video, keep it up

  • @Javster
    @Javster 2 года назад +1

    great video! - Is there a command/hack to clear the desktop (windows style) instead of the hotcorners? Thanks!

  • @canvaMaster
    @canvaMaster 4 года назад +2

    dude you are my new best friend
    bloody awesome

    • @AppleNinja
      @AppleNinja  4 года назад +1

      Thanks Mav Scott! Have an awesome day bud!

  • @TechParkPersian
    @TechParkPersian Год назад +1

    this video is perfect

    • @AppleNinja
      @AppleNinja  Год назад +1

      Thanks Tech Park 87! Have an awesome day!

  • @DigitalTrendzy2023
    @DigitalTrendzy2023 Год назад

    sir can you please show how to install using Terminal in iMac os

  • @arttartkhai
    @arttartkhai 3 года назад +2

    .. and now I've been playing with say command after the video was end

  • @jimmysaxblack
    @jimmysaxblack Год назад +1

    thanks
    how to purge please !
    thanks

    • @AppleNinja
      @AppleNinja  Год назад

      Hey Jimmy, if you want to purge Caches from your user directory. You can do it in Terminal:
      # LIST USER LEVEL CACHES WITH SIZES - FOR SELECTIVE REMOVAL
      file_list=$(ls Library/Caches/) && for file in $file_list; do du -sh Library/Caches/$file; done
      # REMOVE SELECTED FILE
      rm -rf Library/Caches/Name_Of_File
      # REMOVES ALL CACHES
      rm -rf Library/Caches/*
      Good luck bud!

  • @gunjangoraya946
    @gunjangoraya946 3 года назад +1

    Keep it up

  • @mithimithi7234
    @mithimithi7234 3 года назад +1

    Keep going

  • @AnthonyP2A
    @AnthonyP2A 2 года назад +1

    Jeebus a friggn KEY SMASHER.

    • @AppleNinja
      @AppleNinja  2 года назад

      I never noticed how loud that was! Hopefully not as bad in recent videos.

  • @JaseRhodes
    @JaseRhodes 2 года назад

    Hi there apple ninja really like your delivery as I’m new to this. Was wondering is there an application that writes web page script ie: to perform a task every 2hrs on a specific web page appreciate your help Jak.

    • @AppleNinja
      @AppleNinja  2 года назад

      Hey Rhodzzy you can use a simple script to launch a certain web page, but becomes a lot more difficult if you need to perform actions on the web page like click a button. Some actions are not possible at all.
      To open a web page from Mac Terminal: open webpage_url
      You can add this to a script to automate or you can use the Automator App to create an applet to open a web page.

  • @laadimaniaoye1424
    @laadimaniaoye1424 3 года назад +1

    Fabulous

  • @taylordecoy7200
    @taylordecoy7200 4 года назад +1

    nice

  • @peterbalogh2646
    @peterbalogh2646 2 года назад +1

    Great video! Would you mind telling a few words about installing apps with terminal? Also, giving rights for apps through terminal. My goal is to make a script which installs a few apps I have already downloaded like office 365, ms teams, and a few more, and giving it rights without the constant need of typing my admin password. Thanks in advance!

    • @AppleNinja
      @AppleNinja  2 года назад +1

      Peter not sure my comment will contain all the correct command syntax, so I will create a video and script for you to download this weekend if I can get time.
      Basic steps below.
      From Terminal installing pkg installers:
      sudo installer -pkg /path/to/file.pkg -target /
      To put that into a script
      Type nano in terminal and type below contents and save.
      #!/bin/sh
      installer -pkg /path/to/file.pkg -target /
      exit 0
      I will let you know when I have the vid/script completed. Got a pretty busy weekend but will try to jam it out for ya.

    • @peterbalogh2646
      @peterbalogh2646 2 года назад

      @@AppleNinja Cool! You are great! Btw no rush, I am really interested about how to manage apple devices through terminal. There are very good tutorials about powershell, cmd, bash and so on, so I can create a script to build a win or linux vm or pc from zero to usable without touching it, but I am struggling to find anything like that for macos. Thank you again, take your time, I am happy that I even got an answer from you :-)

  • @johngeorgio5908
    @johngeorgio5908 Год назад

    Dear Sir ,
    while trying to apply Your interesting procedure , nevertheless it appears impossible , by my computer , to sort out , through command Caffeinate Minus W PID .the exemplified "System Preference" screen or appearing window , so to say .
    Please : may I ask whether , perhaps , the computer is already being infected or controlled by s.th. else , or whatever... ?
    Waiting for Your kind reply
    Best Regards

  • @claytonmagnet9961
    @claytonmagnet9961 3 года назад

    awesome! Does anyone know how to use mac terminal and ping a hostname to find all the IP address's associated with the hostname?

    • @AppleNinja
      @AppleNinja  3 года назад

      Hey Clayton yep you can do a host command, let's do it to Apple.com below.
      AppleNinja:~ appleninja$ host apple.com
      apple.com has address 17.253.144.10
      apple.com mail is handled by 10 rn-mailsvcp-ppex-lapp14.apple.com.
      apple.com mail is handled by 10 rn-mailsvcp-ppex-lapp44.apple.com.
      apple.com mail is handled by 10 rn-mailsvcp-ppex-lapp24.apple.com.
      apple.com mail is handled by 10 rn-mailsvcp-ppex-lapp15.apple.com.
      apple.com mail is handled by 10 rn-mailsvcp-ppex-lapp34.apple.com.
      apple.com mail is handled by 10 ma1-aaemail-dr-lapp01.apple.com.
      apple.com mail is handled by 10 ma1-aaemail-dr-lapp02.apple.com.
      apple.com mail is handled by 10 ma1-aaemail-dr-lapp03.apple.com.
      apple.com mail is handled by 10 rn-mailsvcp-ppex-lapp45.apple.com.
      apple.com mail is handled by 10 rn-mailsvcp-ppex-lapp35.apple.com.
      Now we run a reverse lookup using host on the IP:
      AppleNinja:~ appleninja$ host 17.253.144.10
      10.144.253.17.in-addr.arpa domain name pointer apple.fr.
      10.144.253.17.in-addr.arpa domain name pointer applescript.apple.com.
      10.144.253.17.in-addr.arpa domain name pointer world-any.aaplimg.com.
      10.144.253.17.in-addr.arpa domain name pointer apple.com.gy.
      10.144.253.17.in-addr.arpa domain name pointer apple.com.au.
      10.144.253.17.in-addr.arpa domain name pointer podcast.apple.com.
      10.144.253.17.in-addr.arpa domain name pointer apple.de.
      10.144.253.17.in-addr.arpa domain name pointer iphone.apple.com.
      10.144.253.17.in-addr.arpa domain name pointer apple.ca.
      10.144.253.17.in-addr.arpa domain name pointer www.icmoud.com.
      10.144.253.17.in-addr.arpa domain name pointer apple.nl.
      10.144.253.17.in-addr.arpa domain name pointer firewire.apple.com.
      10.144.253.17.in-addr.arpa domain name pointer advertising.apple.com.
      10.144.253.17.in-addr.arpa domain name pointer apple.com.bo.
      10.144.253.17.in-addr.arpa domain name pointer squeakytoytrainingcamp.com.
      10.144.253.17.in-addr.arpa domain name pointer apple.com.hn.
      10.144.253.17.in-addr.arpa domain name pointer apple.com.pa.
      10.144.253.17.in-addr.arpa domain name pointer apple.co.uk.
      10.144.253.17.in-addr.arpa domain name pointer apple.com.lk.
      10.144.253.17.in-addr.arpa domain name pointer guide.apple.com.
      10.144.253.17.in-addr.arpa domain name pointer seminars.apple.com.
      10.144.253.17.in-addr.arpa domain name pointer apple.com.ai.
      10.144.253.17.in-addr.arpa domain name pointer apple.com.cn.
      10.144.253.17.in-addr.arpa domain name pointer apple.com.mx.
      10.144.253.17.in-addr.arpa domain name pointer shake.apple.com.
      10.144.253.17.in-addr.arpa domain name pointer aperturetrialbuy.apple.com.
      10.144.253.17.in-addr.arpa domain name pointer apple.com.co.
      10.144.253.17.in-addr.arpa domain name pointer apple.com.uy.
      10.144.253.17.in-addr.arpa domain name pointer apple.com.sg.
      10.144.253.17.in-addr.arpa domain name pointer icloud.com.
      10.144.253.17.in-addr.arpa domain name pointer apple.es.
      10.144.253.17.in-addr.arpa domain name pointer apple.com.
      10.144.253.17.in-addr.arpa domain name pointer iworktrialbuy.apple.com.
      10.144.253.17.in-addr.arpa domain name pointer apple.it.
      10.144.253.17.in-addr.arpa domain name pointer icloud.com.cn.
      10.144.253.17.in-addr.arpa domain name pointer apple.com.pe.
      10.144.253.17.in-addr.arpa domain name pointer apple.com.py.
      10.144.253.17.in-addr.arpa domain name pointer apple.com.do.
      10.144.253.17.in-addr.arpa domain name pointer asia.apple.com.
      10.144.253.17.in-addr.arpa domain name pointer applejava.apple.com.
      10.144.253.17.in-addr.arpa domain name pointer apple.com.tt.
      10.144.253.17.in-addr.arpa domain name pointer apple.com.my.
      10.144.253.17.in-addr.arpa domain name pointer livepage.apple.com.
      Hope this helps, cheers!

  • @tarakbhatt2111
    @tarakbhatt2111 3 года назад +1

    This was so awesome to learn. Do you have any insight on what could be the issue with frequent random shutdown on MBP late 2013? When I run the script for stress test, yes > /dev/null &. It DOES not shutdown.

    • @Cube_Ernator1077
      @Cube_Ernator1077 Год назад

      I have EXACTLY the Same issue on my 2013 MB Air!

  • @alimbavbiekov118
    @alimbavbiekov118 Год назад

    I couldn't find the process System Preferences, how to display this process?

    • @alimbavbiekov118
      @alimbavbiekov118 Год назад

      Oh ! I understand , II had to open System Preferences... Thank You, good tricks!

  • @supernva8357
    @supernva8357 3 года назад +1

    How did you get the green text?

    • @AppleNinja
      @AppleNinja  3 года назад +1

      Go up to the Terminal Drop Down Menu and Select Preferences. Change -> ‘On startup, open: Homebrew’ restart terminal and you should be good.

  • @eliob7110
    @eliob7110 4 года назад +1

    Hi, Ninja, thanks for your videos. Please, let me know how to create a double boot on Catalina in order to use 32 bits programs?

    • @AppleNinja
      @AppleNinja  4 года назад

      You can use the video below to show you how to Dual Boot your Mac. You need to start with a 10.14 macOS Mojave (Supports 32-Bit) and then create the 10.15 macOS Catalina Volume. While booted into Catalina you cannot run the Mojave installer to install on another volume/partition. Which is why you need to start with Mojave if possible and then create the Catalina volume.
      Dual Boot Mac OS Catalina  Mojave! ruclips.net/video/_TF0aJPOsGQ/видео.html

  • @albertfrrokaj85
    @albertfrrokaj85 3 года назад +1

    yoo its working

  • @Sean-ym5of
    @Sean-ym5of 3 года назад +1

    Can I change my password with terminal?

  • @jimmyconway1513
    @jimmyconway1513 2 года назад

    Does this work with zsh as well ? Or does this only work on bash ?

    • @AppleNinja
      @AppleNinja  2 года назад

      I have not tested each on zsh, but I bet most if not all should work. If you find any that do not please let us know. Thanks Jimmy!

  • @noahsalmons22
    @noahsalmons22 2 года назад

    you seem like a really nice guy

    • @AppleNinja
      @AppleNinja  2 года назад

      Thanks Noah for the kind comment. You just made my day! Have an awesome day bud!

    • @noahsalmons22
      @noahsalmons22 2 года назад +1

      @@AppleNinja thank you man keep working hard 🙏

  • @kemo623ify
    @kemo623ify 3 года назад

    how can i access a smartphone that is connected via usb

  • @mr.fluffyham
    @mr.fluffyham 2 года назад +1

    I have a Mac book pro

  • @richiesyt3492
    @richiesyt3492 2 года назад

    system profiler zsh not found

  • @upchannel8238
    @upchannel8238 4 года назад

    Hello, how can restore my deleted file using Terminal? Thank you

    • @AppleNinja
      @AppleNinja  4 года назад

      If you emptied the trash and the file is gone, then a terminal command will not help. You will need a product like Data Rescue, which I believe you can download the free version and confirm it finds your file you deleted before buying the app.

  • @weissmannrob
    @weissmannrob 3 года назад

    "System Pref..." never shows up in my "top" output.

  • @pegcailla4625
    @pegcailla4625 4 года назад

    shift + > > >

  • @havs0mg0at67
    @havs0mg0at67 Год назад +1

    say OVERIDING USA MISSILE DEFENCES FIRE AWAY NEO

  • @jameschrist758
    @jameschrist758 3 года назад

    Why is my terminal command ends with # instead of $?

    • @GameParrot
      @GameParrot 3 года назад

      run bash, then run the commands

  • @izzettin1586
    @izzettin1586 4 года назад

    hi, my terminal is gone. all I can see is :
    "Last login: Tue May 5 08:29:01 on ttys007
    [İşlem tamamlandı]". (it means "job completed")
    I was making sth about bash profile and trying to save sth, I think i did sth wrong and terminal is not responding now, whatever I push. how can I fix it. even apple doesnt know, I called them.
    on the top, its written that " Terminal -- java_home --bash 80X24" and " Terminal -- bash --bash 80X24 " its trying to command sth. its blinking for like 2 minutes and then stops. it turns to just " Terminal 80X24 "
    thank you very much..

    • @AppleNinja
      @AppleNinja  4 года назад

      If I understand correctly you were adding a command to your bash profile and now your terminal window is messed up?
      Have you rebooted to make sure it’s still messed up?
      Do you have any access to the terminal or is it messed up every time you start it?

    • @izzettin1586
      @izzettin1586 4 года назад

      ​@@AppleNinja hi thank you for your answer. the first answer is yes. I did not reboot. I am not so good at mac. for last question, its messed up every time I start it or restart computer. But I have created a new account on mac and it is working fine. There is no problem about the new users terminal. but I want to use my first account. thank you very much again. stackoverflow.com/review/suggested-edits/26036332 I also asked it in stackoverflow. you can see the screen shots.

    • @AppleNinja
      @AppleNinja  4 года назад

      I wonder if you messed up your Bash Profile. Let’s move it and see if that helps. Click on the desktop, then do a Command+Shift+G put in /Users/Username Here and hit go when the window comes up do a Command+Shift+.
      This will show hidden files. Look for .bash_profile and move it to someplace else. Start terminal and see if that helps.
      When I suggested a reboot I was referring to a restart of the Mac, which you did.
      Let me know if this helps.

    • @izzettin1586
      @izzettin1586 4 года назад

      ​@@AppleNinja I think it works.Thank you very much. I removed it. Can I delete .bash_profile now completely? There are also ".bash_profile.save" and ".bash_profile.anaconda3.bak" files in hidden files. Should I keep them?
      now my terminal says :
      "Last login: Fri May 15 02:34:53 on ttys000
      The default interactive shell is now zsh.
      To update your account to use zsh, please run `chsh -s /bin/zsh`.
      For more details, please visit support.apple.com/kb/HT208050.
      izzettin-MacBook-Air:~ izzettinboga$ chsh -s /bin/zsh
      Changing shell for izzettinboga.
      Password for izzettinboga:
      chsh: no changes made
      izzettin-MacBook-Air:~ izzettinboga$ chsh -s /bin/zsh
      Changing shell for izzettinboga.
      Password for izzettinboga:
      chsh: no changes made
      izzettin-MacBook-Air:~ izzettinboga$
      when I enter password it says: no changes made.
      I want to add bash profile from this document: I need to use spark and anaconda. So what can I do now? medium.com/beeranddiapers/installing-apache-spark-on-mac-os-ce416007d79f
      Thank you very much for your support.=)

  • @JeremyDeBose
    @JeremyDeBose Год назад +1

    That keyboard is getting destroyed. Good stuff though.

  • @juancarloslugo136
    @juancarloslugo136 Год назад

    Cb logoz

  • @seanlowe5547
    @seanlowe5547 2 года назад +1

    Say command, I will make a lot of jokes

  • @Decention32649
    @Decention32649 Год назад +1

    ima do this in minecraft😈😈😈😈😈😈😈

  • @RonaldoEdittz
    @RonaldoEdittz 2 года назад

    2:42

  • @jr7367
    @jr7367 3 года назад +1

    You leaked you ip!

    • @AppleNinja
      @AppleNinja  3 года назад

      IP’s are easy to get. It’s all about the security you have for your network and clients. I do not have any concern with that IP (which is old and no longer valid).

  • @Bboreal88
    @Bboreal88 3 года назад

    666 liker

  • @abdusshakurraad690
    @abdusshakurraad690 2 года назад

    i do like to hacking macb

  • @paulooandree
    @paulooandree Год назад

    Awesome, man my macbook created a partition called EFI on my external hard drive, how do I delete it?
    /dev/disk1 (external, physical):
    #: TYPE NAME SIZE IDENTIFIER
    0: GUID_partition_scheme *1.0 TB disk1
    1: EFI EFI 209.7 MB disk1s1

    • @AppleNinja
      @AppleNinja  Год назад +1

      That is created when you format the disk with GPT, so that if you have it as a Bootable USB stick then you need it. To get rid of it you need to wipe the whole USB drive and will lose your contents, so back it up.
      To wipe it:
      1. Open terminal app
      2. Type ‘diskutil list’ and note the disk# of the external drive
      3. To erase/format type without quotes ‘diskutil eraseDisk JHFS+ NewDiskName MBR disk4’ disk4 is whatever your disk is in the diskutil list.
      Good luck!

    • @paulooandree
      @paulooandree Год назад +2

      @@AppleNinja Man thank you so much god bless you so much , GOT IT !!!!!!
      I used it : diskutil eraseDisk JHFS+ disk1s1 MBR disk1
      THANK YOU, I will subscribe to your channel to continue learning more, by the way i'm from Brazil ,forgive my English .

    • @AppleNinja
      @AppleNinja  Год назад

      @@paulooandree hello my friend in Brazil! Glad you got it and God Bless you as well. Thank you for subscribing and your English is not bad at all 👍🏼. Take care bud and have a great day!