Skip to content

Tag: linux

Installing libc6 2.33 on debian

I would like to install libc6 2.33 onto a debian docker container for security patch reasons. I can see here that it has been released, and also it is noted here that 2.33 is available. Is there any easy way to get this installed onto a debian docker container? Is there a hard way to get this installed onto a

Get files access permissions using stat() in C

I just started learning linux/C, i just want to show the names of all the files of the directories given in argument, and their access permissions by using stat() which causes some problems. It actually shows the correct name/mode of all the files included in the current directory, but for the other directori…

Send a kill signal to self

I have a C++ code that runs a linux command, I want to simulate segfault i.e. SIGSEGV while executing that linux command from by C++ code. So my code looks like this What should I put in “cmd” so that it can send SIGSEGV to the sub-process created by calling this function? Answer Sending kill sign…

Wall time and cpu time in Linux command time

When I use Linux time command to measure time spent for running a command, which one below corresponds to CPU time and wall time? Answer which one below corresponds to CPU time user is cpu time in user mode, sys is cpu time in kernel mode and wall time? real