View Full Version : What is the use of strace command?
abhilash
07-02-2014, 10:24 PM
Hello,
What is the use of strace command?
Thanks
onlinebigboss
07-24-2014, 09:11 AM
strace command , no idea :o
drwebsites
07-24-2014, 03:07 PM
strace command ! what is this. never heard about that.
Bharti Mahour
08-08-2014, 09:19 AM
Sorry dear, I don't have any idea about this.
rehal
08-09-2014, 12:48 AM
strace is a debugging utility for Linux and some other Unix-like systems to monitor the system calls used by a program and all the signals it receives, similar to "truss" utility in other Unix systems. This is made possible by a kernel feature known as ptrace.
akashram
09-02-2014, 07:04 AM
strace runs the specified command until it exits. It intercepts and records the system calls which are called by a process and the signals which are received by a process.
chrisgeitz
09-16-2015, 08:06 AM
The Linux strace command is a utility that can be used to trace down the interaction between a program and Linux kernel. The interaction here means the Linux system calls that the program uses and the Linux signals that the program receives.
sigmaseo
09-16-2015, 11:41 PM
strace is a debugging utility for Linux and some other Unix-like systems to monitor the system calls used by a program and all the signals it receives, similar to "truss" utility in other Unix systems. This is made possible by a kernel feature known as ptrace.
WellingtonSilva
10-26-2015, 07:31 AM
In the simplest case strace runs the specified command until it exits. It intercepts and records the system calls which are called by a process and the signals which are received by a process.
aaronbrad
11-04-2015, 01:02 AM
One of the main usage of strace command is to monitor the status/progress of a particular process running.
ramskl
11-28-2015, 01:15 AM
Hello,
What is the use of strace command?
Thanks
No idea about strace command.
davidsmith21
07-21-2018, 03:33 AM
Strace is a powerful command line tool for debugging and trouble shooting programs in Unix-like operating systems such as Linux.
simicartan
07-24-2018, 11:02 PM
10 Strace Commands for Troubleshooting and Debugging Linux Processes. strace is a powerful command line tool for debugging and trouble shooting programs in Unix-like operating systems such as Linux. It captures and records all system calls made by a process and the signals received by the process.
When you run a command or job on a system, the system performs different system calls, sends multiple signals and performs process state change.
This commands logs all the steps and processes being sent or received by the system during the lifetime of the job or command.
Not Named
10-23-2019, 02:49 AM
strace is a powerful command line tool for debugging and trouble shooting programs in Unix-like operating systems such as Linux. It captures and records all system calls made by a process and the signals received by the process.
bountysite
10-24-2019, 09:31 AM
As above already mentions what strace is, here is how you may use strace.
You have a process running and you are not sure why the process seems to be stuck for a long time. To investigate what is going, you would run below:-
strace -p <_process_pid> -f -t
-f would trace child processed spawned
-t would print timestamp
tuxandrew
11-26-2019, 09:30 AM
Hello,
What is the use of strace command?
Thanks
Strace command is used to captures and records all system calls made by a process and the signals received by the process. In case a program crashes or behaves in a way not expected, you can go through its systems calls to get a clue of what exactly happened during its execution. Strace is more advanced way of troubelshooting.
Simply run a command with strace in shell, for tracing of all system calls made by the df command.
root@localhost:~#strace df -h # This command will generate the system call made by the process during its execution.
Wellbet
12-04-2019, 05:09 AM
I am not so sure about this but I think it is a command line tool for debugging specific fo Unix OS.
kylojoe
12-28-2019, 02:41 AM
Strace is a better tool for the Linux system. It keeps capturing an underlying system calls and their activity. If a program in your system gets damaged or is not working properly, then you can go to the system call to find out the reason and you can see it there.
Powered by vBulletin® Version 4.2.4 Copyright © 2025 vBulletin Solutions, Inc. All rights reserved.