Tag Info

New answers tagged


Gedit reads the file into memory then closes the file handle. Typically: open("/path/to/your/file", O_RDONLY|O_LARGEFILE|O_NOATIME) = 18 read(18, "blah blah blah"..., 4096) = 305 close(18) = 0 or some mmap or other way. (Not sure how exactly it reads files, but point is that it does not keep the files open.) After this it keeps ...


I can't be sure without seeing your actual output but the likeliest explanation is that 27017 appears in different places. Your first command will list files for the process with PID 5253, then prints all lines that contain 27017 anywhere in the line. Your second command will print all open files and then, again, you are selecting all lines that contain ...

Top 50 recent answers are included