When getting started with a new scripting or programming language, such as Bash scripting on Linux, the first thing a user learns to create is a Hello World script.
bash
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.
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
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.
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.
chgrp command in Linux with examples
The chgrp command in Linux can change the group ownership of one or multiple files or directories. In Linux, every file has a few permissions: read, write, and execute. These permissions are assigned to specific users and groups to allow access to these operations
How to run script on startup on Ubuntu 20.04 Focal Fossa Server/Desktop
In this article you will learn how to run script ( python, bash etc. ) on startup on Ubuntu 20.04 Server/Desktop. We’ll show you how to create systemd service units to manage your startup scripts.
Bash Scripting Cheat Sheet
The ability to automate tasks with Bash scripts in Linux is one of the operating system’s most powerful components.
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.
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.
ls command in Linux with examples
The ls command in Linux is one of the most essential commands that every Linux user should know. If you’re a beginner to using the command line, ls is probably the first command you should try to learn. ls is short for list, and is used to list the files in your present working directory or some other directory if you specify one.
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.