This is general solutions for all kind of
npm permission issue.
sudo chown -R $USER ~/.npm sudo chown -R $USER /usr/bin/npm sudo chown -R $USER /usr/lib/node_modules/ chmod -R a+x node_modules
Many time developer just need to replace a bit of text inside the large file like
Opening a file into editor take too much resource of system or server. So I come up with the very easy and useful way to replace content into large file using linux command like.
Here I am taking an example of
MySql file which having
*.sql as file extension
sed -i '' 's/utf8mb4_0900_ai_ci/utf8mb4_unicode_ci/g'
USE THIS COMMAND ON YOUR OWN RISK !
sudo kill -9 $(sudo lsof -t -i:4200)
If you want to check that if process running than and than kill the process , use bellow one
if sudo lsof -t -i:4200; then sudo kill -9 $(sudo lsof -t -i:4200); fi
Above command will check that process is running than kill by process id.
git config --global credential.helper store # Set the cache to timeout after 1 hour (setting is in seconds) git config --global credential.helper 'cache --timeout=3600'
How to avoid reputations of sudo command in linux.
Just follow bellow steps to avoid reputations.
Create file or edit if exist
sudo visudo -f /etc/sudoers.d/90-cloudimg-ubuntu
Check which php versions are available with system
sudo update-alternatives --config php
Geany tried to access the unix domain socket of another instance running as another user
Run bellow command which resolve your issue.
sudo -H rm ~/.config/geany/geany_socket_*
First of all find the right user and right group which is executing that process.
sudo lsof -iTCP -sTCP:LISTEN -Pn export OWENRE=$(whoami) export GROUP=$(whoami)
This post assume that you are linux user and logged as root user.
This post is written by margining many configuration files at once so you may find same configuration at nginx official websiteas well.
Nginx tune up are dived into two major part
sites-enablefolder based on linux flavour.