Skip to main content

Posts

Showing posts from May, 2019

Tricks and Tips

1. How to rename folders in Linux ============================ mv command syntax form is as follows: ---------------------------------- mv old-name new-name mv [options] old-name new-name mv [options] source target 2. How do I delete multiple lines in nano without affecting the clipboard? ====================================================================== nano of course can delete blocks, see this article😊 use CTRL+Shift+6 to mark the beginning of your block move cursor with arrow keys to the end of your block, the text will be highlighted. use CTRL+K to cut/delete the block. To paste the block to another place, move the cursor to the position and the use of CTRL+U . You can paste the block as often as you want to.

proc_open(): fork failed - Cannot allocate memory

Error : Installation failed, deleting ./composer.json. The following exception is caused by a lack of memory or swap, or not having swap configured Check https://getcomposer.org/doc/articles/troubleshooting.md#proc-open-fork-failed-errors for details Follow Below steps: ====================== Troubleshooting# This is a list of common pitfalls on using Composer, and how to avoid them. General# Before asking anyone, run composer diagnoses to check for common problems. If it all checks out, proceed to the next steps. When facing any kind of problems using Composer, be sure to work with the latest version. See self-update for details. Make sure you have no problems with your setup by running the installer's checks via curl -sS https://getcomposer.org/installer | php -- --check. Ensure you're installing vendors straight from your composer.json via rm -rf vendor && composer update -v when troubleshooting, excluding any possible interferences with ex