Skip to content

Magenaut

  • Home
  • Topics
    • Notes
    • Tutorial
    • Bug fixing
    • Extension
    • Server
  • Q&A
  • Privacy Policy
  • About

open-files

Why does process substitution result in a file called /dev/fd/63 which is a pipe?

August 11, 2022 by Magenaut

I am trying to understand named pipes in the context of this particular example.

Categories Q&A, Unix & Linux Tags open-files, pipe, process, process-substitution Leave a comment

How can same fd in different processes point to the same file?

August 10, 2022 by Magenaut

Say I have process 1 and process 2. Both have a file descriptor corresponding to the integer 4.

Categories Q&A, Unix & Linux Tags file-descriptors, kernel, open-files Leave a comment

How do open files behave on linux systems?

August 10, 2022 by Magenaut

I just renamed a log file to “foo.log.old”, and assumed that the application will start writing a new logfile at “foo.log”. I was surprised to discover that it tracked the logfile to its new name, and kept appending lines to “foo.log.old”.

Categories Q&A, Unix & Linux Tags files, open-files, rename Leave a comment

File permissions and saving

August 9, 2022 by Magenaut

Let’s say you open a file on which you have write permission.
Meanwhile you change permissions and remove write permission while you still have the file open in some editor.

Categories Q&A, Unix & Linux Tags open-files, permissions Leave a comment

ulimit: difference between hard and soft limits

August 9, 2022 by Magenaut

What is the difference between hard and soft limits in ulimit?

Categories Q&A, Unix & Linux Tags open-files, ulimit Leave a comment

How do I “cat and follow” a file?

August 9, 2022 by Magenaut

A file is being sequentially downloaded by wget.

Categories Q&A, Unix & Linux Tags cat, files, open-files, pipe, tail Leave a comment

How can I access a deleted open file on Linux (output of a running crontab task)?

August 8, 2022 by Magenaut

I have an hourly hour-long crontab job running with some mtr (traceroute) output every 10 minutes (that is going to go for over an hour prior to it being emailed back to me), and I want to see the current progress thus far.

Categories Q&A, Unix & Linux Tags data-recovery, deleted-files, linux, open-files Leave a comment

Why is number of open files limited in Linux?

August 8, 2022 by Magenaut

Right now, I know how to:

Categories Q&A, Unix & Linux Tags limit, open-files Leave a comment

How do I tell a script to wait for a process to start accepting requests on a port?

August 7, 2022 by Magenaut

I need a command that will wait for a process to start accepting requests on a specific port.

Categories Q&A, Unix & Linux Tags networking, open-files, process, shell Leave a comment

How to list the open file descriptors (and the files they refer to) in my current bash session

August 7, 2022 by Magenaut

I am running in an interactive bash session. I have created some file descriptors, using exec, and I would like to list what is the current status of my bash session.

Categories Q&A, Unix & Linux Tags bash, file-descriptors, linux, open-files Leave a comment
Older posts
Page1 Page2 Next →
  1. michealSmith07 on Is there a way to dynamically refresh the less command?August 21, 2022

    That is a very nice post. I like this post.

  2. anonymous on Fix libwacom9 dependency issue when upgrade DebianJune 27, 2022

    saved my day!! Thanks for the help…

  3. sreedhar on Fix libwacom9 dependency issue when upgrade DebianMay 10, 2022

    Thanks its working

  4. saintnick on Fix libwacom9 dependency issue when upgrade DebianMay 10, 2022

    remove libwacom2 worked for me as well

  5. ranafoul on Fix libwacom9 dependency issue when upgrade DebianApril 22, 2022

    apt remove libwacom2 helped on kali 2022.01. gr8

.net ajax asp.net asp.net-core asp.net-mvc asp.net-mvc-3 asp.net-mvc-4 asp.net-web-api bash c# command-line css custom-post-types custom-taxonomy dataframe dictionary django entity-framework functions gridview html iis javascript jquery json linux list matplotlib numpy pandas php plugin-development plugins posts python python-2.7 python-3.x security shell shell-script sql string vb.net webforms wp-query

© 2026 Magenaut • Built with GeneratePress