The basename command in Linux extracts the last component of a file path, removing the leading directory portion and an optional trailing…
The timeout command in Linux runs a command with a time limit and terminates it when the limit is reached. It is part of GNU coreutils, available on virtually every Linux distribution. It is most useful for commands with no built-in timeout option, such as ping, curl, tcpdump, or a custom script that might hang indefinitely. How the timeout Command Works in Linux The syntax is: bashtimeout [OPTIONS] DURATION COMMAND [ARG]... Duration is a number followed by an optional unit: s (seconds, default when omitted), m (minutes), h (hours), or d (days). Floating-point values are supported: bashtimeout 5 ping 8.8.8.8…
The rmmod command in Linux removes a loaded module from the running kernel. Because the kernel has a modular design, you can…
The free command in Linux gives you a quick summary of RAM and swap usage. It reads from /proc/meminfo and displays the data in…
The diff command in Linux compares two text files line by line and shows the lines that differ. When files are identical,…
DNS cache is a temporary database your OS and browser build as you browse. Each time you visit a website, the domain-to-IP mapping is saved locally, cutting out the round trip to a remote DNS server on repeat visits. Stale entries are the most common reason to flush the DNS cache: a server moves to a new IP, but your OS or browser still routes to the old address. This guide covers how to clear the DNS cache on Windows, Linux, and macOS, and how to flush the separate cache stored inside Chrome and Firefox. Flush DNS Cache on Windows The command is the same on Windows 10, Windows 11, and earlier supported releases. Open Command Prompt with administrator privileges. Type cmd in the Windows search bar, right-click Command Prompt, and select Run as administrator. Run the flush command: bashipconfig /flushdns A successful run prints:…
Using a strong, unique password for every account is one of the most effective security habits. A compromised password accounts…
Ubuntu locks the root account by default. New users often wonder what the root password is or how to log…
Since Ubuntu 17.10, networking is configured with Netplan rather than the older /etc/network/interfaces file. You write a short YAML description of how…
Docker is an open-source containerization platform that packages an application and everything it depends on into a single container. That…