Related Content
Using The Fingerprint Scanner On Pop! OS 22.04
I work on a couple of ThinkPad laptops (T490 and a P14s) and whilst they have fingerprint scanners I haven't really considered using them. I once attempted to get a fingerprint scanner working in Linux on an old HP laptop and that experience put me off trying again.
Timing Page Responses With Curl
Timing web requests is possible in curl using the -w or --write-out flag. This flag takes a number of different options, including several time based options.
Turning On Or Off Fn Mode In Ubuntu Linux
I was typing on my Keychron K2 keyboard today and realised that I hadn't used the
Repointing A Symlink To A Different Location
In Linux, creating a symlink is a common way of ensuring that the directory structure of a deployment will always be the same. For example you might create a symlink so that the release directory of release123/docroot will instead be just current.
Finding My Most Commonly Used Commands On Linux
I'm a proponent of automation, so when I find myself running the same commands over and over I always look for a way of wrapping that in an alias or script.
Grep Context
Grep is a really powerful tool for finding things in files. I often use it to scan for plugins in the Drupal codebase or to scan through a CSV or log file for data.
For example, to scan for user centric ViewsFilter plugins in the Drupal core directory use this command (assuming you are relative to the core directory).
Comments
\e[31m
sets text to red\e[43m
sets background to yellow\e[1m
sets bold text (on some older terminals it might set bright colors)\e[0m
resets all to original settings They can be strung together with semicolons as\e[31;43;1m
It's even better if you add spaces to the beginning of"Happy birthday "
and after"to you \n"
(before the newline) to pad each line to the name length. Find the length of the passed name with"${#1}"
which returns the number of characters in the passed string, then pad with spaces withprintf "%${n}s"
Submitted by Miriam English on Sun, 11/26/2017 - 19:49
PermalinkI made an even better (imo) bash script, which has music. And the music is not from an external file, but written entirely in bash.
https://git.devuan.org/jobbautista9/hbd
Submitted by Job Bautista on Thu, 10/29/2020 - 07:55
PermalinkGood effort Job. Excellent work! :)
Submitted by giHlZp8M8D on Thu, 10/29/2020 - 22:01
PermalinkAdd new comment