for f in .; do pre="${f%.}"; suf="${f##.}"; mv -i -f -- "$f" "${pre//./_}.${suf}"; doneCount number of directories in the current directory using Linux cli
Count number of files in a directory using Linux cli
How To Install PHP (7.4, 7.3 & 5.6) on Debian 9 Stretch
Prerequisites#
Login to your Debian 9 system using shell access. For remote systems connect with SSH. Windows users can use Putty or other alternatives applications for SSH connection.
ssh root@debian9Run below commands to upgrade the current packages to …
Fix casks with `depends_on` that reference pre-Mavericks
If you get an error of the type Error: Cask 'hex-fiend-beta' definition is invalid: invalid 'depends_on macos' value: ":lion", where hex-fiend-beta can be any cask name, and :lion any macOS release name, run the following command:
/usr/bin/find …How to run VLC player as root user
sed -i 's/geteuid/getppid/' /usr/bin/vlcExplanation: The initialization script check if the UID is equals to zero. Zero is reserved for the root user. Using sed to replace geteuid for getppid fools the initialization script because it is always …
A lawyers christmas greeting
Please accept with no obligation, implied or implicit, my best wishes for an environmentally conscious, socially responsible, low stress, non-addictive, gender neutral celebration of the winter solstice holiday, practiced within the most enjoyable …
List all Azure VM extensions
az vm extension image list[
{
"name": "AcronisBackup",
"publisher": "Acronis.Backup",
"version": "1.0.33"
},
{
"name": "AcronisBackupLinux", …How To Find My Public IP Address From Command Line On a Mac OS
Run the following command in the terminal:
dig +short myip.opendns.com @resolver1.opendns.com