合集-Linux Shell
摘要:
Linux shell command ln All In One
硬连接 vs 软连接
hard link
symbolic link
阅读全文
![](https://img2023.cnblogs.com/blog/740516/202306/740516-20230604213316149-186022989.png)
摘要:
Linux shell command cut All In One
cut 截取指定符号等号后面的字符串
cut 截取等号后面的字符串
阅读全文
![](https://img2023.cnblogs.com/blog/740516/202306/740516-20230604174921157-423341845.png)
摘要:
Linux shell standard input bugs All In One
warning: file 'standard input', around line 110: table wider than line width
阅读全文
![](https://img2023.cnblogs.com/blog/740516/202305/740516-20230531121144287-109236333.png)
摘要:
Linux shell command base64 All In One
email address encryption / 邮箱地址加密
应用场景
防止爬虫爬取邮箱地址发送垃圾邮件
base64 encode & decode
阅读全文
![](https://img2023.cnblogs.com/blog/740516/202305/740516-20230530221414287-1177995697.png)
摘要:
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
阅读全文
![](https://img2023.cnblogs.com/blog/740516/202305/740516-20230530192209906-715858986.png)
摘要:
Linux shell command make & Makefile All In One
脚本自动化构建工具
Makefile 是在 Linux 编程环境下 C/C++ 程序开发必须要掌握的一个工程管理文件;
当使用 make 命令去编译一个工程项目时,如果没有指定自定义的 Makefile 文件,make 才会首先到项目的根目录下去寻找默认文件名为 Makefile 的文件,然后再根据这个 Makefile 文件去执行编译程序;
阅读全文
![](https://img2023.cnblogs.com/blog/740516/202305/740516-20230523182938869-2061232526.png)
摘要:
Linux shell command strings All In One
打印文件(默认为标准输入) 中可打印的字符串
阅读全文
![](https://img2023.cnblogs.com/blog/740516/202305/740516-20230524171425894-2040050182.png)
摘要:
sudo & su & Rust All In One
阅读全文
![](https://img2023.cnblogs.com/blog/740516/202305/740516-20230507054322577-1047392214.png)
摘要:
Linux shell command make All In One
GPIO
WiringPi
CMake
阅读全文
![](https://img2023.cnblogs.com/blog/740516/202305/740516-20230503190711571-802176806.png)
摘要:
Linux shell script shebang env All In One
指定 shell script 的运行环境
#!/usr/bin/env bash
#!/usr/bin/bash
#!/bin/bash
阅读全文
![](https://img2023.cnblogs.com/blog/740516/202305/740516-20230503154608960-1722028877.png)
摘要:
Linux shell script switch...case All In One
case...in...esac
Linux shell shebang
阅读全文
![](https://img2023.cnblogs.com/blog/740516/202305/740516-20230503154132373-861681547.png)
摘要:
Linux shell command ls sort by date All In One
ls 按时间排序,最新的排在最前面
$ ls -t
$ ls --time
# reverse
$ ls -tr
阅读全文
![](https://img2023.cnblogs.com/blog/740516/202305/740516-20230502215005959-68461424.png)
摘要:
Linux shell script read file line by line All In One
Linux shell 脚本逐行读取文件
阅读全文
![](https://img2023.cnblogs.com/blog/740516/202304/740516-20230428152736700-1571630031.png)
摘要:
Linux shell regular expression All In One
Linux shell 正则表达式
word boundary
阅读全文
![](https://img2023.cnblogs.com/blog/740516/202304/740516-20230427120752457-1776481044.png)
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
阅读全文
![](https://i.stack.imgur.com/UCMiw.png)
摘要:
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
阅读全文
![](https://img2023.cnblogs.com/blog/740516/202304/740516-20230422144619047-695985732.png)
摘要:
Linux shell script redirection All In One
Linux shell 脚本重定向
PS: Linux 系统中一切皆文件 🚀, device 设备也是一种文件
&>/dev/null
把标准输出和错误输出,全部重定向到一个不存在的 device文件, 即忽略所有输出信息 ✅
2>&1
stdout 标准输出 & stderr 错误输出,二合一进行输出
阅读全文
![](https://img2023.cnblogs.com/blog/740516/202304/740516-20230420225454779-1958778665.png)
摘要:
How to use Linux shell command filter the IP address All In One
如何使用 Linux shell 命令过滤 IP 地址
Perl 5
阅读全文
![](https://img2023.cnblogs.com/blog/740516/202304/740516-20230417010156516-215916125.png)
摘要:
how to create one interactive mode command line configuration tool with shell language on Linux All In One
如何在 Linux 上用 shell 语言创建一个交互模式的命令行配置工具
raspi-config
阅读全文
![](https://img2023.cnblogs.com/blog/740516/202304/740516-20230414182156855-1493829457.png)
摘要:
Linux shell script get date and time All In One
Python get datetime
阅读全文
![](https://img2023.cnblogs.com/blog/740516/202304/740516-20230412115715730-1212743110.png)