Skip to main content
37
results
Andrew Fletcher
How to count the number of files in a directory.  At some point you'll have a directory or directories that you need to know the number of files in them.  On Linux, the list command (ls) is piped with the wc -l command. ls | wc -lThis command works great if all the files are located in one directory.  What about if you have multiple directories.  Then you will need to use the find command piped with the wc command find <directory> -type f | wc -lThis command only...
Andrew Fletcher
I've recently upgraded the server Ubuntu 20.04 updating the PHP version from 7.4...
Andrew Fletcher
Recently I have been investigating one of my Linux server's speed using the...
Andrew Fletcher
This is a relatively quick process, beginning with dropping the database...
Andrew Fletcher
Import a database lando db-import doj.sqlEnter the MySQL database lando mysql...
Andrew Fletcher
I had generated a backup of key directories on the server - see Create a Ubuntu backup shell script.  With a backup in hand, now it was time to test how to unpack a backup and overwrite the directories. First I unpacked the backup to a temporary directory tmp-cc. Now I wanted to replace several of the directories on the server.  Starting with home, var and etc.   But what is an efficient method to overwrite a directory?   Also removing any directories that aren't in the...
Andrew Fletcher
Currently, I have a situation where I have two repositories.  The first is...
Andrew Fletcher
Creating a bash script Bash scripts are files containing code that tell your...
Andrew Fletcher
Accessing a remote server using PEM key, and I had the following...
Andrew Fletcher
How do you generate a .pem file from an existing .ppk key? Is putty on your...
Andrew Fletcher
As a web developer, you will most likely need to run local copies of a bunch of different web sites. Regularly switching between several sites daily.  Sometime Drupal, other Laravel and whatever frameworks that are in your toolkit.   Install Docker and Lando Do you have Docker installed?  No, then go to the Docker Desktop page and download. Now let's look in to Lando.  Have a look at the Lando releases on GitHub to download the latest package for your OS. Run the installer. I...
Andrew Fletcher
On your local OSX environment using Terminal or iTerm you can create a MySQL...
Andrew Fletcher
This article assumes that you are running Docker and Lando already.  Don't...
Andrew Fletcher
While working with lando, I had the following error ERROR: for safs_appserver_1...
Andrew Fletcher
Currently I'm working through an app that has been abandoned by the developers....