Snippets.page

Code snippets, tips, how-tos

Tag: bash

  • Check disk usage in Linux command line

    View total disk usage Disk free space can be checked in the Linux command line using the df and du commands. df stands for disk free. du stands for disk usage. The -h flag stands for human. It shows the sizes in human readable formats like MB or GB instead of bytes. Disk usage by […]

    Read more

  • Enable syntax highlighting for nano on macOS Catalina

    The default version of nano that is installed on a mac most likely does not support syntax highlighting. To check your version run: You will need to upgrade it using a version from Homebrew. If you don’t have Homebrew, then you can install it easily. Think of Homebrew like a command line based AppStore. To […]

    Read more