GithubHelp home page GithubHelp logo

xeoron / k Goto Github PK

View Code? Open in Web Editor NEW
1.0 1.0 0.0 52 KB

K easily kills a running *nix program by name, count how many processes it is using, or list its process ID's

License: GNU General Public License v3.0

Shell 42.47% Perl 57.53%

k's Introduction

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. 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.

k's People

Contributors

xeoron avatar

Stargazers

 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.