Shell 脚本中的循环语句

Linux Notes

2017.11.13

Shell 脚本中的循环语句

结构化循环命令在编程中很常见。通常需要重复一组命令直到触及某个特定条件。比如处理某个目录下的所有文件、系统上的所有用户或某个文本文件中的所有内容。bash shell 提供了三个常用的循环命令 for、while 和 until,就来好好研究研究吧。

Shell 文件测试比较

Linux Notes

2017.11.08

Shell 文件测试比较

这些测试条件使你能够在 shell 脚本中检查文件系统中的文件。它们经常出现在需要进行文件访问的脚本中。

Bootstrap cards for showing colours

Web Notes

2017.11.06

Bootstrap cards for showing colours

A few days ago, I built a website for showing traditional Chinese colours with bootstrap cards. Several issues I encountered during this process, just write them down for records.

Upgrade Ruby to the lastest version on MacOS with Homebrew

Tutorials

2017.10.26

Upgrade Ruby to the lastest version on MacOS with Homebrew

Recently when installing some gems, it popped out errors that telling the Ruby version is lower than required... I have to upgrade the shipped Ruby, version 2.0.0p648 (2015-12-16 revision 53162), on my machine. There are a few methods dealing with this, but I found the easiest way is using Homebrew.

Linux 文件权限

Linux Notes

2017.10.07

Linux 文件权限

Linux 采用复杂的位系统来判定文件和目录的访问权限。每个文件都有三个安全等级:文件的属主、能够访问文件的默认属组以及系统上的其他用户。每个安全等级通过三个访问权限位来定义:读取、写入以及执行,对应于符号 rwx。如果某种权限被拒绝,权限对应的符号会用单破折线代替。

Shell 中监测程序进程

Linux Notes

2017.10.04

Shell 中监测程序进程

当程序在系统上运行时,会开启一个进程(process)。可以通过 ps 命令输出进程的许多信息,但是 ps 有数不清的可选参数,让 ps 成为最难掌握的命令之一。当然,熟悉并掌握一组常用参数满足需要就可以了。

为页面自动添加二维码

Web Notes

2017.09.27

为页面自动添加二维码

很早之前我也在博客分享按钮里面添加过二维码,后来换了模板就舍弃了。这次修改这个博客主题,又尝试加回来,鼓捣鼓捣也可以扫一扫了!

Ads by Google