Skip to content

xeoron/K

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

63 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

K

K easily kills a *nix based running program by name or provides process detail on the program. The *nix command killall often does not find a program on macOS while K makes it easier to list the process ID's of a program, to learn the total process count, and to terminate a running program by name

Usage: Get info on a program or terminate it

Example: 
    k -t program_to_shutdown        
    k -c -t "visual studio code"
    k -p -c -t firefox

    -t|target       Target a process by name to terminate
Optional:
    -f|force        Force a temperamental process to end
    -c|count        List total number of processes the program is using
    -p|pids         List the process IDs
    -s|silent       Silent mode: don't display feedback
    -v|version      Version and License
    -h|help         Explain usage

Requirements

Software:

Perl v5 or higher
*nix based system with ps, grep, & kill

Setup

Automated command:

sudo ./install_k.sh
sudo ./install_macOS_k.sh

Manual commands:

cd ./k/
chmod +x ./k.pl
Linux: sudo cp ./k.pl /usr/bin/k
macOS: sudo cp ./k.pl /opt/local/bin/k 

License

k is copyleft 2024 under the GPL v3 or higher.

About

The *nix kill program needs process id's while K easily kills a running program by name. It may, also, can count how many processes it is using, or list the process ID's

Topics

Resources

License

Stars

1 star

Watchers

1 watching

Forks

Releases

No releases published

Packages

 
 
 

Contributors