linux






To change files name recursively you can combine the commands find and rename, as in these ways: To add suffix (e.g. ‘_mysuffix’) find . -name “*.jpg” -exec rename -v ‘s/\.jpg$/\_mysuffix.jpg/i’ {} \; To remove suffix find . -name “*.jpg” -exec rename -v ‘s/\_mysuffix.jpg$/\.jpg/i’ {} \; To add prefix (e.g. ‘myprefix_’) find […]

Recursively files renaming on Linux cli





To change proxy settings from cli in GNOME-based Ubuntu desktop, it’s possible to use gsettings commands. To see the current proxy exceptions, type the following command on linux console gsettings get org.gnome.system.proxy ignore-hosts The option ignore-hosts means the proxy exceptions. In this case the default output should be something like [‘localhost’, ‘127.0.0.0/8’, […]

Add proxy exceptions from command-line on Ubuntu GNOME


The best way to collaborate with someone is to create an intermediate repository to both send and download data. We will refer to this repository as a “Git server”. Create a Git server is quite simple. To initialize any Git server, you must export an existing repository to a new […]

Create a Git Server


Open a terminal and, under your git directory, create a new temporary branch (e.g. temp): git branch temp Switch on the new branch typing: git checkout temp Point the master to the new branch (force it with option -f): git branch -f master temp Switch back on the master and […]

Fix a detached head on Git