Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Tool which shows me which files are written in Linux?

Tags:

file

linux

iostat

I found in IOStat, that some part of my application is writing extensively, but I don't know which process it is and what files it is writing to. In Vista there is a tool fo that which shows the files that have been active in the last 30 Seconds. Is there something similar for Linux?

like image 406
smint Avatar asked Jul 25 '09 20:07

smint


People also ask

How do I see what is written in a file in Linux?

Cat. The simplest way to view text files in Linux is the cat command. It displays the complete contents in the command line without using inputs to scroll through it. Here is an example of using the cat command to view the Linux version by displaying the contents of the /proc/version file.

How do I find out who created a file in Linux?

A. You can use ls -l command (list information about the FILEs) to find our the file / directory owner and group names. The -l option is known as long format which displays Unix / Linux / BSD file types, permissions, number of hard links, owner, group, size, date, and filename.


1 Answers

strace -e trace=file -- <command>

will show you exactly what files your application is reading and writong

like image 52
PiedPiper Avatar answered Sep 29 '22 09:09

PiedPiper