无法将管道更改为普通文件(Unable to change a pipe to be a normal file)

编程入门 行业动态 更新时间:2024-10-21 06:41:18
无法将管道更改为普通文件(Unable to change a pipe to be a normal file)

我有以下文件(上图),它似乎是Unix管道替代文本http://dl.getdropbox.com/u/175564/problemFile.png

你如何使管道成为默认的文本文件

I have the following file (above) which seems to be an Unix pipe alt text http://dl.getdropbox.com/u/175564/problemFile.png

How can you make the pipe a default text file?

最满意答案

除非还有其他一些尚未提及的复杂因素,否则最简单的方法就是使用大锤子:

$ rm outside $ touch outside

如果当前正在使用该文件的进程,则需要首先终止该进程,然后重新启动该进程以使用该新文件。 否则,管道将保持打开状态,但不可见,直到过程最终死亡。

Unless there is some other complication that hasn't been mentioned, the easiest is to use the big hammer:

$ rm outside $ touch outside

If there is a process currently using the file, you will need to kill the process first, then restart it so it uses the new file. Otherwise, the pipe will stay open but invisible until the process finally dies.

更多推荐

本文发布于:2023-08-06 14:01:00,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1450345.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:管道   文件   Unable   change   normal

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!