Page 2 of 2 FirstFirst 12
Results 16 to 18 of 18
  1. #16
    Junior Member
    Join Date
    Oct 2017
    Posts
    6
    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
    BountySite: Every Website deserves Security
    Website Time Machine with Offsite Security Scanning
    FileTrail - Full Server Backup | SSHTrail - SSH Jumpbox

  2. #17
    Registered User
    Join Date
    Nov 2019
    Location
    INDIA
    Posts
    26
    Quote Originally Posted by abhilash View Post
    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.
    TuxAndrew
    Linux - RedHat,cPANEL CentOS,Ubuntu,Azure/AWS Administrator,
    Assistance, Analysis and Diagnosis. Skype: tuxandrew
    tuxandrew@aol.com

  3. #18
    Registered User
    Join Date
    Nov 2019
    Location
    Philippines
    Posts
    16
    I am not so sure about this but I think it is a command line tool for debugging specific fo Unix OS.

Page 2 of 2 FirstFirst 12

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  

  Find Web Hosting      
  Shared Web Hosting UNIX & Linux Web Hosting Windows Web Hosting Adult Web Hosting
  ASP ASP.NET Web Hosting Reseller Web Hosting VPS Web Hosting Managed Web Hosting
  Cloud Web Hosting Dedicated Server E-commerce Web Hosting Cheap Web Hosting


Premium Partners:


Visit forums.thewebhostbiz.com: to discuss the web hosting business, buy and sell websites and domain names, and discuss current web hosting tools and software.