当前位置:网站首页>Shell instruction learning 1
Shell instruction learning 1
2022-04-23 05:37:00 【mg1507】
1、 shell The role of
- Automatic batch system initialization program (update, Software installation , Time zone settings , The security policy …);
- Automated bulk software deployment program ;(LAMP/LNMP/Tomcat/LVS/Nginx);
- Manage applications (KVM、 Cluster management expansion 、MySQL);
- Log analysis handler (PV、UV、200、!200、grep/awk);
- Automated backup recovery procedures (MySQL Full backup / The incremental +Crond)…
2、echo $? Output return value , If correct, it is 0, Not 0 Represents a mistake .
3、 command 1 && command 2 && Have logical judgment , When ordered 1 If the execution is successful, execute the command 2.
4、 command 1 || command 2 When ordered 1 Execution failure , Order 2 perform .
5、&> Redirect mixed output , Including standard output and error output .
# Output useless information to /dev/null
&> /dev/null
6、sh Script ,bash xxx.sh perform sh xxx.sh It can also be executed .
7、 If you execute through a path , Need to add permission chmod +x xxx.sh.
8、shell The beginning of the script usually says :#!/usr/bin/bash Its effect is : Define which interpreter the program uses to execute .
9、 Merge two files cat xx1 >> xx2,> Redirect normal information , Redirection is to overwrite the original file ,>> It is to add .
10、& Indicates that the task is executed in the background .
版权声明
本文为[mg1507]所创,转载请带上原文链接,感谢
https://yzsam.com/2022/04/202204230530305350.html
边栏推荐
- catkin_package到底干了什么
- 如果我是pm之 演出电影vr购票展示
- Sword finger offer II 022 The entry node of the link in the linked list
- Excel sets row and column colors according to cell contents
- Use pagoda + Xdebug + vscode to debug code remotely
- Utf8 to STD: string and STD: string to utf8
- [the background color changes after clicking a line]
- QT drawpixmap and DrawImage blur problem
- 可执行程序执行流程
- Flutter nouvelle génération de rendu graphique Impeller
猜你喜欢

Hongji | how does HR carry out self change and organizational change in the digital era?

C language - Spoof shutdown applet

C语言——恶搞关机小程序

‘EddiesObservations‘ object has no attribute ‘filled‘

Excel sets row and column colors according to cell contents

3d slicer中拉直体的生成

QT drawpixmap and DrawImage blur problem

Hongji micro classroom | cyclone RPA's "flexible digital employee" actuator

The 8th Blue Bridge Cup 2017 - frog jumping cup

Differences between sea level anatomy and sea surface height anatomy
随机推荐
字符识别easyocr
Camera imaging + homography transformation + camera calibration + stereo correction
Self incrementing sequence creation of MySQL
Xiuxian real world and game world
创建进程内存管理copy_mm - 进程与线程(九)
Several examples of pointer transfer, parameter transfer, value transfer, etc
Utf8 to STD: string and STD: string to utf8
如果我是pm之 演出电影vr购票展示
Redis in node -- ioredis
qt. qpa. plugin: Could not find the Qt platform plugin “xcb“ in ““
shell指令学习1
Arithmetic and logical operations
The title bar will be pushed to coincide with the status bar
Three methods of list rendering
Understand the relationship between promise async await
Markdown syntax support test
修仙真实世界与游戏世界
World and personal development
提升Facebook触及率和互动率攻略 | 智能客服帮您抓住用户的心
Flutter 新一代图形渲染器 Impeller