Linux / UNIX: Displaying Today’s Files Only

To display only today’s files in Linux or UNIX, you can use the “find” command with the “-daystart” and “-ctime” options. Here’s how to do it: find /path/to/files -daystart -ctime 0 This command searches for files in the specified directory (/path/to/files in the example) that were created or modified within the last 24 hours. The … Read more

Linux: Check For Memory Leaks In Programs

Memory leaks can be a common problem for long-running programs, and they can cause performance issues and system crashes over time. Fortunately, Linux provides tools to check for memory leaks in programs. Here are some steps to do so: Install the valgrind tool: Valgrind is a popular tool for detecting memory leaks and other memory-related … Read more

HowTo: OpenBSD Mount an NTFS File System

OpenBSD includes support for mounting NTFS file systems, but you need to install the ntfs-3g package to mount them. Here’s how to mount an NTFS file system on OpenBSD: Install the ntfs-3g package: The ntfs-3g package provides the tools necessary to mount NTFS file systems on OpenBSD. You can install it using the package manager … Read more

How To – Linux / UNIX Create a Manpage

A manpage is a documentation file that provides detailed information about a specific command, program or function on a Linux/UNIX system. Here are the steps to create a manpage: Choose a name for your manpage: Typically, the name of the manpage should be the same as the name of the command or program you want … Read more

Ubuntu: Mount Encrypted Home Directory (~/.private) From an Ubuntu Live CD

To mount an encrypted home directory (located at ~/.private) from an Ubuntu Live CD, you can use the following steps: Boot your computer using an Ubuntu Live CD. Open a terminal window. Install the ecryptfs-utils package by running the following command: sudo apt-get update && sudo apt-get install ecryptfs-utils Mount the encrypted home directory by … Read more