Skip to main content
112
results
Andrew Fletcher
In the realm of system administration and monitoring, understanding memory usage trends is crucial for maintaining system health and performance. While tools like htop offer real-time insights into memory usage, they lack the capability to provide historical data. So, what if you need to analyze memory usage over the past 24 hours or even a week? Fear not, as Sysstat comes to the rescue with its powerful sar command.   Installing Sysstat Before delving into historical memory usage...
Andrew Fletcher
The red flag was when I saw the server disk space is showing a site is taking up...
Andrew Fletcher
  Continuing on from the Drupal 9 to Drupal 10 upgrade outline written...
Andrew Fletcher
To resolve the CVE-2022-48624 vulnerability on Ubuntu using Nginx, it's crucial...
Andrew Fletcher
To determine the size of a directory using the terminal, you can use the du...
Andrew Fletcher
In many terminal text editors, you use find command as reference in Terminal commands - find.  How about find and replace.  This action depends on the specific text editor you're using in the terminal.  Here are a few common terminal text editors and how you can find and replace strings within them: Vim To find: Press / followed by the search term and then Enter. /To replace: You can use the substitute command. For example, to replace "old" with "new" globally in the file, you can...
Andrew Fletcher
You can use the pip list --outdated command to view a list of installed Python...
Andrew Fletcher
To begin, note that Lando is often used for web development and it may not be...
Andrew Fletcher
To use OpenAI to summarise text from a PDF using Python 3.11.6, you'll first...
Andrew Fletcher
The "keystore password was incorrect" error in keytool indicates that the...
Andrew Fletcher
In Vim, following is an outline of the vi(m) functions you can utilise whilst in command mode - yes they are case sensitive action outcome a change to insert mode (after cursor) A change to insert mode (at end of line) dd delete one line G go to end of the file 1G go to top of the file i change to insert mode (before cursor) J merge next line with this one p paste deleted or yanked text after cursor P paste deleted or yanked text before cursor r replace one...
Andrew Fletcher
The os.makedirs(directory_path) function in Python can be used with both...
Andrew Fletcher
Permission error Traceback (most recent call last): File...
Andrew Fletcher
You can move a file from one directory to another in Python using the shutil...
Andrew Fletcher
To set an environment variable on Ubuntu, can be achieved via a few options....