Skip to main content
52
results
Andrew Fletcher
When managing a server or developing applications, particularly on an Ubuntu system running Nginx, it's often necessary to verify the existence of files. This is crucial for tasks like deploying new versions, checking configuration files, or ensuring that required assets are in place. In this article, we'll explore how to use command-line queries to check if a file exists, highlighting various options and methods you can use.   Basic File Check with test Command The test command is a simple...
Andrew Fletcher
Managing large directories, especially those filled with a diverse mix of media...
Andrew Fletcher
Recently I came across this piece of gold when dealing with databases,...
Andrew Fletcher
In the realm of system administration and monitoring, understanding memory usage...
Andrew Fletcher
The red flag was when I saw the server disk space is showing a site is taking up...
Andrew Fletcher
To determine the size of a directory using the terminal, you can use the du (disk usage) command. The syntax for this command can vary slightly depending on the operating system you are using, but a common way to use it is as follows:   For Linux and macOS du -sh /path/to/directory du Disk usage -s Summarise the total size of the directory and do not include the size of each individual file within the directory -h Human-readable format, making the size easier to understand (e.g.,...
Andrew Fletcher
A summary of Node package commands Short cut commands npm install...
Andrew Fletcher
Resources - changing Drush Type Version Drush (current) 11.6.0 Drush...
Andrew Fletcher
Something I haven't had to do in a while is to change the name of a Git branch...
Andrew Fletcher
Post a NetSkope update, composer would fail when running any command that...
Andrew Fletcher
I need to generate a patch and then apply automatically to my Drupal installation. Current path to the file: web/core/modules/views/src/Plugin/views/argument/ Orignal filename: ArgumentPluginBase.php Adjusted filename: ArgumentPluginBase-adjusted.php   Create a Patch A patch is used to create or override changes in another file.  The command to create a patch is: diff -u {original filename} {changed filename} > {patchfile}.patchdiff -u...
Andrew Fletcher
Attempting to run a composer update command, you know the one used...
Andrew Fletcher
Post creating a new branch in the repo, next step was to run the checkout...
Andrew Fletcher
How to set the Private file path in Drupal using the following steps: Create a...
Andrew Fletcher
Using Composer to Manage Projects and if required their dependencies In this...