search
top
Currently Browsing: CLI

How to enable websites in Apache2

Simple enter:

a2ensite

You’ll get a list of sites you can enable. Obviously requires the configuration file in /etc/apache2/sites-available

Regex to match specific HTML-tags

<tag\b[^>]*>(.*?)</tag>

Test the config files of Apache2

apache2ctl configtest

How to save your vim options so they load each time you start vim

Create a file in your home folder named “.vimrc”. This file will be automatically loaded each time your start vim.

Show or hide line numbers in vim

Show line numbers:

:set number

Hide line numbers:

:set nonumber

« Previous Entries

top