tag: command line

  • 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

  • When you forget to make your first git commit to remote origin, checkout into a new branch, and then merge into main

    When you forget to make your first git commit to remote origin, checkout into a new branch, and then merge into main

    Maria D. Campbell

    In this post, I discuss creating a new local Git repository, checking out into a new branch called create-config-project-and-users-app, trying to check out into main branch after committing changes in create-config-project-and-users-app, and after not succeeding, creating a new branch called main in create-config-project-and-users-app and checking out into main all at once, creating the remote repository on GitHub, adding remote origin, merging create-config-project-and-users-app into main, and pushing changes to remote origin.

    #fullstack development, #macOS, #command line, #git, #local repository, #remote repository, #feature branch, #main branch, #git merge, #series, #terminal

  • 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

  • How to find out the latest Node.js LTS version via Command Line

    How to find out the latest Node.js LTS version via Command Line

    Maria D. Campbell

    How to find out the latest Node.js LTS version via Command Line. As a bonus, I also show how to find the latest Node.js Current (version), both result in only returning the absolute latest versions of both Node.js LTS and Node.js Current. No need to leave the Command Line or scroll through hundreds of versions before getting to the version I want!

    #macOS, #command line, #grep, #pipe, #tail, #nodejs, #lts, #current, #nvm

  • 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

  • Setting up and using the mutt email client in Linux

    Setting up and using the mutt email client in Linux

    Maria D. Campbell

    Setting up and using the mutt email client in Linux, which allows users to send and receive email attachments (and other powerful features) which can be saved locally.

    #command line, #linux, #linux mint, #mutt email client, #email attachment, #security, #series

  • Some Important Terms to Know in Linux

    Some Important Terms to Know in Linux

    Maria D. Campbell

    Some important terms to know in Linux.

    #linux, #linux mint, #command line, #linux kernel, #gnu, #linux distribution, #linux package managers, #source packages, #binary packages, #linux repositories, #linux boot loader, #linux services, #linux filesystem, #linux desktop environment, #linux shells, #linux shell scripting

  • 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 it in Linux bash as well.

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

  • How to send/receive local emails in Linux Mint/VirtualBox

    How to send/receive local emails in Linux Mint/VirtualBox

    Maria D. Campbell

    How to send and receive local emails in Linux Mint/virtualBox using Command Line.

    #command line, #linux, #linux mint, #local mail, #postfix, #mail command, #mailx command, #mailutils, #terminal, #virtualbox

  • The script command in Linux and Unix (macOS)

    The script command in Linux and Unix (macOS)

    Maria D. Campbell

    The script command in Linux and Unix (macOS).

    #command line, #customized scripts, #linux, #macOS, #local npm scripts, #script command, #stdin, #stdout, #stderr

  • 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

  • Redirect operators in Linux and Unix (macOS)

    Redirect operators in Linux and Unix (macOS)

    Maria D. Campbell

    How to use input and output redirect operators in Linux and Unix (macOS) and how they differ.

    #command line, #linux, #macOS, #redirect operator, #stdin, #stdout

  • stdin stdout and stderr in Linux and Unix (macOS)

    stdin stdout and stderr in Linux and Unix (macOS)

    Maria D. Campbell

    stdin stdout and stderr in Linux and Unix (macOS)

    #command line, #linux, #redirect operator, #stdin, #stdout, #stderr

  • How to show hidden files or folders on macOS

    How to show hidden files or folders on macOS

    Maria D. Campbell

    How to show hidden files or folders on macOS.

    #macOS, #chmod, #file permissions, #command line, #finder, #keyboard shortcuts, #macOS users, #shell scripting

  • How to show hidden Files in Windows 11

    How to show hidden Files in Windows 11

    Maria D. Campbell

    How to show hidden Files in Windows 11.

    #command line, #command prompt, #file explorer, #showing hidden files, #terminal, #windows 11

  • Introduction to Command Prompt Commands in Windows 11

    Introduction to Command Prompt Commands in Windows 11

    Maria D. Campbell

    Introduction to Command Prompt Commands in Windows 11.

    #command line, #command prompt, #windows terminal, #windows 11

  • Swapping columns of a text file and then joining its contents with another text file via Command Line

    Swapping columns of a text file and then joining its contents with another text file via Command Line

    Maria D. Campbell

    Swapping columns of a text file and then joining its contents with another text file via Command Line.

    #command line, #awk, #join, #macOS

  • Shell script for turning your macOS laptop's WiFi off and on

    Shell script for turning your macOS laptop's WiFi off and on

    Maria D. Campbell

    Shell script for turning your macOS laptop's WiFi off and on.

    #chmod, #command line, #file permissions, #macOS, #networksetup

  • 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

  • Enabling content insertion inside the VIM editor on macOS when skipping the insert command

    Enabling content insertion inside the VIM editor on macOS when skipping the insert command

    Maria D. Campbell

    How to enable content insertion inside the VIM editor on macOS when skipping the insert command.

    #awk, #join, #command line, #macOS

  • Encrypting and Decrypting Files and Strings

    Encrypting and Decrypting Files and Strings

    Maria D. Campbell

    How to encrypt and decrypt files and strings with Python vs Command Line.

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

  • The importance of macOS updates and why they are important in cybersecurity

    The importance of macOS updates and why they are important in cybersecurity

    Maria D. Campbell

    The importance of macOS updates and why they are important in cybersecurity.

    #command line, #cybersecurity, #device, #macOS, #software updates

  • How to find a folder on your computer

    How to find a folder on your computer

    Maria D. Campbell

    How to save time finding a directory on your computer.

    #command line, #find command, #macOS

  • 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

  • Wireshark vs tcpdump (macOS)

    Wireshark vs tcpdump (macOS)

    Maria D. Campbell

    First, in order to be able to compare Wireshark tot tcpdump, I had to install them.

    #command line, #command line utility, #cybersecurity, #macOS, #network protocol analyzer, #network traffic analyzer, #network traffic capture, #tcpdump, #wireshark

  • Stegenography using Python vs Steghide via CLI (and how does it compare to Cryptography?)

    Stegenography using Python vs Steghide via CLI (and how does it compare to Cryptography?)

    Maria D. Campbell

    Steganography is a method in which secret messages are hidden in cover media.

    #command line, #cryptography, #cybersecurity, #macOS, #python, #steganography, #steghide

  • 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

  • Changing Mac default screenshot file format to jpg

    Changing Mac default screenshot file format to jpg

    Maria D. Campbell

    How to change the default format for screenshots created on your Mac.

    #macOS, #screenshots, #screen capture, #image formats, #command line, #compatibility issues

  • Changing Your (Homebrew) postgreSQL Configuration from trust to md5

    Changing Your (Homebrew) postgreSQL Configuration from trust to md5

    Maria D. campbell

    How to change your (Homebrew) postgreSQL configuration from trust to md5.

    #backend development, #command line, #database configuration, #homebrew, #md5, #osx, #root user, #terminal, #trust, #user authentication

  • How to Save Terminal Output to a File for Future Reference

    How to Save Terminal Output to a File for Future Reference

    Maria D. Campbell

    How to save Terminal output to a file for future reference.

    #command line

  • How to Add Files to Your .gitignore with no Sweat

    How to Add Files to Your .gitignore with no Sweat

    Maria D. Campbell

    How to add files to your .gitignore with no sweat.

    #command line, #git, #gitignore, #osx, #terminal