Puddinq.com sharing knowledge
';

Linux show last (n) rows of file

Linux show last (n) rows of file

If you have ssh access to a server you can have a live view on whats happening by displaying the last lines of the error or access log. Here is it and how is explained below. cd /logs tail -n 10 -f error_log | cut -b 1-200 You have to navigate to where your error […]

Adding key from server to Bitbucket or Github

First you connect to your server (ssh) Run ssh-keygen in the account you want to generate keys for Enter the questions (set nothing) View .ssh/id_rsa Copy the contents Add them to your Bitbucket or Github account