Skip to main content
38
results
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...
Andrew Fletcher
This issue I have a folder with about 10,000 files in it.  I want to scan through the directories and isolate files that are different from what sits in the database.  How do you generate a list of file names of all the files into a single txt file?   Solution One option is using the list command ls > filename-list.txtHowever, this option will generate a list of the current directory, listing directories by name only and therefore not including file from each of the directories...
Andrew Fletcher
Using Homebrew for speed tests... I'm using Speediest CLI - for more details go...
Andrew Fletcher
I'm in an environment where the default branch is staging and I'm attempting to...
Andrew Fletcher
How to count the number of files in a directory.  At some point you'll have...
Andrew Fletcher
I've recently upgraded the server Ubuntu 20.04 updating the PHP version from 7.4...