nixCraft Linux / UNIX Newsletter |
How To Install Linux, Apache, MySQL, PHP (LAMP) Stack on Debian 9 Stretch Posted: 13 Jun 2017 02:02 PM PDT |
How to prevent sed -i command overwriting my symlinks on Linux or Unix Posted: 13 Jun 2017 09:56 AM PDT I recently ran a command 'sed -i 's/CONFIG_1/CONFIG_OPT_2/g' /etc/nginx/sites-enabled/*.conf' on a Debian Linux server. However, the sed command destroyed the link and created a regular file in place of the link file. How can I prevent my 'sed -i' command from destroying symlinks on Linux or Unix-like system? |
Ansible: Could not find aptitude. Please ensure it is installed Error and Solution Posted: 13 Jun 2017 04:23 AM PDT I am running the 'ansible-playbook -i hostnames upgrade.yml' command but getting an error that read as follows fatal: [db1]: FAILED! => {"changed": false, "failed": true, "msg": "Could not find aptitude. Please ensure it is installed."} My yml file includes the following line: - apt: update_cache=yes upgrade=yes How do I fix this error on a Debian or Ubuntu Linux server? |
You are subscribed to email updates from [RSS/Feed] nixCraft: Linux Tips, Hacks, Tutorials, And Ideas In Blog Format. To stop receiving these emails, you may unsubscribe now. | Email delivery powered by Google |
Google Inc., 1600 Amphitheatre Parkway, Mountain View, CA 94043, United States |