For eg. arm-unknown-linux-gnueabi Now, once the OS i.e Linux is fixed, the C Library will be fixed (GLibc) and hence the calling convention and ABI being followed will be fixed. What is the requirement of 4th field i.e. ABI separately? Can a toolchain use a different ABI from the one used by underlying OS and…
Sorting files based on time in Linux
I want to get a list of pathnames of files, divided by one blank space, and the files are sorted based on creation time. I use to sort them, but the problem is, how can to delete all the time before the pathnames? If I use I can get a list of pathnames, but I don’t know how to sort
How to kill a process by its pid in linux
I’m new in linux and I’m building a program that receives the name of a process, gets its PID (i have no problem with that part) and then pass the PID to the kill command but its not working. It goes something like this: Can someone tell me why it isn’t killing it ? I know that there are som…
PHP: creates file but can’t append with (apparently) correct server permissions (LAMP)
I have seen many questions and answers on this topic but none seem to help my situation. My PHP code is successfully creating a new logfile, but then cannot access that file to append further info, close it, etc. I am migrating an application from local XAMPP onto LAMP: hence problem only showing up now due t…
How can I use the set-guid (i.e., set group identification) vulnerability to execute a file with limited permissions?
How can I use the set-guid bit vulnerability to execute a file /bin/grade which is owned by root using the following 3 vulnerable programs? I am not root nor part of the bsp* groups so my access to the programs is limited to read & execute only. For the file /bin/grade, I only have read access, but I want…
Why is echo showing the command itself and not the command output
Why is echo showing the command and not the output of the command once I start using it in a FOR I loop? For example this command works But not in a FOR I loop I want the command to print the first field so then I can add other functionality to the For I loop. Thanks EDIT — Not
How to select Amazon Machine Image (linux distribution) to AWS EC2? [closed]
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 ques…
Linux total disk I/O from already running process
I’m working on a performance tool and I’m interested in the total disk I/O i single process have done since it started. I have the porcess PID and i can easily get the current I/O rate with tools like iotop or sar, but not the total I/O. Is this even logged in Linux and is there a way to get
Reasoning behind ‘sort’ core util’s key (-k) syntax
When using the sort function in a shell, it seems the preferred syntax for the -k option when sorting via only one field is, for example, -k5n,5. What’s the advantage of the ,5 in this case? -k5n works the same, or at least seems to for me. Refs: The man page seems to prefer this but also suggests it is
Function arguments in x86-64 asm
So I have to do this project for school that consists of reading a file in brainfuck and interpret it as assembly. The code works if I save the file path as a String inside the .data section, but what I want to have it so it gets the file path as an argument when starting the code in the