编程语言:Shell
关联话题: Bash、Zsh
Bash 脚本 set 命令教程
服务器的开发和管理离不开 Bash 脚本,掌握它需要学习大量的细节。 set命令是 Bash 脚本的重要环节,却常常被忽视,导致脚本的安全性和可维护性出问题。本文介绍它的基本用法,让你可以更安心地使用 Bash 脚本。 一、简介 我们知道,
shell重定向输出(1>&2 2&>&1 &>file >&file)
在shell程序中,最常用的文件描述符FD(file descriptor)大概有三个: 0: 标准输入(stdin)1: 标准输出(stdout)2: 标准错误(stder...
利用Shell进行Web日志分析
File not found The site configured at this address does not contain the requested file. If this is your site, make sure that the filename case matches the URL as well as any file permissions. For root…