▲Wirig Diagram Hot
▲ ▲ ▼

How to Make Terminal Black

By

Ever found the default terminal background too glaring for late-night coding or simply prefer a minimalist aesthetic? You're not alone. Many users opt for a black terminal background for its readability and sleek appearance. Here's a step-by-step guide on how to make your terminal black, tailored to various operating systems.

Before we dive in, it's crucial to understand that the terminal background color is set by your terminal emulator, not the operating system itself. So, whether you're using Linux, MacOS, or even Windows, the process involves tweaking your terminal emulator's settings.

Linux Users: Bash Terminal

Bash terminal users can change the background color using the 'setterm' command. This command manipulates the terminal settings, allowing you to change colors, among other things.

DIY Electrician Wire Terminal Battery Crimper Connect Spring Welding Lug Tool Auto Home Durable Cable Hammer
DIY Electrician Wire Terminal Battery Crimper Connect Spring Welding Lug Tool Auto Home Durable Cable Hammer
How to Access Your BeagleBone Black's Terminal | dummies
How to Access Your BeagleBone Black's Terminal | dummies
How to enable dark theme on Windows Terminal - Pureinfotech
How to enable dark theme on Windows Terminal - Pureinfotech

Here's how you do it:

Using setterm command

Open your terminal and type the following command:

How to make black
How to make black
This Pi-Powered Linux Terminal Is the Size of an iPhone
This Pi-Powered Linux Terminal Is the Size of an iPhone
the ghosty config logo on a black background with text that reads, customizing your terminal
the ghosty config logo on a black background with text that reads, customizing your terminal

setterm -background black

This command sets your terminal background to black. If you're satisfied with the color, you can make this change permanent by adding the command to your terminal's startup script (e.g., .bashrc or .bash_profile).

To do this, open your terminal's startup script in a text editor. For instance, to edit the .bashrc file:

Add custom text to terminal when you launch it
Add custom text to terminal when you launch it
8 Ways to Customize Windows Terminal - Make Tech Easier
8 Ways to Customize Windows Terminal - Make Tech Easier
How to Really Clear the Terminal Screen in Linux
How to Really Clear the Terminal Screen in Linux
17 Fun Linux Commands to Run in the Terminal - Make Tech Easier
17 Fun Linux Commands to Run in the Terminal - Make Tech Easier
9 easy Linux terminal commands that make you faster right away
9 easy Linux terminal commands that make you faster right away
Command Line Basics and Useful Tricks With the Terminal | Envato Tuts+
Command Line Basics and Useful Tricks With the Terminal | Envato Tuts+

sudo nano ~/.bashrc

Then, add the command setterm -background black to the file and save it. The changes will apply the next time you open your terminal.

Using terminal emulators like GNOME Terminal or Konsole

If you're using a terminal emulator like GNOME Terminal or Konsole, you can change the background color via the GUI.

How to Create A Terminal System in UE4
How to Create A Terminal System in UE4
Keytool Is Not Recognized as an Internal or External Command — The Black Terminal Fix Almanac
Keytool Is Not Recognized as an Internal or External Command — The Black Terminal Fix Almanac
a computer screen with the words terminal on it
a computer screen with the words terminal on it

Here's how to do it in GNOME Terminal:

  • Right-click > Preferences
  • Profile > Title and Command
  • Change background color to Black in the Text Appearance section
  • Click Close

To make this the default, right-click > Defaults > Profile and repeat the steps.

MacOS Users: Terminal.app

MacOS users can change the terminal background color directly in Terminal.app.

Here's how:

Using Terminal.app preferences

Open Terminal.app, then:

  • Go to Settings > Preferences > Profiles
  • Select the desired profile ( Default is usually fine)
  • Select the Text tab
  • Change the Background color to Black

This change will apply to the selected profile. To make it the default, click the "Default" button at the bottom left.

Using a custom theme

You can also use a custom theme to achieve a black background. To do this:

  • Download your desired theme (e.g., "Mr. Mac's Muscle Beach" color theme)
  • Go to Settings > Preferences > Profiles > Import Settings...
  • Select the downloaded .plist file and click Open

The theme will apply to the selected profile. Repeat the above steps to apply it to the Default profile.

Windows Users: Windows Terminal or PowerShell

Windows users can change the terminal background color using Windows Terminal or PowerShell.

Here's how to do it in Windows Terminal:

Using Windows Terminal settings

Open Windows Terminal, then:

  • Right-click > Settings
  • Go to the Profile section (usually at the bottom of the list)
  • Click on "Add new profile" and name it
  • Scroll down to the "Appearance" section
  • Click the pencil icon next to "Background" and select Black
  • Click the "X" to close the Settings page

To make this the default, open the Settings page again, and change the default profile. Repeat the steps to change the background color.

Mastering your terminal's appearance is just the start of your coding journey. Explore more customizations and keep refining your workspace for optimal productivity.

A smooth, dark terminal might seem like a minor tweak, but it can significantly improve your coding experience, especially during late-night sessions. So, go ahead, make your terminal black, and embrace the minimalist aesthetic.

💬 Comments ↗ Share ★ Save
AD