合集-Linux Shell
摘要:
Linux shell command ln All In One
硬连接 vs 软连接
hard link
symbolic link
阅读全文
Linux shell command ln All In One
硬连接 vs 软连接
hard link
symbolic link
阅读全文
摘要:
Linux shell command cut All In One
cut 截取指定符号等号后面的字符串
cut 截取等号后面的字符串
阅读全文
Linux shell command cut All In One
cut 截取指定符号等号后面的字符串
cut 截取等号后面的字符串
阅读全文
摘要:
Linux shell standard input bugs All In One
warning: file 'standard input', around line 110: table wider than line width
阅读全文
Linux shell standard input bugs All In One
warning: file 'standard input', around line 110: table wider than line width
阅读全文
摘要:
Linux shell command base64 All In One
email address encryption / 邮箱地址加密
应用场景
防止爬虫爬取邮箱地址发送垃圾邮件
base64 encode & decode
阅读全文
Linux shell command base64 All In One
email address encryption / 邮箱地址加密
应用场景
防止爬虫爬取邮箱地址发送垃圾邮件
base64 encode & decode
阅读全文
摘要:
How to use the shell command to get the version of Linux Distributions All In One
如何使用 shell 命令获取 Linux 发行版的版本
hostnamectl
cat /etc/os-release
lsb_release -a
Debian
Ubuntu
Raspberry Pi OS
阅读全文
How to use the shell command to get the version of Linux Distributions All In One
如何使用 shell 命令获取 Linux 发行版的版本
hostnamectl
cat /etc/os-release
lsb_release -a
Debian
Ubuntu
Raspberry Pi OS
阅读全文
摘要:
Linux shell command make & Makefile All In One
脚本自动化构建工具
Makefile 是在 Linux 编程环境下 C/C++ 程序开发必须要掌握的一个工程管理文件;
当使用 make 命令去编译一个工程项目时,如果没有指定自定义的 Makefile 文件,make 才会首先到项目的根目录下去寻找默认文件名为 Makefile 的文件,然后再根据这个 Makefile 文件去执行编译程序;
阅读全文
Linux shell command make & Makefile All In One
脚本自动化构建工具
Makefile 是在 Linux 编程环境下 C/C++ 程序开发必须要掌握的一个工程管理文件;
当使用 make 命令去编译一个工程项目时,如果没有指定自定义的 Makefile 文件,make 才会首先到项目的根目录下去寻找默认文件名为 Makefile 的文件,然后再根据这个 Makefile 文件去执行编译程序;
阅读全文
摘要:
Linux shell command strings All In One
打印文件(默认为标准输入) 中可打印的字符串
阅读全文
Linux shell command strings All In One
打印文件(默认为标准输入) 中可打印的字符串
阅读全文
摘要:
sudo & su & Rust All In One
阅读全文
sudo & su & Rust All In One
阅读全文
摘要:
Linux shell command make All In One
GPIO
WiringPi
CMake
阅读全文
Linux shell command make All In One
GPIO
WiringPi
CMake
阅读全文
摘要:
Linux shell script shebang env All In One
指定 shell script 的运行环境
#!/usr/bin/env bash
#!/usr/bin/bash
#!/bin/bash
阅读全文
Linux shell script shebang env All In One
指定 shell script 的运行环境
#!/usr/bin/env bash
#!/usr/bin/bash
#!/bin/bash
阅读全文
摘要:
Linux shell script switch...case All In One
case...in...esac
Linux shell shebang
阅读全文
Linux shell script switch...case All In One
case...in...esac
Linux shell shebang
阅读全文
摘要:
Linux shell command ls sort by date All In One
ls 按时间排序,最新的排在最前面
$ ls -t
$ ls --time
# reverse
$ ls -tr
阅读全文
Linux shell command ls sort by date All In One
ls 按时间排序,最新的排在最前面
$ ls -t
$ ls --time
# reverse
$ ls -tr
阅读全文
摘要:
Linux shell script read file line by line All In One
Linux shell 脚本逐行读取文件
阅读全文
Linux shell script read file line by line All In One
Linux shell 脚本逐行读取文件
阅读全文
摘要:
Linux shell regular expression All In One
Linux shell 正则表达式
word boundary
阅读全文
Linux shell regular expression All In One
Linux shell 正则表达式
word boundary
阅读全文
How to fix IP filter regular expressions written using grep command in Linux shell script All In One
摘要:
How to fix IP filter regular expressions written using grep command in Linux shell script All In One
如何修复在 Linux shell 脚本中使用 grep 命令编写的 IP 过滤器正则表达式?
\b
[[:space:]]
regexper
regex101
阅读全文
How to fix IP filter regular expressions written using grep command in Linux shell script All In One
如何修复在 Linux shell 脚本中使用 grep 命令编写的 IP 过滤器正则表达式?
\b
[[:space:]]
regexper
regex101
阅读全文
摘要:
Linux shell script programming All In One
shell 脚本编程
Linux 系统中登录 shell 的时候,会从下面的 5 个启动文件里读取命令;
# 系统级,所有登录用户都会先启动这个文件
$ cat /etc/profile
# 用户级,按照Linux 发行版中实际存在的文件个数,依次进行启动
$ cat $HOME/.bash_profile
$ cat $HOME/.bashrc
$ cat $HOME/.bash_login
$ cat $HOME/.profile
阅读全文
Linux shell script programming All In One
shell 脚本编程
Linux 系统中登录 shell 的时候,会从下面的 5 个启动文件里读取命令;
# 系统级,所有登录用户都会先启动这个文件
$ cat /etc/profile
# 用户级,按照Linux 发行版中实际存在的文件个数,依次进行启动
$ cat $HOME/.bash_profile
$ cat $HOME/.bashrc
$ cat $HOME/.bash_login
$ cat $HOME/.profile
阅读全文
摘要:
Linux shell script redirection All In One
Linux shell 脚本重定向
PS: Linux 系统中一切皆文件 🚀, device 设备也是一种文件
&>/dev/null
把标准输出和错误输出,全部重定向到一个不存在的 device文件, 即忽略所有输出信息 ✅
2>&1
stdout 标准输出 & stderr 错误输出,二合一进行输出
阅读全文
Linux shell script redirection All In One
Linux shell 脚本重定向
PS: Linux 系统中一切皆文件 🚀, device 设备也是一种文件
&>/dev/null
把标准输出和错误输出,全部重定向到一个不存在的 device文件, 即忽略所有输出信息 ✅
2>&1
stdout 标准输出 & stderr 错误输出,二合一进行输出
阅读全文
摘要:
How to use Linux shell command filter the IP address All In One
如何使用 Linux shell 命令过滤 IP 地址
Perl 5
阅读全文
How to use Linux shell command filter the IP address All In One
如何使用 Linux shell 命令过滤 IP 地址
Perl 5
阅读全文
摘要:
how to create one interactive mode command line configuration tool with shell language on Linux All In One
如何在 Linux 上用 shell 语言创建一个交互模式的命令行配置工具
raspi-config
阅读全文
how to create one interactive mode command line configuration tool with shell language on Linux All In One
如何在 Linux 上用 shell 语言创建一个交互模式的命令行配置工具
raspi-config
阅读全文
摘要:
Linux shell script get date and time All In One
Python get datetime
阅读全文
Linux shell script get date and time All In One
Python get datetime
阅读全文
摘要:
Linux shell command screen All In One
usbserial
USB
usbmodem
阅读全文
Linux shell command screen All In One
usbserial
USB
usbmodem
阅读全文
摘要:
Linux shell #! interpreter All In One
指定脚本解释器的路径
#!/usr/bin/env python3
# ✅ 推荐写法, 动态读取 env 配置的解释器路径,切换系统环境不会报错,可移植性高 🚀
#!/usr/bin/python3
# 👎 不推荐写法,写死了解释器路径,切换系统环境有可能会报错,可移植性低
阅读全文
Linux shell #! interpreter All In One
指定脚本解释器的路径
#!/usr/bin/env python3
# ✅ 推荐写法, 动态读取 env 配置的解释器路径,切换系统环境不会报错,可移植性高 🚀
#!/usr/bin/python3
# 👎 不推荐写法,写死了解释器路径,切换系统环境有可能会报错,可移植性低
阅读全文
摘要:
Linux shell set command All In One
set -u
set +u
阅读全文
Linux shell set command All In One
set -u
set +u
阅读全文
摘要:
Linux shell script auto generate batch files All In One
Linux shell script 自动批量生成文件
EOF
阅读全文
Linux shell script auto generate batch files All In One
Linux shell script 自动批量生成文件
EOF
阅读全文
摘要:
Linux bash script HereDoc All In One
Linux shell script multi-lines comments / Linux shell script block comments
Linux shell 脚本多行注释/Linux shell 脚本块注释
EOF
阅读全文
Linux bash script HereDoc All In One
Linux shell script multi-lines comments / Linux shell script block comments
Linux shell 脚本多行注释/Linux shell 脚本块注释
EOF
阅读全文
摘要:
Linux shell system environment All In One
vscode terminal
自定义环境变量
阅读全文
Linux shell system environment All In One
vscode terminal
自定义环境变量
阅读全文
摘要:
Linux shell command curl All In One
阅读全文
Linux shell command curl All In One
阅读全文
摘要:Linux shell command chroot All In One
阅读全文
摘要:
Linux shell command chmod All In One
阅读全文
Linux shell command chmod All In One
阅读全文
摘要:
Linux shell number variables add All In One
阅读全文
Linux shell number variables add All In One
阅读全文
摘要:
Linux bash shell "${1}" All In One
echo
阅读全文
Linux bash shell "${1}" All In One
echo
阅读全文
摘要:
Linux xattr shell command All In One
阅读全文
Linux xattr shell command All In One
阅读全文
摘要:
Multiple Ways to Change Terminal Shell in Linux All In One
在 Linux 中更改终端 Shell 的多种方法汇总
阅读全文
Multiple Ways to Change Terminal Shell in Linux All In One
在 Linux 中更改终端 Shell 的多种方法汇总
阅读全文
摘要:
Linux shell stdin & stdout & stderr All In One
标准输入 stdin
标准输出 stdout
标准错误输出 stderr
2>&1 二合一,输出错误 信息
重定向运算符
阅读全文
Linux shell stdin & stdout & stderr All In One
标准输入 stdin
标准输出 stdout
标准错误输出 stderr
2>&1 二合一,输出错误 信息
重定向运算符
阅读全文
摘要:Linux shell man command All In One
阅读全文
摘要:
Linux shell command line editor All In One
sed / gawk / vim / vi / nano / emacs / vscode
阅读全文
Linux shell command line editor All In One
sed / gawk / vim / vi / nano / emacs / vscode
阅读全文
摘要:
Linux shell command uname All In One
阅读全文
Linux shell command uname All In One
阅读全文
摘要:
Linux bash shell script block comment All In One
Linux bash shell 脚本 多行注释 / 块级注释
阅读全文
Linux bash shell script block comment All In One
Linux bash shell 脚本 多行注释 / 块级注释
阅读全文
摘要:
Linux bash shell script batch download files All In One
Linux bash shell script 批量下载文件 All In One
pdf crawler / pdf 爬虫
阅读全文
Linux bash shell script batch download files All In One
Linux bash shell script 批量下载文件 All In One
pdf crawler / pdf 爬虫
阅读全文
摘要:
Linux shell script bug and error All In One
未找到命令 ❌
shell 变量赋值=等号两边不能有空格
参数太多 ❌
在 if 条件判断语句中, 使用双引号包裹变量
阅读全文
Linux shell script bug and error All In One
未找到命令 ❌
shell 变量赋值=等号两边不能有空格
参数太多 ❌
在 if 条件判断语句中, 使用双引号包裹变量
阅读全文
摘要:
Linux bash write long string with multi-lines comments All In One
Here Documents
Here Doc
EOF / END
EOL / EOM
Linux shell script multi-lines comments / Linux shell script block comments
Linux shell 脚本多行注释/ Linux shell 脚本块注释
阅读全文
Linux bash write long string with multi-lines comments All In One
Here Documents
Here Doc
EOF / END
EOL / EOM
Linux shell script multi-lines comments / Linux shell script block comments
Linux shell 脚本多行注释/ Linux shell 脚本块注释
阅读全文
摘要:
Linux set command All In One
$ set -eux
# -e 若指令传回值不等于0,则立即退出shell。
# -u 当执行时使用到未定义过的变量,则显示错误信息。
# -x 执行指令后,会先显示该指令及所下的参数。
阅读全文
Linux set command All In One
$ set -eux
# -e 若指令传回值不等于0,则立即退出shell。
# -u 当执行时使用到未定义过的变量,则显示错误信息。
# -x 执行指令后,会先显示该指令及所下的参数。
阅读全文
摘要:
Linux echo command All In One
echo \n 换行
bash script 多行注释 EOF
阅读全文
Linux echo command All In One
echo \n 换行
bash script 多行注释 EOF
阅读全文
摘要:
Linux echo 换行 All In One
2>&1
echo `\n` 换行 & EOF 多行注释
阅读全文
Linux echo 换行 All In One
2>&1
echo `\n` 换行 & EOF 多行注释
阅读全文
摘要:
Linux Bash shell 脚本定时器 All In One
自动化执行定时任务
crontab
阅读全文
Linux Bash shell 脚本定时器 All In One
自动化执行定时任务
crontab
阅读全文
摘要:Linux System Variables All In One
Linux 系统变量
阅读全文
摘要:linux bash shell auto read write template
阅读全文
摘要:
Linux bash script read args All In One
阅读全文
Linux bash script read args All In One
阅读全文
摘要:Linux Bash Script conditions syntax All In One
shell 编程之条件判断
条件判断式语句、单分支 if 语句、双分支 if 语句、多分支 if 语句、case 语句
阅读全文
摘要:
Linux Bash Script loop syntax All In One
shell 编程之流程控制
for 循环、while 循环和 until 循环
阅读全文
Linux Bash Script loop syntax All In One
shell 编程之流程控制
for 循环、while 循环和 until 循环
阅读全文
摘要:Linux shell script All In One
阅读全文
摘要:
如何通过 Linux terminal 查看一个文件的 meta 信息 All In One
下载日期
阅读全文
如何通过 Linux terminal 查看一个文件的 meta 信息 All In One
下载日期
阅读全文
摘要:
Linux shell uname -a All In One
man uname
阅读全文
Linux shell uname -a All In One
man uname
阅读全文
摘要:
Linux shell command create file methods All In One
HereDoc
EOF 多行注释
阅读全文
Linux shell command create file methods All In One
HereDoc
EOF 多行注释
阅读全文
摘要:how to write string to file in linux bash All In One
how to write string to file in bash
阅读全文
摘要:Linux Bash Shell All In One
Linux & Bash Shell
Linux Bash Shell All In One,Linux, Bash, Shell, cd, cp, ps, grep, tree,mkdir, touch, zsh,
阅读全文
摘要:Linux shell command copy file All In One
阅读全文
摘要:Linux shell command & zip & tar All In One
linux & zip & tar
zip -r
tree Level
阅读全文
摘要:
Linux shell command show project directory tree All In One
Linux directory tree
阅读全文
Linux shell command show project directory tree All In One
Linux directory tree
阅读全文
摘要:Linux shell commands man chmod All In One
man
chmod 777
阅读全文
摘要:
Linux & bash & shell ps https://www.binarytides.com/linux-ps-command/ PID & PPID https://www.lifewire.com/uses-of-linux-ps-command-4058715 $ ps -ef |
阅读全文
Linux & bash & shell ps https://www.binarytides.com/linux-ps-command/ PID & PPID https://www.lifewire.com/uses-of-linux-ps-command-4058715 $ ps -ef |
阅读全文
摘要:
Linux bash shell All In One Linux https://tinylab.gitbooks.io/shellbook/content/zh/chapters/01-chapter1.html https://github.com/qinjx/30min_guides/blo
阅读全文
Linux bash shell All In One Linux https://tinylab.gitbooks.io/shellbook/content/zh/chapters/01-chapter1.html https://github.com/qinjx/30min_guides/blo
阅读全文
摘要:
Linux shell command symbolic link & soft link All In One
符号链接 (软链接/硬链接)
hard link
soft link / symbolic link
npm link
bash
阅读全文
Linux shell command symbolic link & soft link All In One
符号链接 (软链接/硬链接)
hard link
soft link / symbolic link
npm link
bash
阅读全文
摘要:Linux bash shell All In One
terminal tools
asciinema-player
http verbs
symbol link
阅读全文
摘要:Linux shell (.sh 文件)基础命令 常用命令 汇总 shell,bash
阅读全文
摘要:
How to use a shell script to check whether a command had been installed in the Linux server All In One
shell script error [: :需要整数表达式 / [: -eq:需要一元表达式 /[: ==:需要一元表达式
如果 if 语句使用的是单层方括号 [ ] 条件修饰符, 变量必须加上双引号
如果 if 语句使用的是双层方括号 [[ ]] 条件修饰符, 变量就不需要引号了
阅读全文
How to use a shell script to check whether a command had been installed in the Linux server All In One
shell script error [: :需要整数表达式 / [: -eq:需要一元表达式 /[: ==:需要一元表达式
如果 if 语句使用的是单层方括号 [ ] 条件修饰符, 变量必须加上双引号
如果 if 语句使用的是双层方括号 [[ ]] 条件修饰符, 变量就不需要引号了
阅读全文
摘要:
How to print a string with a variable by using the echo command in the shell script All In One
Node.js & nvm
parent shell vs child shell
打开 shell 的三种方式
terminal 登录后的交互式 shell (父 shell)
输入 bash 打开一新的交互式 shell (子 shell)
运行 shell script 创建的非交互式 shell (子 shell)
global environment variables vs local environment variables / shell variables
阅读全文
How to print a string with a variable by using the echo command in the shell script All In One
Node.js & nvm
parent shell vs child shell
打开 shell 的三种方式
terminal 登录后的交互式 shell (父 shell)
输入 bash 打开一新的交互式 shell (子 shell)
运行 shell script 创建的非交互式 shell (子 shell)
global environment variables vs local environment variables / shell variables
阅读全文
摘要:
Linux install vim errors All In One
Vim
raspbeery pi
树莓派
阅读全文
Linux install vim errors All In One
Vim
raspbeery pi
树莓派
阅读全文
摘要:
Raspberry Pi 设置开机登录后自启动脚本 All In One
Raspberry Pi 设置开机自动启动 SSH
6 种修改系统文件来实现开机自启动的方法
2 种修改系统配置文件来实现开机登录后自动执行自定义 shell 脚本的方案
.profile
.bashrc
init.d tab
systemd
crontab 定时器/定时任务
rc.local
userconf.txt
config.txt
wpa_supplicant.conf
阅读全文
Raspberry Pi 设置开机登录后自启动脚本 All In One
Raspberry Pi 设置开机自动启动 SSH
6 种修改系统文件来实现开机自启动的方法
2 种修改系统配置文件来实现开机登录后自动执行自定义 shell 脚本的方案
.profile
.bashrc
init.d tab
systemd
crontab 定时器/定时任务
rc.local
userconf.txt
config.txt
wpa_supplicant.conf
阅读全文

浙公网安备 33010602011771号