linux 基础学习之四:shell脚本学习(1)

1、shell脚本概述 什么是 shell script 呢?  shell 我们在 认识 bash 当中已经提过了,那是一个文字接口底下让我们与系统沟通的一个工具接口,那么 script 是啥? 字面上的意义, script 是『脚本、剧本』的意思。整句话是说, shell script...

linux 基础学习之三:bash shell初识 下

5、变量键盘读取、数组与宣告: read, array, declare read:用于读取键盘输入的变量,常用在shell script的编写当中,下面先看基本功能: [root@linux ~]# read [-pt] variable 参数:-p :后面可以接提示字符!-t :后面可...

Linux Shell 编程

4 课时 |
2099 人已学 |
免费

Shell 脚本进阶

8 课时 |
903 人已学 |
免费

Linux Shell 编程入门与实战

5 课时 |
13348 人已学 |
免费
开发者课程背景图

linux 基础学习之三:bash shell初识 上

1·、bash shell的功能 • 命令编修能力(类似 DOS 的 doskey 功能): 只要在指令列按『上下键』就可以找到前一个输入的指令!而在很多 distribution 里头,预设的指令记忆功能可以到达 1000 个!也就是说, 你曾经下达过的指令都被记录下来了,记录的档案在你的家目录内...

70、linux shell常用函数,head

1、head - output the first part of files head [OPTION]... [FILE]... 2、option ① -c, --bytes=[-]N:print the first N bytes of each file; ② -n, --lines=[-]...

69、linux shell常用函数,tail

1、tail - output the last part of files tail [OPTION][+/-num]... [FILE]... 2、option ① -f,:output appended data as the file grows; ② -s, :with -f, sleep...

52、linux shell,查找

1、which which - shows the full path of (shell) commands. which [option] 2、whereis whereis - locate the binary, source, and manual page files for a com...

51、linux shell命令,route,ifconfig

3、route 1)route [-nee] route add [-net|-host] [网域或主机] netmask [mask] [gw|dev] route del [-net|-host] [网域或主机] netmask [mask] [gw|dev] 2)option ① -n:不使用...

50、linux shell命令,netstat,traceroute

1、netstat 1) netstat [option] 与路由 (route) 有关的参数说明: ① -r:列出路由表(route table),功能如同 route 这个指令; ② -n:不使用主机名称与服务名称,使用 IP 与 port number,如同 route -n 与网络界面有关的...

49、linux shell命令,host,nslookup,dig

1、host 1)DNS lookup utility host option {name} [server] 使用 /etc/resolv.conf 中server来作为 DNS 服务器的来源选择 2)option -a :列出该主机详细的各项主机名称设定资料 3)示例 host www.goog...

47、linux shell,ln链接

1、同一个文件创建多个入口或访问点。 1)硬链接:原文件名和连接文件名都指向相同的物理地址,即原文件和硬连接文件是同一个文件(不是复制),两个文件占用相同的索引接点(相当于引用计数加1)。为文件创建一个硬连接后,文件的连接数加1。目录不能有硬链接。不能跨文件系统。    ...

本页面内关键词为智能算法引擎基于机器学习所生成,如有任何问题,可在页面下方点击"联系我们"与我们沟通。

产品推荐

相关电子书
更多
Shell 脚本速查手册
立即下载