Skip links

  • Skip to primary navigation
  • Skip to content
  • Skip to footer
An independent mind...
  • Portfolio
  • Posts
  • Categories
  • Tags
  • About
    Francis T. O'Donovan

    Francis T. O'Donovan

    Data Science Manager at Hospital IQ – Planet discoverer, researcher, developer, geek.

    • Boston, MA
    • Website
    • Email
    • Bitbucket
    • GitHub
    • KeyBase
    • LinkedIn
    • StackOverflow
    • Twitter
    • Email

    Nix: Mkfile - Create an empty file

    less than 1 minute read

    Creates an empty 10 gigabyte test file:

    mkfile 10g /path/to/file
    

    Via herrbischoff/awesome-macos-command-line.

    Tags: nix, til

    Categories: til

    Updated: December 10, 2020

    Twitter Facebook LinkedIn
    Previous Next

    Comments

    You May Also Enjoy

    Nix Split A File By Line Number

    less than 1 minute read

    Nix: Convert reStructuredText to Markdown

    less than 1 minute read

    I’ve used pandoc a lot before to convert Markdown files to PDFs. I just found out it can also convert reStructuredText text files to Markdown format:

    Nix: Get source directory of a script within the script

    less than 1 minute read

    ```bash #!/bin/bash

    Mac: Logout a user from the command line

    less than 1 minute read

    sudo launchctl bootout gui/$(id -u <username>) # or sudo launchctl bootout user/$(id -u <username>) Works on macOS 10.11.x or later.

    • Website
    • Email
    • Bitbucket
    • GitHub
    • KeyBase
    • LinkedIn
    • StackOverflow
    • Twitter
    • Feed
    © 2021 Francis T. O'Donovan. Powered by Jekyll & Minimal Mistakes.