Save file to your Nextcloud from bash

Sometimes you need to upload from command line to you Nextcloud storage. You can do it with a simple curl command. At first you have to create a shared directory in your Nextcloud with “Allow upload and editing” share option. You will get a share link for example: https://nextcloud.myserver.com/index.php/s/gz8BS7mtxGbwkQB The string “gz8BS7mtxGbwkQB” will be used… Read More: Save file to your Nextcloud from bash »

How to make password asterisks visible in the terminal window at sudo

When you run a command using sudo in Linux, the Terminal prompts you to type in your password with no visual feedback as you type. We’ll show a quick tweak that will show asterisks (*) when you type in your password in the Terminal. Just run visudo and set the row Defaults        env_reset to Defaults       … Read More: How to make password asterisks visible in the terminal window… »

How to run a command or script after running apt-get command on a Debian or Ubuntu Linux

How do I run custom command after ‘apt-get upgrade‘ or ‘apt-get dist-upgrade‘ on a Debian or Ubuntu Linux based system? How do I hook a script to apt-get command on my Ubuntu Linux server? You can configure the apt-get command using /etc/apt/apt.conf file or place configuration in a special directory at /etc/apt/apt.conf.d/. More in nixCraft.… Read More: How to run a command or script after running apt-get… »