当前位置:网站首页>Script execution mode
Script execution mode
2022-07-22 21:26:00 【Ten at eight】
1、Shell What is it?
Shell It's a command line interpreter , It provides a way for users to Linux The kernel sends requests to run the program's interface system level program , Users can use Shell To start up , Hang up , Stop even writing some programs .
Shell It is also a powerful programming language , Easy to write , Easy to debug , More flexibility .Shell It's the script language that explains the execution , stay Shell You can call Linux System commands .
3、/etc/shells ----- Inquire about Linux Supported by Shell
1、echo The output command
#echo [ Options ] [ Output content ]
-e : Support character conversion of backslash control
\\ Output \ In itself
\a Output warning tone
\b backspace , That is to say, the left delete key
\c Cancel the line break at the end of the output line . and “-n” Consistent options
\e escape key
\f Page identifier 、
\n A newline
\r Enter key
\t tabs , That is to say Tab key
\v Vertical tabs
\0nnn According to octal ASCII Code table output characters . among 0 Is the number zero ,nnn It's a three digit octal number
\xhh In hexadecimal ASCII Code table output characters . among hh It's two hexadecimal numbers
give an example :echo -e "\e[1;31m abcd\e[0m" ------ Representative to 31m Color output abcd.
2、 The first script
#vi hello.sh ( Find the specific text content in this machine )
3、 Script execution
Grant execution permission , Direct operation
$chmod 755 hello.sh
$./hello.sh
adopt Bash Call the execution script
$Bash hello.sh
边栏推荐
- BUUCTF闯关日记--[MRCTF2020]Ezpop1
- MySQL connection query using Convert in on causes the number of scan lines to increase
- Bash基本功能—通配符和其他特殊符号
- [lttng learning journey] - trace control - Preliminary
- [pytorch deep learning practice] learning notes section III gradient decline
- 如何做好研发精益需求管理
- Nssctf-01-[swpuctf 2021 freshman competition]gift_ F12
- 6.管理服务器和服务
- JUC-6.3-并发容器-队列
- 2020中南大学信息与通信夏令营面试
猜你喜欢
随机推荐
matlab中 FFT 的意义 学习记录
[LTTng学习之旅]------Trace控制--初阶
Using simple JS to realize arc layout
环境变量配置文件
Human stars website collection plan -- Michael kerrisk
JUC-7.1-线程协作-Semaphore
使用简单的js实现圆弧布局
Double pointer in linked list -- fast and slow pointer
Juc-6.2-concurrency container copyonwritearraylist
[lttng learning journey] ----- components of lttng deconstruction
[GXYCTF2019]BabyUpload1
如何做好研发精益需求管理
[LTTng学习之旅]------环境搭建
Buuctf breakthrough diary -- [netding cup 2020 Qinglong group]areuserialz
6.管理服务器和服务
【PyTorch深度学习实践】学习笔记 第三节 梯度下降
About dichotomy
How to do research and development lean demand management well
Juc-7.2-thread collaboration condition
[LTTng实操]------设计一套东西监控某周期运行用户程序的执行时间和周期--需求分析和方案设计