Colors In Bash Scripts
Using colors in bash scripts can be very useful. If you’ve written your bash script with menus and prompts, it’s a good idea to use ansi color codes to make your outputs more readable to the user. In this tutorial I’ll cover some ways that you can use colors in your bash scripts for a more GUI like experience.
Tags: tutorials, linux, command lineCreate a Menu in a Bash Script
Creating a menu in a bash script can be quite useful and at times necessary. A bash menu can allow you to provide options for user input. Upon user selection of an option in your menu, you can run a command or sequence of commands and display outputs.
Tags: tutorials, linux, command lineWrite Bash Functions
Writing bash functions is a great way to make your scripts modular. If you find you’ll be needing to repeat sets of commands or code logic, it’s a good idea to use functions to avoid redundancy in your script. Bash functions also help keep your code neat and easier to maintain.
Tags: tutorials, linux, command lineAdd Desktop Chrome Extensions From Android
If you’re ever browsing the internet on your Android device and stumble upon a Chrome extension you may be interested in, you can add it to your PC desktop browser right from Android. The next time you open Chrome browser on your PC, you will receive a prompt to install the extension. This comes in handy if you’re not near your PC and don’t want to risk forgetting the extension.
Tags: browserLinux Commands To Get Hardware Info
It’s always a good idea to know how to get hardware info on your linux system. It can be very useful if you need to troubleshoot a hardware issue. There can be times when you need some specific hardware info to get the right drivers. Other times you’ll need specific info to perform a hardware upgrade. The command line offers quite a few ways to obtain this hardware info with some tried and true linux commands.
Tags: linux, tutorials, command lineDark Mode for Any Website With Dark Reader
With the rise of dark themed OSes and apps, it’s no surprise that browser extensions that enable dark mode or night mode have become popular. The Dark Reader browser extension claims to enable dark mode for any website. Dark Reader is available for major browsers like Chrome, Firefox, and Safari.
Tags: browserDetect Android Wakelocks
If you’re noticing that your android device is suddenly draining battery quicker than normal, it can be due to an android wakelock. Once you know the quick battery drain is not due to a faulty battery, you’ll need to detect what’s causing the wakelock. This is likely a misbehaving app.
Tags: android, tutorialsManipulate Text in Files With Sed
The sed linux utility is a powerful stream editor. Sed can manipulate text from standard input or from a file. It is much like a typical text editor. Where sed sets itself apart is in its ability to filter text in a pipeline to expand its capabilities.
Tags: linux, tutorials, command lineCreate A Desktop Launcher In Linux
There may be times when you will need to create a desktop shortcut launcher file in linux. The desktop file is a shortcut to an application or script for launching it. This desktop file adds a launcher to your applications menu and can also be placed in docks or anywhere you’d like.
Tags: linux, tutorialsCreate Bootable Usb With Terminal in Linux
If you’re installing linux, like to distro hop, or simply test different linux distros, you’ll often be creating a live bootable usb. There are a few ways to create a bootable usb in linux. Many distros have Startup Disk Creator(usb-creator-gtk) pre-installed which usually gets the job done. There is the rare occasion when using a GUI app just doesn’t work. For these rare occasions the dd linux command line utility can be an excellent substitute. This is my preferred method and the one I’ll cover in this tutorial.
Tags: linux, tutorials, command line