monitoring file changes + process access to files
I would like to see what’s happening in my app server folders, i.e. which files are changed by process x or which *.war files have been changed (replaced/created) in the last x minutes.
I would like to see what’s happening in my app server folders, i.e. which files are changed by process x or which *.war files have been changed (replaced/created) in the last x minutes.
When creating directories, mkdir -m <mode> <dir> provides for creating one or more directories with the given mode/permissions set (atomically).
I am currently rewriting upstart jobs to use systemd and I wanted to know:
I am trying to understand character special files. From wikipedia, I understand that these files
“provide an interface” for devices that transmit data one character at a time. My understanding is that the system somehow calls the character device instead of calling the device driver directly. But how does the file provide this interface? Is it an executable that translates the system call? Can someone explain what’s up.
I would like to compress a text file using gzip command line tool while keeping the original file. By default running the following command
I have a few files sized > 1 GB each. I need to remove last few bytes from the files. How can I do it? I prefer to edit file in place to save disk space.
I know that I can change the file a program writes to by interrupting the process in gdb, closing using the file descriptor and then re-opening with the file name I want. Is there a way to do the same thing at run time?
I would like to know how file types are known if filenames don’t have suffixes.
I tried following shell script which should replace spaces from all xml filenames