分类
善良比聪明更重要
Shell 快捷键速查 Shell 快捷键速查
在终端里熟练使用快捷键,能大幅减少手在键盘和鼠标之间来回移动的时间。本文按功能对 Bash 中常用的 Ctrl 快捷键进行分组整理,方便速查。特别提醒:Ctrl+D 在不同语境下有两种完全不同的含义,文末会单独说明。 光标移动 快捷键
2020-11-01
Shell 脚本条件判断详解 Shell 脚本条件判断详解
条件判断是 Shell 脚本流程控制的基石。本文系统整理 if 语句的基本语法、[ ] 中的各类测试条件,以及 (( )) 和 [[ ]] 这两种高级写法,并附上常见用法示例。 基本语法if [ command ]; then 符合
2020-10-25
Shell 基础语法:变量、条件、循环与函数 Shell 基础语法:变量、条件、循环与函数
Shell 脚本是 Linux 运维和日常开发中最常用的自动化工具。本文整理 Shell 最基础的语法知识:变量的定义与引用、字符串操作、条件判断、循环、函数,以及一个脚本究竟有哪几种执行方式、它们之间有什么区别。 变量的定义与引用变量名由
2020-10-18
A Guided Tour A Guided Tour
A Guided TourIt’s time to take our tour. The table below lists some interesting places to explore. This is by no means a
2020-10-11
Looking Around Looking Around
Looking AroundNow that you know how to move from working directory to working directory, we’re going to take a tour of y
2020-10-04
Navigation Navigation
NavigationIn this lesson, I will introduce your first three commands: pwd (print working directory), cd (change director
2020-09-27
Learning the Shell Learning the Shell
Why Bother?Why do you need to learn the command line anyway? Well, let me tell you a story. A few years ago we had a pro
2020-09-20
What is the Shell? What is the Shell?
What Is “The Shell”?Simply put, the shell is a program that takes commands from the keyboard and gives them to the opera
2020-09-13
2 / 2