Breaking Up Long Lines in Your Dockerfile

I try to limit my line characters to 79-80 per line. For example check this 122 character multi-command line: RUN wget -O afile.tar.gz http://example.com/afile.tar.gz && tar -xvf afile.tar.gz -C /usr/src/myapp && rm afile.tar.gz You will need to scroll horizontally using your text editor to see the super long crazy line. This is not efficient and […]

GREP command overview

The grep command means Global Regular Expression Print. This Linux command is one of the most useful commands out there. Below are some basic examples: grep ‘word’ filenamegrep ‘word’ filename1 filename2 filename3grep ‘string1′ string2’ filenamecat filename | grep ‘something’command | grep ‘something’ Next example, you can search for the user ‘tom’ in the Linux passwd […]

How to change the default SSH port in MacOS using Terminal

This is simple. Open a terminal and follow the steps below. This worked for me on MacOS 10.13.6 Open the Terminal. Run sudo vim /etc/services Enter your password Find the lines assigned to port 22, something like the image below Replace both ports 22 with your desired ssh port using a number between 1024 and […]