Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 2 years ago.
Improve this question
Do you know of any linux program, that would monitor accesses to directories and files in the filesystem? I would like to able to produce some report of how many times certain files were accessed in some period?
You probably want inotify-tools. Inotify is part of the linux kernal that triggers events on watched files, directories, or even the contents of entire directories. These tools are command line utilities that tap into the capabilities of inotify and allow you to use them, for example, in your shell scripts.
Specifically, you will probably want to look at inotifywatch
Related
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 2 years ago.
Improve this question
You have a 700GB text file on a 1TB drive. You need to remove the first 300k lines from the file.
Your computer has 16GB of memory and you do not have any other storage.
How do you solve this task? What tools would you use and what are the risks?
Can anyone give me a solution/hints?
I suggest that you can use the split command (Linux/Unix).
You'll be able to open a certain amount of lines and edit them.
Then merge them back to the original file.
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 7 years ago.
Improve this question
I have a few hundred audio files of spoken lectures. I need a piece of software I can call from the command line to process the audio in various ways e.g. changing format, normalising, etc.
So far I have tried to batch process files using Audacity using a chain as detailed in this video. However, this is not satisfactory as I can't call this from command line (and therefore batch process files in a flexible way adapting to size/filetype etc.).
Are you able to point towards any software that can do this kind of audio processing from the command line?
Depending on your requirements, you don't always have the use Audacity.
You can use SOX in order to achieve what you are trying to do in terms of getting the file information of an audio file, as well as carry out compression.
sox long.mp3 short.mp3 trim 10
For comparison etc..
To expand, you can use a bash script, to iterate through each of the files in a directory and then run the command on each of the files.
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 7 years ago.
Improve this question
Where can I find the time bash utility source code? Is there a website that allows to search for this code?
The time command is from the GNU project, so all of the source code is available there.
Specifically, you are probably looking for this: http://ftpmirror.gnu.org/time/
The time command in Bash is built-in, so it should be found in the GNU Bash source code.
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 8 years ago.
Improve this question
I can also settle for a web-based interface, but a good command-line tool is preferable. Now, I have tried to use xsd.exe that comes with mono-devel, but that skipped a whole bunch of stuff that was mentioned in the xml file.
I understand that I will need to hand-tweak the output, but I do want something decent to start with.
Try the tool that comes with the spring framework:
http://www.dotkam.com/2008/05/28/generate-xsd-from-xml/
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 5 years ago.
Improve this question
I am looking for a linux api that returns me information about root filesystem.
I can use command stat -f / to get information about root filesystem. Is there any API that returns exactly same information as returned by "stat -f" command ?
statvfs, link goes to a manpage.
Next time when you need to know API than does the same thing like a shell command you can use strace. Like this: strace stat -f / and see what calls do command. On my system it calls statfs64.