当前位置:网站首页>>/dev/null 2>&1 &
>/dev/null 2>&1 &
2022-07-19 17:14:00 【万里长江横渡】
在自定义的脚本文件中,执行jar包后经常用>/dev/null 2>&1 &
结尾
/dev/null:表示linux系统黑洞
标准输入0:从键盘获得输入 /proc/self/fd/0
标准输出1:输出到屏幕(控制台) /proc/self/fd/1
错误输出2: 输出到屏幕(控制台) /proc/self/fd/2、
正常写法为
1>/dev/null
2>/dev/null
表示1输出到linux系统黑洞,2输出到linux系统黑洞
简写为
>/dev/null 2>&1
表示:2给到1,1给到Linux系统黑洞
最末尾的&
表示在系统后台执行
>/dev/null 2>&1 &
整句话的意思:标准输出1给到linux黑洞,标准输出2给到1,整体在系统后台执行
边栏推荐
- s3c2440上的nor flash啟動與nand flash啟動的區別
- Arm assembly - BIC, Orr
- "Error in enabling windows function netfx3" (error cause, detailed analysis and solution) and installation on windows server2012 occur during the installation of SQL Server 2012 NET Framework 3
- 数组-sort用法(排序) 可以使用函数
- 玩转CANN目标检测与识别一站式方案【基础篇】
- 限制su命令与sudo机制提升 nmap和控制台命令netstat
- WPF DataGrid two lines with one color
- 标准C语言8 9
- 传统 token 方式和 jwt 在认证方面的差异
- DOM之事件
猜你喜欢
Build yourself an extremely simple but easy-to-use shame map station
Connor学JVM - 判断垃圾回收的方法
基于STM32的CAN通讯测试:让地球仪转起来
The industry's first "best practice map of live video technology" was released!
策略模式的一点思虑
Keil uVision5代码自动补全或代码联想
What is the basic principle of MySQL read / write separation
2021-07-05
Cloud machine close_ Reasons and solutions for excessive wait
Go language environment construction and samples
随机推荐
IIS上部署webService
科学计算库Numpy基础&提升(理解+重要函数讲解)
Essential skills of data query SQL tuning: under what circumstances does MySQL not go through the index
Set the database transaction isolation level
Go language environment construction and samples
ArcGIS custom coordinate system (taking Albers as an example)
【C语言】程序环境和预处理
IO流小总
【数组基础的增,删,改,查】
Cloud machine close_ Reasons and solutions for excessive wait
redhat安装过程及问题
快速排序代码实现
PIC16F877XA指令系统(汇编语言)
arm汇编—str指令
stm32——RTC实时时钟
fedora tftp 配置及测试方法
使用 Abp.Zero 搭建第三方登录模块(三):网页端开发
Detailed explanation of common response status codes in the development process
nmos和pmos区别、工作原理及基本结构详解
关于研发效能