Linux Find and Replace in All Files

Finding and replacing a single string of text in all the files in a single linux directory is easy. Linux has a magical ‘sed’ command which is very powerful. To find and replace all instances of a string with another string in all files type use the sed command: sed -i — ‘s/foo/bar/g’ * Typing…

Read More

Override WGET Certificate Errors

wget is a handy Linux command used to download files directly from the command line. It can be used to download just about any file from the Internet and beyond. Simple usage is just wget URL where URL is the url of the file you are looking to download. There are times when a file…

Read More

Byte Conversion Calculator

Size:  bit – bByte – BKilobit – KbKilobyte – KBMegabit – MbMegabyte – MBGigabit – GbGigabyte – GBTerabit – TbTerabyte – TBPetabit – PbPetabyte – PB bit – b Byte – B Kilobit – Kb Kilobyte – KB Megabit – Mb Megabyte – MB Gigabit – Gb Gigabyte – GB Terabit – Tb Terabyte – TB…

Read More

The Erase Startup-Config Cisco command

The erase startup-config command in Cisco networking is a destructive command used to erase the startup configuration file of a Cisco device, which contains crucial information such as IP addresses, routing protocols, and device settings. This command is commonly used in situations where a configuration needs to be completely reset or when troubleshooting complex configuration…

Read More

The Enable Secret [Password] Cisco command

Command: enable secret [password] Platform: Cisco IOS, IOS XE, NX-OS, ASA, and ISR Function: Configures a secret password to access the privileged EXEC mode. Usage: To configure an enable secret password, use the following syntax: enable secret [password] where: password specifies the secret password. The password can include alphanumeric characters, special characters, and spaces. The default maximum length is…

Read More

IPv6 Nginx On Multiple Sites

To configure Ipv6 on multiple domains on an nginx server you must include the listen [::]:80; line in every server. The trick is to also include listen [::]:80 default_server ipv6only=on; onto the server server/domain that nginx is listening to. Here is an example configuration with two sites both of which respond to IPv4 and Ipv6:…

Read More

The Line Console 0 Cisco command

The Cisco command ‘line console 0’ is used to configure the console port of a Cisco device, which is typically used for local management access. Usage: To use the ‘line console 0’ command, enter it in the privileged EXEC mode (enable mode) of the Cisco device’s command-line interface (CLI). For example: Device> enable Device# line…

Read More

The Clear Arp Cisco command

The ‘clear arp’ command is a powerful tool used in Cisco networking to manage and troubleshoot issues related to Address Resolution Protocol (ARP). It allows network administrators to remove all the dynamic ARP entries from a device’s ARP cache, effectively resetting the ARP table. This can be useful in several scenarios to resolve ARP-related problems…

Read More