Posts Tagged bash
📅 January 2, 2018
Do you find yourself opening a terminal for every new program or command-line based operation you want to perform?
How about opening a terminal to run a GUI program, such as VeraCrypt?
When multiple terminals are open simultaneously, they might make your desktop appear geeky (which is fun), but they can also clutter the desktop quickly. Is there a way to reduce clutter?
Terminal multiplexing is the process of switching among several open terminals (Bash sessions) in a single terminal to avoid the clutter.
One handy program is called tmux. tmux is full-featured program that runs…wait for it…in a terminal, and it allows you to open and manage multiple terminals within. The result? A single terminal that reduces desktop clutter.
📅 April 8, 2017
Bash arrays can be tricky, so here are a few hints to aid understanding.
📅 January 14, 2015
Here is a computer term rarely heard these days: amp off.
To amp off means to run in the background, and it is derived from the ampersand character (& or amp) placed at the end of a command line in a Linux or UNIX terminal.
Figlet is a command line program that styles a given line of text with a font of your choosing, so you can from this,
__ __ _ _____ _ _ _ _ \ \ / /__| | ___ ___ _ __ ___ ___ | ___(_) __ _| | ___| |_| | \ \ /\ / / _ \ |/ __/ _ \| '_ ` _ \ / _ \ | |_ | |/ _` | |/ _ \ __| | \ V V / __/ | (_| (_) | | | | | | __/ | _| | | (_| | | __/ |_|_| \_/\_/ \___|_|\___\___/|_| |_| |_|\___| |_| |_|\__, |_|\___|\__(_) |___/
Do you need to set a file so nobody can delete or edit it? Simple! Set the immutable attribute on the file.
Suppose you have an important info.txt file, a frequently asked questions file, a set of instructions, or even installation scripts that exist on a Samba share. Perhaps these files are accessible via SSH or FTP where write permissions are granted. In any case, they must not be deleted or tampered with, even by root.
Absolutely, but you must write your own routine. Unlike other programming languages, such as Python, that contain dedicated shuffle methods, Bash does not have a built-in shuffle function of its own.
Here is one example of a custom shuffle script.