当前位置:网站首页>释放nohup.out占用的磁盘空间
释放nohup.out占用的磁盘空间
2022-07-17 05:20:00 【阿卡基YUAN】
使用nohup启动的进程,会把所有标准输出的打印信息记录到nohup.out文件中。
如果进程长时间不结束,打印信息又多,nohup.out文件就会一直增长,直至磁盘爆满
此时,如果去rm nohup.out文件不会起效,因为进程open了文件,rm后,要进程退出才会close文件,才会真正释放磁盘空间
可以用lsof|grep delete来查询被rm但空间没有释放的文件
因此,要清理nohup.out文件占用的磁盘空间,不应该去rm文件,而应该清空文件内容,即
echo "" > nohup.out
作者:金琥
链接:https://www.jianshu.com/p/81d5edb78e02
来源:简书
著作权归作者所有。商业转载请联系作者获得授权,非商业转载请注明出处。
边栏推荐
- 二分查找及其引申
- F5LTM(一)逻辑关系图
- 剑指offer刷题
- Some problems encountered in work
- Es aggregation analysis reports an error: "reason": "text fields are not optimized for operations
- Arabic numerals to Chinese
- EOG based eye movement detection and gaze estimation for an asynchronous virtual keyboard
- CUDA与大数组的双调排序
- Vscode one dark and C extended variable color conflict settings JSON is as follows
- Mapping index attribute & operation of creating index
猜你喜欢
![[force buckle] realize stack with queue](/img/9b/8b09eb60ad1191a24eb31478620c07.png)
[force buckle] realize stack with queue

Sword finger offer brush questions

Read pictures and convert them to show different color spaces

吴恩达机器学习第8-9章

Restapi implementation of automatic completion & case implementation (search box input for automatic completion)

Learning video saliency from human gaze using candidate selection

机器学习篇-逻辑回归的分类预测

Using VOR depth estimation to solve the problem of target ambiguity in three-dimensional gaze interaction
![Open source online markdown editor -- [editor.md]](/img/f3/b37acf934aa2526d99c8f585b6f229.png)
Open source online markdown editor -- [editor.md]

使用候选选择从人类注视中学习视频显著性
随机推荐
C language specifies how many days to display from the date
山西省第二届网络安全技能大赛(企业组)部分赛题WP(二)
From entering URL to displaying page
吴恩达机器学习第8-9章
Busybox 1.21.1 has udpsvd function, which can be compiled successfully without interfering with the local busybox method
人脸识别错误
Experiment 5: Gui
Application of views and index files
Learning video saliency from human gaze using candidate selection
从零开始的 Rust 语言 blas 库之预备篇(2)—— blas 矩阵格式详解
wireshark抓包:错误分析
网络中的一些基本概念
用头部运动学习无姿态注视偏差
Mapping index attribute & operation of creating index
ORACLE分组排序后获取第一条和最后一条值
海量数据
从输入URL到展示出页面
二分查找及其引申
2022/07/12 learning notes (day05) cycle
Part of the second Shanxi Network Security Skills Competition (Enterprise Group) WP (III)