When logging into your Ubuntu server, you might be greeted with the message You have new mail in /var/mail/root. But how do you read that mail and how did it get there? It means that you have installed sendmail on Ubuntu (or any other flavour of Linux) and you received one or more messages in your inbox. Continue reading →
Bash
Bash, short for Bourne Again Shell, is a shell for POSIX-systems en is being used by Linux (and Mac OS X).
Search for text in a file within a specific directory in Linux
Sometimes, you need to find something quickly and don’t want to open tens or hundreds of file to find it. Luckily, Linux is a powerful operating system and can assist you in finding what you need. If you need to find something, let’s say you are looking for a specific piece of text within a Continue reading →
Enable or disable directory listing/browsing on Apache with htaccess
To allow directory browsing, add the following line in your .htaccess file Alternatively, you may choose to disallow directory listing on your Apache webserver. To do so, add this: Note that your .htaccess file may not exist yet, or it can be hidden. Enable or disable directory listing/browsing on Apache with htaccess was last modified: Continue reading →
Execute a script from a .bat file
To run a script from a .bat file, you first have to create that .bat file. Then, paste this code in the bat file: the @echo off will prevent the printing of commands. I added the pause command; so you have to manually press a key to exit the output window. Feel free to remove Continue reading →
Disable service alerts (SSH, HTTPD, Dovecot, …) in DirectAdmin
To disable these service alerts in the Direct Admin control panel, you can simply edit the file services.status at /usr/local/directadmin/data/admin/ This file should look (similar) like this: If you want to disable SSH alerts in Direct Admin, maybe because a spammer is trying to brute force its way into your system, simply change ON to Continue reading →