Red Hat / CentOS IPv6 Network Configuration

To configure IPv6 networking on Red Hat or CentOS, follow these steps: Open the network configuration file for editing: sudo vi /etc/sysconfig/network-scripts/ifcfg-<interface-name> Replace <interface-name> with the name of the network interface you want to configure. For example, if you want to configure the eth0 interface, the command would be: sudo vi /etc/sysconfig/network-scripts/ifcfg-eth0 Add the following … Read more

Freebsd Mount a NAS via SMB / CIFS

To mount a NAS (Network-Attached Storage) device via SMB/CIFS in FreeBSD, you can use the mount_smbfs command. Here are the steps: Install the Samba client software if it is not already installed: pkg install net/samba44 Create a mount point for the NAS share: mkdir /mnt/nas Mount the NAS share using the mount_smbfs command, specifying the … Read more

Bash Clear DNS Cache

In Bash, you can clear the DNS cache by flushing the system resolver cache. Here are the steps to clear the DNS cache in Bash: Open a terminal window and type the following command to clear the cache: sudo systemd-resolve –flush-caches This command will flush the DNS cache and any other caches that may be … Read more

Applescript: Run or Call a Shell Script

To run or call a shell script from AppleScript, you can use the do shell script command. Here’s an example: set myScriptPath to “/path/to/my/script.sh” do shell script myScriptPath In this example, the myScriptPath variable contains the path to the shell script that you want to run. The do shell script command then executes the script. … Read more