Linked Questions

107 votes
5 answers
26k views

Why are true and false so large?

After finding out that several common commands (such as read) are actually Bash builtins (and when running them at the prompt I'm actually running a two-line shell script which just forwards to the ...
Kidburla's user avatar
  • 1,266
21 votes
3 answers
135k views

convert executable back to C source code

Unfortunately I lost my source code and I just have the output file that made with gcc in linux and I don’t have any access to my pc now.is there any way to convert output file to source file (in c ...
mahsa's user avatar
  • 211
13 votes
3 answers
5k views

Tools for showing which files are accessed by a program?

I'm not going for complicated tools like AppArmor complain mode, I need easy tools to tell me which files are accessed by a specific program.
Boll19's user avatar
  • 167
12 votes
1 answer
3k views

Why doesn't `strace` show this process is waiting for something?

The mighty strace has let me down. How is this possible? time foo shows that foo takes several seconds to run ("real"), but uses negligible cpu time, both in userspace ("user") and in the kernel ("...
sourcejedi's user avatar
  • 48.5k
3 votes
6 answers
5k views

How to see which file a user is editing in vi

If I do a w, I can see that a user is editing a certain file in vi. However there are several files with the same name in different directories. How do I see which of these files is the one that the ...
LINUX G33NYUS's user avatar
10 votes
2 answers
4k views

How does the ELF loader determine the initial stack size?

I'm studying the ELF specification (http://www.skyfree.org/linux/references/ELF_Format.pdf), and one point that is not clear to me about the program loading process is how the stack is initialized, ...
Mario Carneiro's user avatar
5 votes
2 answers
3k views

How do I hide TracerPID from a process?

I'm conjecturing SQL Server on Linux is checking /proc/self/status for TracerPID and then dying if it's not 0. I want to test that. Playing around, here is the strace, ... lots of stuff openat(...
Evan Carroll's user avatar
2 votes
1 answer
5k views

Using strace for a C file

I have a C file that I want to trace what is going on. I'm trying to use: strace -o trace.txt random.c But it says that: strace: Can't stat 'random.c': No such file or directory I've been looking ...
hiquetj's user avatar
  • 123
3 votes
1 answer
1k views

strange Linux binary

I have an executable file that is not lending itself for disassembling or decompiling well as usual/expected. file and ldd are giving an output different than the usual: $ file exe_file exe_file: ...
Rui F Ribeiro's user avatar
1 vote
1 answer
82 views

Is it possible to monitor each cell memory for a specific process

Saying that I have a very simple C program test.c, which just prints "hello world", its name is a.out coming from gcc test.c. I'm thinking if it's possible to monitor exactly what happened while ...
Yves's user avatar
  • 3,181