Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
醒狮指南
JavaGuide
提交
bff76b0f
J
JavaGuide
项目概览
醒狮指南
/
JavaGuide
与 Fork 源项目一致
从无法访问的项目Fork
通知
5
Star
1
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
J
JavaGuide
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
体验新版 GitCode,发现更多精彩内容 >>
提交
bff76b0f
编写于
7月 19, 2019
作者:
Y
yellowgg
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
fix:拼写错误->操作系统篇
上级
ef53ce3d
变更
2
隐藏空白更改
内联
并排
Showing
2 changed file
with
2 addition
and
2 deletion
+2
-2
docs/operating-system/Shell.md
docs/operating-system/Shell.md
+1
-1
docs/operating-system/后端程序员必备的Linux基础知识.md
docs/operating-system/后端程序员必备的Linux基础知识.md
+1
-1
未找到文件。
docs/operating-system/Shell.md
浏览文件 @
bff76b0f
...
...
@@ -78,7 +78,7 @@ echo "helloworld!"
shell中 # 符号表示注释。
**shell 的第一行比较特殊,一般都会以#!开始来指定使用的 shell 类型。在linux中,除了bash shell以外,还有很多版本的shell, 例如zsh、dash等等...不过bash shell还是我们使用最多的。**
(4) 运行脚本:
`./helloworld.sh`
。(注意,一定要写成
`./helloworld.sh`
,而不是
`helloworld.sh`
,运行其它二进制的程序也一样,直接写
`helloworld.sh`
,linux 系统会去 PATH 里寻找有没有叫
test
.sh 的,而只有 /bin, /sbin, /usr/bin,/usr/sbin 等在 PATH 里,你的当前目录通常不在 PATH 里,所以写成
`helloworld.sh`
是会找不到命令的,要用
`./helloworld.sh`
告诉系统说,就在当前目录找。)
(4) 运行脚本:
`./helloworld.sh`
。(注意,一定要写成
`./helloworld.sh`
,而不是
`helloworld.sh`
,运行其它二进制的程序也一样,直接写
`helloworld.sh`
,linux 系统会去 PATH 里寻找有没有叫
helloworld
.sh 的,而只有 /bin, /sbin, /usr/bin,/usr/sbin 等在 PATH 里,你的当前目录通常不在 PATH 里,所以写成
`helloworld.sh`
是会找不到命令的,要用
`./helloworld.sh`
告诉系统说,就在当前目录找。)
![
shell 编程Hello World
](
http://my-blog-to-use.oss-cn-beijing.aliyuncs.com/18-11-16/55296212.jpg
)
...
...
docs/operating-system/后端程序员必备的Linux基础知识.md
浏览文件 @
bff76b0f
...
...
@@ -206,7 +206,7 @@ Linux中的打包文件一般是以.tar结尾的,压缩的命令一般是以.g
1 将/test下的test.tar.gz解压到当前目录下可以使用命令:
**`tar -xvf test.tar.gz`**
2 将/test下的test.tar.gz解压到根目录/usr下:
**`tar -xvf
xxx
.tar.gz -C /usr`**
(- C代表指定解压的位置)
2 将/test下的test.tar.gz解压到根目录/usr下:
**`tar -xvf
test
.tar.gz -C /usr`**
(- C代表指定解压的位置)
### 4.5 Linux的权限命令
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录