September 19, 2020
shell
脚本
linux 压缩
Linux不靠扩展名区分文件类型,而是靠权限扩展名,了解正确的压缩格式,才能采用正确的解压缩命令
zip vs unzip
/usr/bin/zip 所有用户均可执行 1234567zip [-options] [-b path] [-t m ...
Read more
September 18, 2020
python
python 介绍
2.x 与 3.x 版本不兼容, 存在以下主要不同,本问介绍基于Mac下Python3.x版本:
1. 使用__future__模块2. print函数3. 整数除法4. Unicode5. xrange6. 触发异常7. 处理异常8. next()函数和.next() ...
Read more
September 18, 2020
shell
脚本
linux 命令查看命令帮助
help info man or –help ,功能强度排序: help(只能内置命令) < man < info
内置命令
man help 查看内置命令列表
123456bash, :, ., [, alias, bg, b ...
Read more
September 10, 2020
shell
脚本
别名管理
别名使用,加快输入,不同命令解析,对应不同配置
Bash – ~/.bashrc
ZSH – ~/.zshrc
Fish – ~/.config/fish/config.fish
查看别名1alias
临时别名 12345 ...
Read more
September 9, 2020
serverless
serverless安装Mac|Linux1curl -o- -L https://slss.io/install | bash
Windows12choco install serverlesschoco upgrade serverless
Npm方法12345# 安装 serverle ...
Read more
September 8, 2020
shell
脚本
for 循环结构1234for i [in { }] # 范围do 循环执行logicdone
循环输出用户输入12345678# 默认去 $@,取所有位置变量值for i do echo $idone$ ./for_test.sh 1,2,3,3,000,2331,2 ...
Read more