HowTo: Ubuntu Linux Kernel Version Command

You can check the version of the Linux kernel that’s currently running on your Ubuntu system using the following command: uname -r The uname command provides information about the system and its environment, and the -r option specifically requests the release information, which is the version of the Linux kernel. You can also use the … Read more

Linux and Unix host Command Examples

Here are some common examples of the host command in Linux and Unix: To perform a simple DNS lookup for a hostname, you can run the following command: host example.com To perform a reverse DNS lookup for an IP address, you can run the following command: host 8.8.8.8 You can also specify the DNS server … Read more

Linux and Unix dig Command Examples

The dig command in Linux and Unix is used to query the Domain Name System (DNS) to retrieve information about hostnames, IP addresses, and other DNS-related information. The dig command can be used to perform various types of DNS lookups, such as checking the A (address) record for a hostname, the MX (mail exchange) record … Read more

Linux ip Command Examples

The ip command is a versatile tool for managing and querying network interfaces and IP addresses on a Linux system. Here are some common examples of using the ip command: Display information about all network interfaces: $ ip addr show Display information about a specific network interface: $ ip addr show eth0 Replace eth0 with … Read more

Restart Iptables Firewall On A CentOS Linux Server

You can restart the Iptables firewall on a CentOS Linux server by executing the following steps: Stop the Iptables firewall service: $ sudo service iptables stop Flush all current Iptables rules: $ sudo iptables -F Start the Iptables firewall service: $ sudo service iptables start Alternatively, you can restart the Iptables firewall service by executing … Read more

Linux / Unix id Command Examples

The id command in Unix-like systems is used to display the user and group information for the current user or a specified user. It can display information such as the user ID (UID), group ID (GID), and the groups that the user belongs to. Here are some examples of how to use the id command: … Read more