![terminal command to check disk space mac terminal command to check disk space mac](https://www.howtoisolve.com/wp-content/uploads/2018/06/Cloud-Drive-settings-on-Mac.png)
btrfs fi df /device/ Show disk space usage information for a btrfs based mount point/file system.
![terminal command to check disk space mac terminal command to check disk space mac](https://www.softwarehow.com/wp-content/uploads/cleanmymac-x-space-lens.png)
It essentially combines the functionality of both du and df into a single command, so you dont have to run the two commands individually. du command Display the amount of disk space used by the specified files and for each subdirectory. duf or Disk Usage/Free is a free and open-source command-line utility that allows you to view your systems disk usage and free space from right inside a terminal window. To change the startup volume from the System Preferences menu, click "Apple," select "System Preferences" and then click "Startup Disk" to display the Startup Disk window. Linux commands to check disk space using: df command Shows the amount of disk space used and available on Linux file systems.
![terminal command to check disk space mac terminal command to check disk space mac](https://cdn.cleanmymac.com/blog_articles/February2021/mac-system-storage0002.png)
Use the arrow keys to select the drive you want to boot from and then press "Enter" to use it.
Terminal command to check disk space mac how to#
Just hold the "Option" key after you turn on or restart your Mac to display the Startup Manager. The following list of commands will provide you with an information on how to check disk space on Ubuntu 18.04. You can change the startup disk while the Mac is booting. Using "sudo" in a bash shells script is not necessary, especially if you run the script as a superuser. To run the shell at a specified time, create a Cron job.ĭon't forget the "sudo" part of the command to run it as a superuser from the Terminal. That’s why almost everything that you can do using graphics interface and MacOS apps, can also be accomplished using a command line (start the Terminal app). #!/bin/bash bless -mount /Volumes/Startup_Disk_Name -setBoot shutdown -r now To get more information on the Bless command, type "man bless" without the quotes into the Terminal and press "Enter."Ī simple bash shell script that changes the startup disk and then restarts the Mac looks like this: