Basic Linux Commands

Linux beginners may get overwhelmed by the sheer number of commands that are available in the terminal, but most users will find themselves executing the same few commands over and over. If you are looking to get started with the Linux command line, we have listed 20 of the most important and basic commands that you should know. These basic commands are the most essential to learn, and also the ones you will likley find yourself using the most.

Read more

Useful Bash Command Line Tips and Tricks Examples – Part 6

In this article we have a look at obtaining some basic hardware, system and operating system configuration information directly from the command prompt in your terminal. Having this information, and knowing where to find it, often helps when configuring a system, researching optimal hardware and software solutions, and generally being in control of the Linux system you own or manage.

We will focus mostly on every day information, the kind that is required on a regular basis. Going more in-depth often requires a few online searches to first define alignment better, and then often requires additional skills to interpret the results or output shown.

For example, we will not be looking at the output of vmstat, though we will discover how to find out what CPU is in your system without opening the hood. We will also look at some basic resource limit variables and surrounding concerns. The target audience for this article is thus beginner to medium advanced.

This article is part of the Useful Bash Command Line Tips and Tricks Series.

In this tutorial you will learn:

  • Useful Bash command line tips, tricks and methods
  • How to interact with the Bash command line in an advanced manner
  • How to sharpen your Bash skills overall and become a more proficient Bash user

Read more

String Concatenation in Bash Loops

String concatenation in bash scripting is a fundamental concept that is essential for scriptwriters, ranging from beginners to advanced users. It involves combining two or more strings into a single string. Bash, being a powerful scripting language, offers various ways to perform string concatenation, especially within loops. This technique is particularly useful in scenarios where you need to construct a string dynamically during the execution of your script.

Read more

Bash Scripting vs Shell Scripting

Bash Scripting vs Shell Scripting: Differences, Examples, and Comparisons

Bash scripting and shell scripting are essential skills for anyone working in a Unix-like environment. Although these terms are often used interchangeably, they refer to different scopes and functionalities. Understanding the nuances between bash scripting and shell scripting can significantly enhance your ability to automate tasks, manage systems, and write efficient code.

Read more

How to use curl to get public IP address

curl my ip : How to use curl to get public IP address

The curl command on Linux systems serves as a versatile tool for downloading and uploading files to remote servers. Beyond file transfers, you can use curl to quickly determine your system’s public IP address. This method connects to specialized websites that return only your IP address – making it one of the fastest ways to check your public IP from the command line. This tutorial will show you several reliable methods to get your public IP address using curl.

Read more

Example of simple bash script ftp client

If you need to use FTP to upload some files to a server every so often and want to save yourself some time, you can make a simple Bash script to transfer the files quickly. Rather than entering the username, password, and directory manually, we can get our Bash script to do this tedious legwork for us. In this tutorial, you will see an example script to make FTP transfers a cinch on a Linux system.

Read more

How to check memory size in Linux

If you want to know the memory size of your Linux system, you will be relieved to know that it is not necessary to crack open the PC or boot into the BIOS screen to get your information. Linux allows us to check our memory size, and other relevant information such as spare slots and RAM speed, etc, all from within the operating system. We will go over some of these hardware checking methods below.

Read more