JIYIK CN >

Current Location:Home > Learning >

All

Get Current Date and Time in Bash

Publish Date:2025/03/22 Author:JIYIK Category:OPERATING SYSTEM

This article discusses the methods to display current date and time in a specified format in Bash Scripting. For this purpose, date command is used with multiple options. Using the Date Command in Bash An external Bash program called the da...

Full

Bash Script to Add New User in Linux

Publish Date:2025/03/22 Author:JIYIK Category:OPERATING SYSTEM

This short article is about creating a Bash script that automates adding users and assigning passwords for Linux operating system. In Linux operating system, useradd command is used to add new users and provide passwords to them. Bash scrip...

Full

Check if a command exists in Bash

Publish Date:2025/03/22 Author:JIYIK Category:OPERATING SYSTEM

You may need to verify the existence of a command, program, or file using Bash scripting or programming. This article will take a look at several methods to meet this need. We can use different built-in commands in Bash to check if a comman...

Full

Bash Double Pipe

Publish Date:2025/03/22 Author:JIYIK Category:OPERATING SYSTEM

This article provides a thorough discussion of pipes and double pipes. It will discuss the usage, notation, and effects of pipes in Bash command scripts. In real life, pipes carry fluids or gases from one place to another. But in Bash, pipe...

Full

Nested for loops in Bash

Publish Date:2025/03/22 Author:JIYIK Category:OPERATING SYSTEM

In this article, we will discuss nested for loops in bash. First, we will quickly discuss the different for loop formulas available in bash. Next, we will discuss nested for loops with examples. Bash for loop variants First, let's look at t...

Full

Sort data based on the second column of a file in Bash

Publish Date:2025/03/22 Author:JIYIK Category:OPERATING SYSTEM

This article explains how to sort data based on the second column of a file in bash. Overview of the Sort Command in Bash Sort files using the sort command, which places records in a specific order. By default, the sort command sorts files...

Full

Getting Timestamps in Bash

Publish Date:2025/03/22 Author:JIYIK Category:OPERATING SYSTEM

This article discusses the date Bash command used to obtain the system date/time and UNIX timestamp. Get Timestamp Using date Command in Bash The Linux terminal uses the date command to print the current date and time. The simplest version...

Full

Terminating a Process in Bash

Publish Date:2025/03/22 Author:JIYIK Category:OPERATING SYSTEM

This article will first discuss the different concepts related to Linux processes. After this, we will learn the different ways to terminate a process. Before going into the kill command, we must understand some preliminary concepts. Simple...

Full

Writing to a File in Bash

Publish Date:2025/03/22 Author:JIYIK Category:OPERATING SYSTEM

This article will let us explore different ways to write files in bash. Files can be appended or overwritten as required. Let's see how we can do it. Different ways to write/overwrite files in Bash We will see several operators, such as and...

Full

Floating-point arithmetic in Bash

Publish Date:2025/03/22 Author:JIYIK Category:OPERATING SYSTEM

This short article describes how to quickly perform floating-point calculations in GNU BASH (shell scripts) directly at the command prompt or in a shell script. If you work with numbers, it can be helpful to perform quick floating-point cal...

Full

Batch Check for Empty Variables

Publish Date:2025/03/22 Author:JIYIK Category:OPERATING SYSTEM

This article explains how we can test if a variable has been set. We can use an if statement to check if a variable has been defined. Batch check whether variables are empty For a simpler context, we will start by defining two strings, str1...

Full

Declaring variables in batch script

Publish Date:2025/03/22 Author:JIYIK Category:OPERATING SYSTEM

This article will demonstrate how to declare and define variables in a batch script. Declaring variables in batch script In Batch, you do not need to use any additional keywords to declare integer, float, double, or string type variables. T...

Full

Batch file to remove X characters from a file name

Publish Date:2025/03/22 Author:JIYIK Category:OPERATING SYSTEM

This article explains how we can remove specific characters from the filename of a file using a batch script. We will cover several methods below to rename files on Windows. File Explorer Renaming on Windows File Explorer offers the least f...

Full

Batch file to loop through files in subdirectories

Publish Date:2025/03/22 Author:JIYIK Category:OPERATING SYSTEM

This article explains how we can write a batch script to loop through files in subdirectories. We will take an example to explain the concept. Batch file to loop through files in subdirectories Assume we have the directory structure shown b...

Full

Bash copy all files from remote directory

Publish Date:2025/03/22 Author:JIYIK Category:OPERATING SYSTEM

This article describes methods for copying files between different hosts on a network. It also explores the scp command and how to use it to copy files from a remote location. scp command Secure Copy Protocol (SCP) is a secure copy network...

Full

Scan to Read All Tech Tutorials

Social Media
  • https://www.github.com/onmpw
  • qq:1244347461

Hottest

Tags

Scan the Code
Easier Access Tutorial