tag: command line

  • How to check what is being ignored in your local git repository using command line

    How to check what is being ignored in your local git repository using command line

    Maria D. Campbell

    Learn how to verify what is being ignored in your local Git repository using command line. This way, you never lose data that may be stored in such files.

    #macOS, #command line, #git, #gitignore

  • Editing your zsh history

    Editing your zsh history

    Maria D. Campbell

    Learn how to open and edit your .zsh_history file directly in Vim — using command, insert, and visual mode — to remove duplicate commands and typos from your Zsh shell history.

    #macOS, #command line, #history, #terminal history, #vim, #zsh

  • How a stray package-lock.json can break your Next.js Turbopack build

    How a stray package-lock.json can break your Next.js Turbopack build

    Maria D. Campbell

    How to avoid the Turbopack multiple lockfiles warning while developing a Next.js application.

    #macOS, #command line, #npm

  • How to measure test coverage in Django

    How to measure test coverage in Django

    Maria D. Campbell

    Coverage.py is the go-to tool for measuring how much of your Django application your tests actually exercise. Here's how to install it, run it against a real project, and interpret the results.

    #command line, #terminal, #fullstack development, #macOS, #django, #python3, #tests, #coverage, #coverage.py

  • Setting your default browser via Command Line in macOS

    Setting your default browser via Command Line in macOS

    Maria D. Campbell

    Learn how to use the defaultbrowser Homebrew package to set your default browser from the macOS command line, and why AppleScript-based approaches stopped working in Ventura.

    #applescript, #command line, #macOS, #default browser, #homebrew, #terminal

  • Clearing Terminal history in Linux and why it is important to do on occasion

    Clearing Terminal history in Linux and why it is important to do on occasion

    Maria D. Campbell

    Learn how to manage your bash history in Linux — from deleting individual commands to clearing .bash_history entirely — and why it matters for privacy and security.

    #bash, #command line, #linux, #history, #security, #terminal history, #vim

  • The mailx Command Line email client vs the mutt Command Line email client in Linux

    The mailx Command Line email client vs the mutt Command Line email client in Linux

    Maria D. Campbell

    The mailx Command Line email client vs the mutt Command line email client in Linux.

    #command line, #linux, #mutt email client, #mailx email client

  • Encrypting and decrypting a file with GPG in Linux

    Encrypting and decrypting a file with GPG in Linux

    Maria D. Campbell

    In this post, I show how to encrypt and decrypt a file in Linux with GPG using human-readable language.

    #encryption, #decryption, #gpg, #linux, #command line, #cybersecurity

  • Bash auto-completion in Linux

    Bash auto-completion in Linux

    Maria D. Campbell

    Since I have been working much more using bash in Linux, I miss the Zsh auto-completion feature and wanted to implement something similar in Linux bash as well. Learn how to install and use the bash-completion package in a Linux Ubuntu distro.

    #command line, #terminal, #linux, #ubuntu, #linux mint, #bash, #auto-completion, #zsh

  • The pipe (|) and tee commands in Linux and Unix (macOS)

    The pipe (|) and tee commands in Linux and Unix (macOS)

    Maria D. Campbell

    The pipe (|) and tee commands in Linux and Unix (macOS)

    #command line, #linux, #unix, #macOS, #pipe, #tee, #wc

  • How to write protect a file in macOS

    How to write protect a file in macOS

    Maria D. Campbell

    How to write protect a file in macOS.

    #chflags, #command line, #macOS, #modify file flags, #schg, #system immutable flag, #uchg, #user immutable flag, #write protect files

  • Encrypting and Decrypting Files and Strings

    Encrypting and Decrypting Files and Strings

    Maria D. Campbell

    In this post, I show how to encrypt and decrypt files with a Python encryption/decryption application using the Python Fernet symmetric encryption method and via Command Line using GnuPG.

    #decryption, #encryption, #gnupg, #symmetric encryption, #command line, #macOS, #python3, #security

  • Linux/Unix Command Line Commands applicable to Cybersecurity

    Linux/Unix Command Line Commands applicable to Cybersecurity

    Maria D. Campbell

    Linux/Unix Command Line commands applicable to Cybersecurity.

    #command line, #cybersecurity, #linux, #macOS, #unix

  • Reinstalling Git with Homebrew to Get the Latest Version

    Reinstalling Git with Homebrew to Get the Latest Version

    Maria D. Campbell

    Installing Git with Homebrew on macOS gives you faster, easier updates than relying on Xcode. Here's how to do it using the Git alias command.

    #command line, #homebrew, #git, #git upgrade, #macOS, #macOS tahoe, #sip, #system integrity protection, #Xcode

  • Compressing and uncompressing directories from the command line

    Compressing and uncompressing directories from the command line

    Maria D. Campbell

    How to compress and uncompress directories from the command line and why one way may be preferable over another.

    #command line, #compressing directories, #macOS, #tar, #unix