As it currently stands, this question is not a good fit for our Q&A format. We expect answers to be supported by facts, references, or expertise, but this question will likely solicit debate, arguments, polling, or extended discussion. If you feel that this question can be improved and possibly reopened, visit the help center for guidance.
Closed 9 years ago.
If I ran this command
#fsck
without arguments or options. Will it delete everything?
Normally, fsck will not cause any harm, unless you try to run it over mounted filesystem.
fsck over mounted filesystem will ask you if you want to proceed. And if you force it to proceed, then it is most likely to be very destructive. I have seen other people to use fsck this way and completely thrash Linux to the point that reinstall was necessary.
Related
As it currently stands, this question is not a good fit for our Q&A format. We expect answers to be supported by facts, references, or expertise, but this question will likely solicit debate, arguments, polling, or extended discussion. If you feel that this question can be improved and possibly reopened, visit the help center for guidance.
Closed 9 years ago.
If you open sublime-text in Linux Mint, which of exec() or system() gets called?
You can use strace to track the system calls made a program:
$ strace -o mystrace.log sublime-text
That will output a chronological list of the system calls traced to the file mystrace.log. The first system call in the log will probably answer your question: typically, a variant of exec* is called such as execve.
If you're curious about how executable binary files actually run however, check out the differences between raw binary and ELF files.
As it currently stands, this question is not a good fit for our Q&A format. We expect answers to be supported by facts, references, or expertise, but this question will likely solicit debate, arguments, polling, or extended discussion. If you feel that this question can be improved and possibly reopened, visit the help center for guidance.
Closed 9 years ago.
I'm browsing through the source code of the GNU/Linux program top. I am trying to understand how it calculates the CPU usage by each process, but I'm not having much luck.
The source code in question is over at GitHub.
Like everything else in the procps toolkit, the data comes from the /proc virtual filesystem, managed by the OS and the Linux kernel. There is no "calculation" involved at all.
As it currently stands, this question is not a good fit for our Q&A format. We expect answers to be supported by facts, references, or expertise, but this question will likely solicit debate, arguments, polling, or extended discussion. If you feel that this question can be improved and possibly reopened, visit the help center for guidance.
Closed 10 years ago.
Tell me please the distribution with the most clear from patches kernel. I wanna try myself in kernel-module writing, and i suppose that a heavily-patched kernel can interfere me. thanks
The most vanilla distribution that I know of is Slackware.
As it currently stands, this question is not a good fit for our Q&A format. We expect answers to be supported by facts, references, or expertise, but this question will likely solicit debate, arguments, polling, or extended discussion. If you feel that this question can be improved and possibly reopened, visit the help center for guidance.
Closed 11 years ago.
Just a quick question, I'm getting the idea that you don't. Why is this, and is there a way to? And why would you?
I never code within the browser. The only reason to code in the EE CP would be if you're editing a snippet or global variable, and even then there are addons that will move those to flat files.
Take a look at this user guide on how to save templates as flat files: http://expressionengine.com/user_guide/templates/templates_as_files.html Saving templates as files will also allow you to better version your template code with your VCS of choice.
When moving to a production environment you may want to consider syncing your template files to the database - as that may speed things up a tiny bit.
As it currently stands, this question is not a good fit for our Q&A format. We expect answers to be supported by facts, references, or expertise, but this question will likely solicit debate, arguments, polling, or extended discussion. If you feel that this question can be improved and possibly reopened, visit the help center for guidance.
Closed 11 years ago.
Hey I have been given an essay to write about Processes and threads in the 2.6 Linux Kernel but we are unable to talk about the general concepts of processes and thread management. I am kind of stuck for material as I have only wrote about the history of Linux, what the kernel is and what it does, can anyone direct me to good sites or topics I should look into I am having a hard time finding something worthwhile
hope these initial pointers help
http://www.ibm.com/developerworks/linux/library/l-scheduler/
http://www.ibm.com/developerworks/linux/library/l-completely-fair-scheduler/
http://www.informit.com/articles/article.aspx?p=370047
Threads vs Processes in Linux