Account Links: Cart | Your Account | Logout

Skip to content

Red Hat Knowledgebase

Red Hat Knowledgebase Search:

Updated Within the Last:

New Solutions within the last day New Solutions within the last week New Solutions within the last month

Browse by topics:


Click to View a Topic
Red Hat Enterprise Linux > AS/ES/WS Basics > Issue <<  786 of 908 >>

Solution Tools:


Email a Solution Postcard Printer version Submit a comment on this answer Update notifications Request an answer Back

Article Reference

Article ID: 12062
Last update: 01-09-08
Issue:
How do I use strace to trace system calls made by a command?
Resolution:

The command strace is used to trace system calls and signals. It is a great process to use when debugging an application and is often requested by Red Hat technicians to examine certian issues that may arise with an operating system.

To record the system calls used by the ls command and output it to a file called /tmp/trace_ls, execute the following command:

$strace -o /tmp/trace_ls /bin/ls

Please note, without the -o filename option, the command will output to standard output (the terminal screen). This makes for a very long output and will often scroll off the screen making it harder to see the full contents of the strace.


How well did this entry answer your question?


good wrong incomplete out of date
Red Hat Enterprise Linux > AS/ES/WS Basics > Issue <<   786  of  908  >>