Guides
How website valuation actually works, what traffic estimates can and cannot tell you, and which once-standard metrics have quietly stopped existing.
UNIX / Linux: Kill All My Jobs Under Current Shell Session
In Unix/Linux, you can use the “kill” command to terminate a running process or job. To kill all your jobs under the current shell session, you can use the following steps: n n Open a terminal and list all your running jobs by typing: n n n n jobs n n n This will display a list of all th
Faillog in Linux: Display Records of Login Failure
In Linux, the “faillog” command is used to display and manage records of login failures. The faillog command reads and displays information from the file /var/log/faillog, which stores the information about failed login attempts. n Here’s how to use the faillog command to display r
How To Append Current Date To Filename in Bash Shell
In Bash shell, you can append the current date to a filename using the "date" command and command substitution. Here's how to do it:rn rn Use the "date" command to generate the current date in a specific format. For example, to generate the current date in the "YYYY-MM-DD" format: rn rn rn rn date +
Bash Shell Generate Random Numbers
In Bash shell, you can generate random numbers using the built-in "RANDOM" variable or the "shuf" command. Here's how to do it: Using the RANDOM variable:rn rn Use the "$RANDOM" variable to generate a random number between 0 and 32767: rn rn rn rn echo $RANDOM rn rn rnThis will output a random nu
Linux / UNIX: Run Multiple X Sessions
In Linux or UNIX, you can run multiple X sessions (graphical sessions) simultaneously by using different virtual terminals (VTs). Here's how to do it:rn rn Press "Ctrl + Alt + F2" (or any other function key from F2 to F7) to switch to the second virtual terminal. This opens a new login prompt. rn Lo
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: n n n find / path /to/files -daystart -ctime 0 n n n This command searches for files in the specified directo
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:rn rn Install the valgrind tool: Valgrind is a popular tool for de
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:rn rn Install the ntfs-3g package: The ntfs-3g package provides the tools necessary to mount NTFS file systems on OpenBSD. You can in
Nginx: 24: Too Many Open Files Error And Solution
If you're seeing a "Too many open files" error on Nginx, it means that the operating system's limit on the number of open files has been reached. This can happen when Nginx is running a high-traffic website, serving a large number of requests, and opening a large number of files. Here are some po
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:rn rn Choose a name for your manpage: Typically, the name of the manpage should be the same as the name of the command or
Install / Append SSH Key In A Remote Linux / UNIX Servers Authorized_keys
To install or append an SSH key to the authorized_keys file on a remote Linux/Unix server, you can use the ssh-copy-id command. Here are the steps to do so:rn rn Open a terminal window on your local machine. rn Generate an SSH key pair (if you haven't already):rn rn Use the following command to gene
Linux Allow SSH Console Login But Not GDM / KDM / X Windows Login
To allow SSH console login but disallow GUI login for a user on Linux, you can modify the user's login shell to be a non-GUI shell. Here are the steps to do so:rn rn Open a terminal window and log in as the root user or another user with administrative privileges. rn Edit the user's login shell:rn r
dhcpdump: Monitor DHCP Traffic For Debugging Purpose
dhcpdump is a command-line utility that can be used to monitor DHCP (Dynamic Host Configuration Protocol) traffic on a network interface. It is useful for debugging DHCP-related issues, such as when a client is not able to obtain an IP address or when a DHCP server is not responding. Here are the
Mac OS X: Read Linux ext3 / ext4 External USB Hard Disk Partition
By default, macOS does not have native support for reading Linux ext3 or ext4 file systems. However, there are third-party solutions available that can enable you to read these file systems on your Mac. Here are a few options:rn rn Install FUSE for macOS and a compatible file system driver:rn rn FUS
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: n n Boot your computer using an Ubuntu Live CD. n Open a terminal window. n Install the ecryptfs-utils package by running the following command: n n n n sudo apt - get update &&
HowTo: Linux Play Video CD
To play a video CD (VCD) on Linux, you can use any media player that supports the Video CD format, such as VLC or MPlayer. Here are the steps to play a VCD on Linux using VLC:rn rn Insert the VCD into your computer's CD/DVD drive. rn Open VLC media player. If VLC is not installed on your system, you
Linux: Configure Xorg X11 Window System
To configure the Xorg X11 window system on a Linux system, you can use the following steps:rn rn Check which video driver is currently in use by running the following command: rn rn rn rn lspci -k | grep -A 2 -E "(VGA|3D)" rn rn rnThis will display the video card and driver that is currently in use.
How To Force SSH Client To Use Given Private Key ( identity file )
To force the SSH client to use a specific private key (identity file), you can use the -i option when connecting to the remote server. Here's the syntax to use:rn rn rn ssh - i /path/ to /private/key user @hostname rn rn rnReplace /path/to/private/key with the path to your private key, user with
Apple OS X: Open .Rar File / Extract rar
To open or extract a .rar file on a Mac running OS X, you can use the following steps:rn rn Install a third-party extraction tool that supports RAR files. Two popular options are The Unarchiver and StuffIt Expander. Both of these tools can be downloaded for free from the Mac App Store. rn Once you h
HowTo: Update Centos Linux 5.4 to 5.5
To update a CentOS 5.4 system to CentOS 5.5, you can use the following steps:rn rn Make sure your system is up-to-date with the latest packages by running the following command as root: rn rn rn rn yum update rn rn rn rn Once the update process is complete, reboot your system to ensure that any upda
2,685 guides published.
