Skip to content

Unable to find who made changes to file

In linux, I have a file which is modified by someone and we are trying to track down – can you please tell which is the best way to find out how it modified . But the point is account name which we used to login is same for all. lets say test account. Thanks Answer only way to find

Finding difference between 2 directories in linux

Hi guys, dir1/subdir/file.txt dir2/subdir/nffile.txt when i tried with “diff -r dir1 dir2” it shows only the content difference in files but i want interns of new file addition. Any possibility that we can find the difference between these dir using the “diff” command. Answer Try out u…

mount fails from spawned process

I want to start a process that uses a USB hard drive once it gets inserted. Since UDEV rules specifically mentions not to run long-time processes from RUN command, I send a FIFO message to my service which then opens the relevant process. So the flow goes like this: UDEV > runs action process > sends FI…

C: strtok and newlines in Windows vs Linux

I’m working on a C school assignment that is intended to be done on Windows, however, I’m programming it on OS X. While the other students working on Windows don’t have problems reading a file, I do. The code provided by the tutors splits the contents of a file on n using this code: However,…

Using linux system commands in R to remove special characters

I’m trying to clean files using linux system commands in R I would like to use a command that removes special characters apart from the file separator (pipe delimited) In the example below it’s the slashes and additional quotation marks that I’m trying to get rid of I’ve used the comma…