xgqfrms™, xgqfrms® : xgqfrms's offical website of cnblogs! xgqfrms™, xgqfrms® : xgqfrms's offical website of GitHub!

合集-Linux Shell

摘要:Linux shell command ln All In One 硬连接 vs 软连接 hard link symbolic link 阅读全文
posted @ 2023-06-04 21:27 xgqfrms 阅读(43) 评论(0) 推荐(0)
摘要:Linux shell command cut All In One cut 截取指定符号等号后面的字符串 cut 截取等号后面的字符串 阅读全文
posted @ 2023-06-04 17:52 xgqfrms 阅读(42) 评论(2) 推荐(0)
摘要:Linux shell standard input bugs All In One warning: file 'standard input', around line 110: table wider than line width 阅读全文
posted @ 2023-05-31 12:15 xgqfrms 阅读(38) 评论(1) 推荐(0)
摘要:Linux shell command base64 All In One email address encryption / 邮箱地址加密 应用场景 防止爬虫爬取邮箱地址发送垃圾邮件 base64 encode & decode 阅读全文
posted @ 2023-05-30 22:16 xgqfrms 阅读(106) 评论(0) 推荐(0)
摘要: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 阅读全文
posted @ 2023-05-30 20:00 xgqfrms 阅读(88) 评论(1) 推荐(0)
摘要:Linux shell command make & Makefile All In One 脚本自动化构建工具 Makefile 是在 Linux 编程环境下 C/C++ 程序开发必须要掌握的一个工程管理文件; 当使用 make 命令去编译一个工程项目时,如果没有指定自定义的 Makefile 文件,make 才会首先到项目的根目录下去寻找默认文件名为 Makefile 的文件,然后再根据这个 Makefile 文件去执行编译程序; 阅读全文
posted @ 2023-05-24 18:32 xgqfrms 阅读(39) 评论(2) 推荐(0)
摘要:Linux shell command strings All In One 打印文件(默认为标准输入) 中可打印的字符串 阅读全文
posted @ 2023-05-24 17:17 xgqfrms 阅读(48) 评论(1) 推荐(0)
摘要:sudo & su & Rust All In One 阅读全文
posted @ 2023-05-07 05:49 xgqfrms 阅读(37) 评论(2) 推荐(0)
摘要:Linux shell command make All In One GPIO WiringPi CMake 阅读全文
posted @ 2023-05-03 19:08 xgqfrms 阅读(29) 评论(1) 推荐(0)
摘要:Linux shell script shebang env All In One 指定 shell script 的运行环境 #!/usr/bin/env bash #!/usr/bin/bash #!/bin/bash 阅读全文
posted @ 2023-05-03 16:06 xgqfrms 阅读(28) 评论(1) 推荐(0)
摘要:Linux shell script switch...case All In One case...in...esac Linux shell shebang 阅读全文
posted @ 2023-05-03 15:48 xgqfrms 阅读(161) 评论(1) 推荐(0)
摘要:Linux shell command ls sort by date All In One ls 按时间排序,最新的排在最前面 $ ls -t $ ls --time # reverse $ ls -tr 阅读全文
posted @ 2023-05-02 21:56 xgqfrms 阅读(80) 评论(1) 推荐(0)
摘要:Linux shell script read file line by line All In One Linux shell 脚本逐行读取文件 阅读全文
posted @ 2023-04-28 14:24 xgqfrms 阅读(39) 评论(4) 推荐(0)
摘要:Linux shell regular expression All In One Linux shell 正则表达式 word boundary 阅读全文
posted @ 2023-04-27 11:55 xgqfrms 阅读(34) 评论(1) 推荐(0)
摘要: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 阅读全文
posted @ 2023-04-26 14:47 xgqfrms 阅读(49) 评论(3) 推荐(0)
摘要: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 阅读全文
posted @ 2023-04-22 14:47 xgqfrms 阅读(47) 评论(3) 推荐(0)
摘要:Linux shell script redirection All In One Linux shell 脚本重定向 PS: Linux 系统中一切皆文件 🚀, device 设备也是一种文件 &>/dev/null 把标准输出和错误输出,全部重定向到一个不存在的 device文件, 即忽略所有输出信息 ✅ 2>&1 stdout 标准输出 & stderr 错误输出,二合一进行输出 阅读全文
posted @ 2023-04-20 22:36 xgqfrms 阅读(44) 评论(2) 推荐(0)
摘要:How to use Linux shell command filter the IP address All In One 如何使用 Linux shell 命令过滤 IP 地址 Perl 5 阅读全文
posted @ 2023-04-17 10:38 xgqfrms 阅读(31) 评论(4) 推荐(0)
摘要:how to create one interactive mode command line configuration tool with shell language on Linux All In One 如何在 Linux 上用 shell 语言创建一个交互模式的命令行配置工具 raspi-config 阅读全文
posted @ 2023-04-14 18:53 xgqfrms 阅读(59) 评论(3) 推荐(0)
摘要:Linux shell script get date and time All In One Python get datetime 阅读全文
posted @ 2023-04-12 12:39 xgqfrms 阅读(47) 评论(1) 推荐(0)
摘要:Linux shell command screen All In One usbserial USB usbmodem 阅读全文
posted @ 2023-04-09 11:37 xgqfrms 阅读(37) 评论(1) 推荐(0)
摘要:Linux shell #! interpreter All In One 指定脚本解释器的路径 #!/usr/bin/env python3 # ✅ 推荐写法, 动态读取 env 配置的解释器路径,切换系统环境不会报错,可移植性高 🚀 #!/usr/bin/python3 # 👎 不推荐写法,写死了解释器路径,切换系统环境有可能会报错,可移植性低 阅读全文
posted @ 2023-03-30 17:28 xgqfrms 阅读(20) 评论(2) 推荐(0)
摘要:Linux shell set command All In One set -u set +u 阅读全文
posted @ 2023-03-25 05:38 xgqfrms 阅读(107) 评论(1) 推荐(0)
摘要:Linux shell script auto generate batch files All In One Linux shell script 自动批量生成文件 EOF 阅读全文
posted @ 2023-03-24 14:45 xgqfrms 阅读(32) 评论(3) 推荐(0)
摘要:Linux bash script HereDoc All In One Linux shell script multi-lines comments / Linux shell script block comments Linux shell 脚本多行注释/Linux shell 脚本块注释 EOF 阅读全文
posted @ 2023-03-24 08:11 xgqfrms 阅读(41) 评论(2) 推荐(0)
摘要:Linux shell system environment All In One vscode terminal 自定义环境变量 阅读全文
posted @ 2023-02-10 18:34 xgqfrms 阅读(36) 评论(1) 推荐(0)
摘要:Linux shell command curl All In One 阅读全文
posted @ 2023-01-09 15:00 xgqfrms 阅读(62) 评论(5) 推荐(0)
摘要:Linux shell command chroot All In One 阅读全文
posted @ 2023-01-04 15:56 xgqfrms 阅读(21) 评论(0) 推荐(0)
摘要:Linux shell command chmod All In One 阅读全文
posted @ 2023-01-02 23:29 xgqfrms 阅读(71) 评论(5) 推荐(0)
摘要:Linux shell number variables add All In One 阅读全文
posted @ 2022-12-28 11:48 xgqfrms 阅读(38) 评论(1) 推荐(0)
摘要:Linux bash shell "${1}" All In One echo 阅读全文
posted @ 2022-12-27 11:20 xgqfrms 阅读(177) 评论(2) 推荐(0)
摘要:Linux xattr shell command All In One 阅读全文
posted @ 2022-12-21 11:35 xgqfrms 阅读(107) 评论(1) 推荐(0)
摘要:Multiple Ways to Change Terminal Shell in Linux All In One 在 Linux 中更改终端 Shell 的多种方法汇总 阅读全文
posted @ 2022-11-30 15:41 xgqfrms 阅读(25) 评论(0) 推荐(0)
摘要:Linux shell stdin & stdout & stderr All In One 标准输入 stdin 标准输出 stdout 标准错误输出 stderr 2>&1 二合一,输出错误 信息 重定向运算符 阅读全文
posted @ 2022-11-18 16:37 xgqfrms 阅读(129) 评论(5) 推荐(0)
摘要:Linux shell man command All In One 阅读全文
posted @ 2022-10-26 10:09 xgqfrms 阅读(32) 评论(1) 推荐(0)
摘要:Linux shell command line editor All In One sed / gawk / vim / vi / nano / emacs / vscode 阅读全文
posted @ 2022-10-25 16:13 xgqfrms 阅读(35) 评论(1) 推荐(0)
摘要:Linux shell command uname All In One 阅读全文
posted @ 2022-08-17 22:53 xgqfrms 阅读(60) 评论(1) 推荐(0)
摘要:Linux bash shell script block comment All In One Linux bash shell 脚本 多行注释 / 块级注释 阅读全文
posted @ 2022-06-14 17:34 xgqfrms 阅读(59) 评论(0) 推荐(0)
摘要:Linux bash shell script batch download files All In One Linux bash shell script 批量下载文件 All In One pdf crawler / pdf 爬虫 阅读全文
posted @ 2022-03-29 19:44 xgqfrms 阅读(129) 评论(6) 推荐(0)
摘要:Linux shell script bug and error All In One 未找到命令 ❌ shell 变量赋值=等号两边不能有空格 参数太多 ❌ 在 if 条件判断语句中, 使用双引号包裹变量 阅读全文
posted @ 2022-02-25 20:41 xgqfrms 阅读(75) 评论(4) 推荐(0)
摘要: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 脚本块注释 阅读全文
posted @ 2021-12-16 12:47 xgqfrms 阅读(57) 评论(8) 推荐(0)
摘要:Linux set command All In One $ set -eux # -e  若指令传回值不等于0,则立即退出shell。 # -u  当执行时使用到未定义过的变量,则显示错误信息。 # -x  执行指令后,会先显示该指令及所下的参数。 阅读全文
posted @ 2021-11-11 20:45 xgqfrms 阅读(50) 评论(2) 推荐(0)
摘要:Linux echo command All In One echo \n 换行 bash script 多行注释 EOF 阅读全文
posted @ 2021-10-14 21:27 xgqfrms 阅读(65) 评论(3) 推荐(0)
摘要:Linux echo 换行 All In One 2>&1 echo `\n` 换行 & EOF 多行注释 阅读全文
posted @ 2021-10-13 15:35 xgqfrms 阅读(388) 评论(9) 推荐(0)
摘要:Linux Bash shell 脚本定时器 All In One 自动化执行定时任务 crontab 阅读全文
posted @ 2021-10-09 10:25 xgqfrms 阅读(953) 评论(20) 推荐(0)
摘要:Linux System Variables All In One Linux 系统变量 阅读全文
posted @ 2021-09-24 11:47 xgqfrms 阅读(60) 评论(1) 推荐(0)
摘要:linux bash shell auto read write template 阅读全文
posted @ 2021-03-27 10:05 xgqfrms 阅读(88) 评论(0) 推荐(0)
摘要:Linux bash script read args All In OneLinux bash script read args All In One 阅读全文
posted @ 2021-02-19 18:49 xgqfrms 阅读(116) 评论(3) 推荐(0)
摘要:Linux Bash Script conditions syntax All In One shell 编程之条件判断 条件判断式语句、单分支 if 语句、双分支 if 语句、多分支 if 语句、case 语句 阅读全文
posted @ 2021-01-22 23:45 xgqfrms 阅读(96) 评论(0) 推荐(0)
摘要:Linux Bash Script loop syntax All In OneLinux Bash Script loop syntax All In One shell 编程之流程控制 for 循环、while 循环和 until 循环 阅读全文
posted @ 2021-01-22 23:44 xgqfrms 阅读(116) 评论(2) 推荐(0)
摘要:Linux shell script All In One 阅读全文
posted @ 2021-01-06 08:20 xgqfrms 阅读(111) 评论(2) 推荐(0)
摘要:如何通过 Linux terminal 查看一个文件的 meta 信息 All In One如何通过 Linux terminal 查看一个文件的 meta 信息 All In One 下载日期 阅读全文
posted @ 2020-09-24 10:42 xgqfrms 阅读(721) 评论(1) 推荐(0)
摘要:Linux shell uname -a All In OneLinux shell uname -a All In One man uname 阅读全文
posted @ 2020-09-01 22:47 xgqfrms 阅读(391) 评论(2) 推荐(0)
摘要:Linux shell command create file methods All In OneLinux shell command create file methods All In One HereDoc EOF 多行注释 阅读全文
posted @ 2020-08-09 12:42 xgqfrms 阅读(541) 评论(1) 推荐(0)
摘要:how to write string to file in linux bash All In One how to write string to file in bash 阅读全文
posted @ 2020-05-06 22:32 xgqfrms 阅读(173) 评论(3) 推荐(0)
摘要: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, 阅读全文
posted @ 2019-12-17 23:17 xgqfrms 阅读(164) 评论(6) 推荐(1)
摘要:Linux shell command copy file All In One 阅读全文
posted @ 2019-05-29 09:36 xgqfrms 阅读(23) 评论(1) 推荐(0)
摘要:Linux shell command & zip & tar All In One linux & zip & tar zip -r tree Level 阅读全文
posted @ 2018-09-27 17:01 xgqfrms 阅读(306) 评论(5) 推荐(0)
摘要:Linux shell command show project directory tree All In One Linux directory tree 阅读全文
posted @ 2018-09-26 11:02 xgqfrms 阅读(165) 评论(3) 推荐(1)
摘要:Linux shell commands man chmod All In One man chmod 777 阅读全文
posted @ 2018-08-28 23:04 xgqfrms 阅读(356) 评论(7) 推荐(0)
摘要:Linux & bash & shell & PID & PPIDLinux & bash & shell ps https://www.binarytides.com/linux-ps-command/ PID & PPID https://www.lifewire.com/uses-of-linux-ps-command-4058715 $ ps -ef | 阅读全文
posted @ 2018-08-07 23:02 xgqfrms 阅读(28) 评论(1) 推荐(1)
摘要:Linux bash shell All In OneLinux bash shell All In One Linux https://tinylab.gitbooks.io/shellbook/content/zh/chapters/01-chapter1.html https://github.com/qinjx/30min_guides/blo 阅读全文
posted @ 2018-08-06 22:27 xgqfrms 阅读(153) 评论(8) 推荐(0)
摘要:Linux shell command symbolic link & soft link All In One 符号链接 (软链接/硬链接) hard link soft link / symbolic link npm link bash 阅读全文
posted @ 2018-07-04 10:58 xgqfrms 阅读(260) 评论(2) 推荐(0)
摘要:Linux bash shell All In One terminal tools asciinema-player http verbs symbol link 阅读全文
posted @ 2018-07-03 11:26 xgqfrms 阅读(214) 评论(7) 推荐(0)
摘要:Linux shell (.sh 文件)基础命令 常用命令 汇总 shell,bash 阅读全文
posted @ 2016-04-04 10:30 xgqfrms 阅读(248) 评论(4) 推荐(0)
摘要: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 语句使用的是双层方括号 [[ ]] 条件修饰符, 变量就不需要引号了 阅读全文
posted @ 2023-09-22 15:49 xgqfrms 阅读(99) 评论(2) 推荐(0)
摘要: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 阅读全文
posted @ 2023-09-21 13:57 xgqfrms 阅读(42) 评论(4) 推荐(0)
摘要:Linux install vim errors All In One Vim raspbeery pi 树莓派 阅读全文
posted @ 2023-05-29 14:44 xgqfrms 阅读(99) 评论(2) 推荐(0)
摘要: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 阅读全文
posted @ 2023-04-16 12:12 xgqfrms 阅读(230) 评论(13) 推荐(0)