Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

TraceIt

C Linux /proc

A lightweight Linux command-line utility written in C that inspects running processes through the /proc filesystem.

Instead of running multiple ps -ef commands and manually exploring /proc, simply run TraceIt, enter the process name, and inspect it instantly.

TraceIt allows you to search for a running process and display useful information such as its executable, command line, working directory, memory usage, and more.


Features

  • Search a running process by name
  • Display the process PID
  • Read command line (/proc/<pid>/cmdline)
  • Display executable path (/proc/<pid>/exe)
  • Display current working directory (/proc/<pid>/cwd)
  • Display process root directory (/proc/<pid>/root)
  • Read important fields from /proc/<pid>/status
  • Simple terminal interface

Example Output

TraceIt Demo

Requirements

  • Linux
  • GCC
  • GNU Make
  • readline

Arch Linux:

sudo pacman -S gcc make readline

Ubuntu/Debian:

sudo apt install build-essential libreadline-dev

Installation

Clone the repository:

git clone https://github.com/tracebyte8/traceit.git
cd traceit

Build the project:

make

Run

Run directly from the project directory:

make run

or

./traceit

Install (Optional)

If you want to use TraceIt from any terminal without entering the project directory:

sudo make install

Then simply run:

traceit

To remove it:

sudo make uninstall

License

This project is released under the MIT License.


Made with ❤️ using C

About

No description, website, or topics provided.

Resources

Stars

3 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages