Finding the Large Files on a Linux/Ubuntu Server

Remove Large Files Webserver

Reducing space on a server is a never ending task, taking out the big unnecessary large files will speed up the process. A bloated log is an example of files that may be building up on your limited disk space.…

How to connect to a MySQL or mariadb database with PHP

Php Connect Mysql Output Data

This tutorial will require a mysql database set up with a database user and password and a web development environment using mysql or mariadb, apache and php and a simple text editor. The tutorial takes you through establishing a mysql…

Query dns/domains in macos using dig and nslookup via the command line

Macos Dns Domain Query Nameserver

In macos you can query a domain via the command line via default nameservers with a couple of DNS querying tools, notably nslookup and dig, how that works is on the command line: dig domain.com or nslookup domain.com The results…

In macOS, show the difference of 2 folders / files in the Command Line

Macos Folder File Diff

In macOS, you can compare and show the differences of files in two folders in the Command Line by using the diff command. With folders you use rq as an argument and pass in the 2 folder names on the…

Where are the Safari Web Developer Tools and how to show and dock them in a browser window

Safari Dev Tools

The Safari Developer Tools for the macOS browser can be enabled and displayed in Safari > Preferences > Advanced > “Show Develop menu in menu bar” for Safari version 14 and earlier.   Then from the Safari “Develop” menu select…

Generate SSH Private and Public Keys in macOS Big Sur

Macos Ssh Keys

This guide goes through setting up SSH keys on macOS Big Sur 11 and olfer macos’es back to Mac OSX 10.11 and also a secure password-less SSH connection between a local macOS workstation and a remote server also running a…

Installing Homebrew on macOS Ventura or Monterey, Package Manager for Linux Apps

Homebrew Macos Bigsur

The easiest way to install a number of Unix style applications and open source software onto macOS Ventura, Monterey, Big Sur, Catalina, Mojave and earlier Sierra OS versions is via a package manager, unfortunately, macOS Ventura doesn’t come with one,…

Restart Start Stop MySQL Server from Command Line, macOS, Linux

Mysql Mariadb Restart Start Stop

To restart, start or stop MySQL or mariadb database servers from the command line, type the following at the shell prompt… On Linux start/stop/restart from the command line: /etc/init.d/mysqld start /etc/init.d/mysqld stop /etc/init.d/mysqld restart Some Linux flavors offer the service…

Redirecting a Web Folder Directory to another Directory in htaccess

Redirecting Domain Htaccess

Redirecting within the same domainUsing htaccess in your root level of your web server, how you redirect one page to another is:RewriteRule ^url-string-to-redirect$ http://www.yourdomain.com/your-new-url-string [R=301,L]