JIYIK CN >

Current Location:Home > Learning > OPERATING SYSTEM >

All

Sum a list of numbers in a text file using Bash

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

This article will show you multiple ways to sum a list of numbers in a file using Bash scripts. The first method involves using the paste command, and we will discuss two cases: using an existing file and reading a file using standard input...

Full

Checking Syntax in Bash

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

This article discusses methods for checking Bash scripts for syntax problems without running the script. Syntax errors are caused by some grammatical or spelling mistakes in the code. In modern compilers of other programming languages, the...

Full

Start a new terminal session in Bash

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

In various situations when using Bash or another shell, you may need to run a script or program in a new terminal instance or in another tab in the same terminal. Opening a new terminal instance or tab from within Terminal is simple; we'll...

Full

timeout command in Bash

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

This article is a simple guide to setting a timeout for a specific program using the timeout command from GNU's coreutils package in Bash. timeout command in Bash In many cases, such as fetching data from a server or running a function or p...

Full

Exit Bash Script

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

This article provides a brief introduction to Bash scripting and discusses exiting a Bash script when an error occurs. It further discusses the limitations and benefits of Bash scripting. What is Bash Scripting A computer script/program tel...

Full

eval command in bash script

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

eval command in bash script

This article is about using strings as commands in Bash scripts. For this purpose, the eval command is used. Eval Command in Bash Scripts In some Bash scripts, you have to create a string using variables or input values ​​(for example)...

Full

Bash configuration files in macOS

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

In this article, we will discuss how to create, delete, and edit bash profiles in macOS. Create .bash_profile To create .bash_profile, open a terminal and move to your home directory using the following command. cd ~/ Now you can create usi...

Full

Reload .bash_profile from the command line

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

In the shell, .bash_profile is used to customize the configuration of user settings. It is stored in the root directory or home directory and is mostly hidden from other users. This file holds all the configuration of the shell and is also...

Full

Clear the Terminal Screen in Bash

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

There are various ways to clear the terminal in bash script. This article will discuss 3 methods to clear the terminal. Use tput reset to clear the terminal screen. The first method uses the keyword tput reset to clear the screen. When your...

Full

Open Emacs in Bash

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

This article will show you how to open Emacs from within Bash. We will also discuss how to install the Emacs text editor. Install EMACS in your system Suppose you don't have Emacs in your system. You can easily install it in your system wit...

Full

Renaming Files in Bash

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

With the help of Bash scripts, you can automate your tasks. File renaming is a common task on various systems. You can rename all the files manually. However, if your file names have a sequence, it is better to automate this task. This way...

Full

Difference between Bash Nohup and &

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

This short article introduces the nohup command and the control operator to run Linux processes in the background through Bash. In addition, we will further study the key differences between nohup and . Running Linux Processes in the Backgr...

Full

Getting the absolute path in Bash

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

In this Bash article, we will learn different ways to get the absolute path in Linux. We will also learn some different Linux commands to get the absolute path of a file. Before we begin, we need to understand the basic concepts of absolute...

Full

Error handling in Bash

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

This article introduces error handling in bash. Remember, understanding exit codes, options such as errexit and trap allow us to build robust scripts and manage bash problems more effectively. Exit Codes in Bash Handling errors based on exi...

Full

How to fix the error Make Command Not Found in Cygwin

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

Cygwin allows Windows users to access certain Linux features and includes a large number of GNU and open source tools that are commonly found in popular Linux distributions. When using Cygwin, it is easy to encounter a command not found err...

Full

Scan to Read All Tech Tutorials

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

Hottest

Tags

Scan the Code
Easier Access Tutorial