Linux / UNIX: Bash Loop Forever

In a Linux or Unix shell, you can create an infinite loop using the while loop. The syntax for the while loop is as follows: while true; do [command1] [command2] … done Here, true is a command that always returns a successful exit status (0), so the loop will continue to execute indefinitely until it … Read more

OpenBSD Command: See PCI Device Information

In OpenBSD, you can see information about the PCI devices on your system by using the “pcictl” command. This command provides information about the PCI buses, PCI devices, and PCI functions present on the system. To display information about all PCI devices on the system, run the following command: pcictl dump You can also display … Read more

HowTo: Linux Mount devpts File System On /dev/pts

The devpts file system is a virtual file system in Linux used to provide access to the terminal’s pseudo-terminal master-slave pairs. To mount the devpts file system on /dev/pts, use the following command: mount -t devpts devpts /dev/pts This will mount the devpts file system on /dev/pts so that you can use pseudo-terminals in your … Read more

Linux / UNIX: Speed up SSH X11 Forwarding

SSH X11 Forwarding can be slow, especially over long distances or low-bandwidth connections. To speed up SSH X11 Forwarding, you can make the following optimizations: Compression: Enable compression on the SSH connection by adding the -C option to the ssh command. $ ssh -C user@host Forwarding optimization: To optimize the X11 forwarding, add the following … Read more