Skip to content

Tag: linux

Linux java, max disk space size of file

I want to ask, if: -Xms1000M -Xmx1000M Are commands for Java (Linux) for maximum file usage of RAM, is there opinion to do same with Disc space? Example to set max file size at running it, same as for RAM, just for HDD/SSD space. Thanks to all in advance. Answer First of all, the -Xms1000M and -Xmx1000M do no…

Shell append redirection replaces existing text?

For our school assignment, we have to implement input/output redirection. I managed to get the input and output redirection work, but I am facing an issue with append redirection. I am using testfile.txt: When the user types ls >> testfile.txt, I expect the output from ls to be added to the testfile. At…

fortran subroutine import in python fails

I am trying to import a fortran subroutine into python code. Following this guide https://notmatthancock.github.io/2017/02/10/calling-fortran-from-python.html I have added the following line into my fortran code: However when I try to use f2py -c fireball_ES_param.f -m fireball to create fireball.so to import…

What is the point of “grep -q”

I was reading the grep man page and came across the -q option, which tells grep to “not write anything to standard output. Exit immediately with zero status if any match is found, even if an error was detected.” I don’t understand why this could be desirable or useful behavior. In a program …