This guide will walk you through the fundamentals of using while loops in Bash. In addition, we will demonstrate how to change the course of a loop by utilizing the break and continue statements in the appropriate places.
Latest in Learn Linux
-
-
A loop is a set of instructions in computer programming that is continuously repeated until a given condition is met. Suppose the condition is met, then the loop exits. In most cases, a specific operation is carried out, such as retrieving an item of data and modifying it.
-
When developing Shell scripts, you may come into situations where you must execute an action depending on whether a file exists. The test command in bash may be used to discover whether a file exists and its type.
-
One of the most important concepts in programming is the concept of arrays. An array can be thought of as a collection of data recorded together. As the set of values in an array are kept together, they are usually operated on jointly or in succession. They are handy in real-life scenarios, as we often have to deal with certain data sets.
-
One of the most powerful utilities you can use when working with Linux systems is the terminal. Here, you can execute any commands to perform any tasks you might think of – launching an application, installing/ uninstalling applications, creating and deleting files/ directories, etc.
-
Linux is known most famously for freedom (free as in free speech, not free beer). It will allow you to do anything to your system, which goes to such an extent that it even implodes if you tell it to. This freedom is mainly accessible to the users through the operating system’s shell (shell can be thought of as the interface to the operating system). This shell is usually Bash, but again, thanks to the freedom, that’s not necessary.
-
Whether you are a system administrator or a person who uses Linux as the daily drive operating system, you might encounter network issues once in a while. Even if you can do some configurations from the Settings window, command-line tools are more powerful and have more features. You can use these tools to easily configure, monitor, secure, and manage networks.
-
Learn Linux
How do I find the IP address of an networking interface in Linux
by Karen 6 minutes readAn IP (Internet Protocol) address is a unique identifier identifying a device connected to the internet or a local network. It acts as an identifier that permits data to be sent between devices on a network. They contain location information and make devices accessible for communication.
-
Once you make changes in the network interface, they affect the network services manager of your system. To enable the system or machine to connect to the network, one needs to restart the network interface to apply the changes without rebooting your server.
-
A checksum is small-sized data obtained from a block of digital data used to detect errors. The checksum value uses a transmission message to represent bit numbers. Extensively, it has been used and still is in use by IT experts to detect high-level errors that might happen during data transmission. Before transmission, every bit of data is assigned a checksum value after running a cryptographic hash function.