上一页 1 ··· 151 152 153 154 155 156 157 158 159 ··· 491 下一页
摘要: $PATH PATH is a global environment variable that represents a list of directories bash looks in for executable files. The executable files for bash co 阅读全文
posted @ 2021-02-11 15:25 Zhentiw 阅读(110) 评论(0) 推荐(0)
摘要: TypeScript can infer the type of a variable by looking at the data assigned to it. It also allows you to create a reusable type that it has inferred a 阅读全文
posted @ 2021-02-10 20:11 Zhentiw 阅读(72) 评论(0) 推荐(0)
摘要: You can use the non-null assertion operator in TypeScript to take a typed variable and remove the undefined and null types from it. In this lesson, we 阅读全文
posted @ 2021-02-10 17:18 Zhentiw 阅读(101) 评论(0) 推荐(0)
摘要: Pipes (|) are one of the most powerful features in bash and allow you to efficiently chain commands together and send data through it. We'll also look 阅读全文
posted @ 2021-02-09 03:09 Zhentiw 阅读(44) 评论(0) 推荐(0)
摘要: Knowing how conditionals work in bash open up a world of scripting possibilities. We’ll learn the basic syntax, including if, else, and elif. Then we' 阅读全文
posted @ 2021-02-09 03:04 Zhentiw 阅读(47) 评论(0) 推荐(0)
摘要: Every command in bash returns an exit status, which is an integer between 0 and 255 that represents whether the command succeeded or failed, and if it 阅读全文
posted @ 2021-02-08 21:39 Zhentiw 阅读(58) 评论(0) 推荐(0)
摘要: Chmod ## Create a file vim script.sh ## output some content echo "Hello World" ## Run the script ./script.sh It ouput permission denied: ./script.sh. 阅读全文
posted @ 2021-02-08 21:23 Zhentiw 阅读(113) 评论(0) 推荐(0)
摘要: Create a script See Chmod.md, how to create a sh file and modify premisson to exec mode. Parameters Paramters are referred by $1, $2.... For example: 阅读全文
posted @ 2021-02-08 21:22 Zhentiw 阅读(89) 评论(0) 推荐(0)
摘要: Open folder When you want to open a folder in Finder, for example your current folder: open . open .git ## you can open the hidden folder Create folde 阅读全文
posted @ 2021-02-08 20:51 Zhentiw 阅读(81) 评论(0) 推荐(0)
摘要: Viewing file Viewing the whole file: cat package.json Viewing the whole file with line number cat -n package.json Viewing the file with pagination les 阅读全文
posted @ 2021-02-08 16:47 Zhentiw 阅读(68) 评论(0) 推荐(0)
上一页 1 ··· 151 152 153 154 155 156 157 158 159 ··· 491 下一页