迹忆客 EN >

所有文章

In Bash scripts set -e

发布时间:2025/03/20 作者:JIYIK 分类:OPERATING SYSTEM

The -h option instructs the shell to exit if the command returns a non-zero exit status set -e . In simple terms, the shell exits if the command fails. In Debian package management scripts, set -e this is also known as set -o errexit . Acco...

查看全文

Passing arguments in Bash functions

发布时间:2025/03/20 作者:JIYIK 分类:OPERATING SYSTEM

A shell function is a group of commands that work together to form a complete routine. Each function must have its own name. Shell functions have their own set of command line options. To retrieve the arguments supplied to a function, we ca...

查看全文

Using set in Bash Shell

发布时间:2025/03/20 作者:JIYIK 分类:OPERATING SYSTEM

The Bash shell contains several useful built-in commands for manipulating the environment of the currently running shell session. The built-in set command provides the ability to view and change shell environment variables and options. This...

查看全文

Fix syntax error near unexpected token in Bash

发布时间:2025/03/20 作者:JIYIK 分类:OPERATING SYSTEM

Writing code using Bash scripts, escape sequences, or quotes may result in errors. This article will explain how to fix errors in Linux Bash bash: syntax error near unexpected token . syntax error near unexpected token There are many reason...

查看全文

Solve Python3 command not found error in Bash

发布时间:2025/03/20 作者:JIYIK 分类:OPERATING SYSTEM

Python is a high-level, general-purpose programming language. It has two major versions, Python 2.x and Python 3.x. This article will explain how to install Python 3 and resolve errors in Linux Bash bash: python3: command not found . Instal...

查看全文

Resolving Pip Command Not Found Error in Bash

发布时间:2025/03/20 作者:JIYIK 分类:OPERATING SYSTEM

pip is a package management system written in Python for installing and managing software packages. When you use pip the tool to download packages, you may sometimes receive command not found an error. pip This article explains how to insta...

查看全文

Resolving NPM command not found errors in Bash

发布时间:2025/03/20 作者:JIYIK 分类:OPERATING SYSTEM

Node Package Manager or npm is a package manager for JavaScript programming language. It is the default package manager for the Node.js runtime environment. When you use npm the bash tool to download packages, you may sometimes receive comm...

查看全文

Resolving GCC command not found errors in Bash

发布时间:2025/03/20 作者:JIYIK 分类:OPERATING SYSTEM

The GNU Compiler Collection, also known as GCC, includes compilers and development tools for Linux, Windows, and other operating systems. This article will discuss installing GCC and resolving errors in Linux Bash bash: gcc: command not fou...

查看全文

Add WSL Bash Shell to Windows

发布时间:2025/03/20 作者:JIYIK 分类:OPERATING SYSTEM

Microsoft's recent embrace of Linux has resulted in some great features in Windows. The centerpiece of this effort is the Windows Subsystem for Linux (WSL), a lightweight virtual machine capable of running a full Linux distribution entirely...

查看全文

Making Bash Aliases

发布时间:2025/03/20 作者:JIYIK 分类:OPERATING SYSTEM

An alias is a command in the shell that allows a word to be replaced with another string. It is mainly used to shorten system commands or provide default parameters for frequently used commands. It is similar to a shortcut command and has t...

查看全文

Pause a Bash Shell Script for X seconds

发布时间:2025/03/20 作者:JIYIK 分类:OPERATING SYSTEM

Bash scripts are useful for running multiple commands that you might not want to type line by line into a Bash command shell. In some cases, you might need to pause a script, perhaps to accept input from the user, or to sleep before returni...

查看全文

扫一扫阅读全部技术教程

社交账号
  • https://www.github.com/onmpw
  • qq:1244347461

热门文章

热门标签

扫码一下
查看教程更方便