当前位置:网站首页>释放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
来源:简书
著作权归作者所有。商业转载请联系作者获得授权,非商业转载请注明出处。
边栏推荐
- [force buckle] single valued binary tree
- Visual saliency based visual gaze estimation
- 实验四 运算符重载和虚函数
- 伺服电机的电子齿轮比如何确定?
- 吴恩达机器学习第10-11章
- 斑点检测 记录
- 感知智能手机上用户的关注状态
- [force buckle] maximum depth of binary tree
- Preorder traversal of binary tree
- Preparation of blast Library of rust language from scratch (1) -- Introduction to the basics of blas
猜你喜欢
![[force buckle] realize stack with queue](/img/9b/8b09eb60ad1191a24eb31478620c07.png)
[force buckle] realize stack with queue

EOG based eye movement detection and gaze estimation for an asynchronous virtual keyboard

自下而上和自上而下的注意力:不同的过程和重叠的神经系统 2014sci

Perceive the attention status of users on smart phones

感知智能手機上用戶的關注狀態

《PyTorch深度学习实践》-B站 刘二大人-day7

Flip linked list

一种基于凝视的平板电脑手势控制系统的设计与实现

网络层及ip学习

深度优先遍历(Depth First Search, 简称 DFS)
随机推荐
三维凝视估计,没有明确的个人校准2018
F5LTM(一)逻辑关系图
Preorder traversal of binary tree
Arabic numerals to Chinese
[force buckle] copy the linked list with random pointer
#MySql MySql 计算今年有多少天周末(周六、日)
SeaChest Utilities 工具,让你的硬盘功耗又低又长寿
Vcenter6.7安装及排错
Face recognition error
5-17 hidden student services of Shaanxi University of science and technology
吴恩达机器学习第12-13章
TCP协议
Visual saliency based visual gaze estimation
阿拉伯数字转中文
Part of the second Shanxi Network Security Skills Competition (Enterprise Group) WP (I)
山西省第二届网络安全技能大赛(企业组)部分赛题WP(二)
Operation of documents in index library
《PyTorch深度学习实践》-B站 刘二大人-day7
Positional change of the eyeball during eye movements: evidence of translational movement
DSL implements bucket aggregation