Fabulously kill processes. Cross-platform.

Overview


fkill


Fabulously kill processes. Cross-platform.

Works on macOS, Linux, and Windows.

Install

$ npm install --global fkill-cli

Usage

$ fkill --help

  Usage
    $ fkill [<pid|name> …]

  Options
    --force -f    Force kill
    --verbose -v  Show process arguments
    --silent -s   Silently kill and always exit with code 0

  Examples
    $ fkill 1337
    $ fkill safari
    $ fkill :8080
    $ fkill 1337 safari :8080
    $ fkill

  To kill a port, prefix it with a colon. For example: :8080.

  Run without arguments to use the interactive interface.
  In interactive mode, 🚦n% indicates high CPU usage and 🐏n% indicates high memory usage.

  The process name is case insensitive.

Interactive UI

Run fkill without arguments to launch the interactive UI.

Related

Maintainers

Comments
  • Add verbose option to search arguments as well as command names

    Add verbose option to search arguments as well as command names

    This feature allows you to run fkill -v and then when searching for processes to kill, it will include the full proc command (including arguments)

    This is useful when I have a daemonic process, like a dev web server, that I want to kill, but was launched with python start_web_server.py for example.


    Fixes #13 Fixes #18

    opened by coffeedoughnuts 16
  • Show CPU and memory usage in interactive mode

    Show CPU and memory usage in interactive mode

    Fixes #62 .

    Style and thresholds might be opinionated, but I tuned them to the point I was comfortable finding processes.

    • processes are sorted by sum of cpu and memory usage(percentage), highest first
    • in verbose mode memory and cpu usage is show when it is above 0.1% (minimal number we can get)
    • in non-verbose mode memory usage is shown when it's above 0.5%, cpu usage shown when it's above 2%
    • cpu usage is shown in dark red
    • memory usage is shown in dark yellow
    opened by stroncium 13
  • Process is not killed

    Process is not killed

    opened by capaj 11
  • how to close properly?

    how to close properly?

    Awesome stuff.

    But Ctrl + C on my Mac leaves a residue of the fkill interface (which can only be cleared if I issue new commands or hit Enter for a few times to clear all those lines).

    how to close fkill properly?

    bug 
    opened by gblazex 9
  • Force kill if normal kill fails

    Force kill if normal kill fails

    Forces a kill if the normal kill behavior fails. handleFkillError already includes functionality for handling the case of a failed kill, but fkill doesn't throw an error when it fails to kill a process, so I chose a different way to implement this feature.

    Resolves #42


    IssueHunt Summary

    IssueHunt has been backed by the following sponsors. Become a sponsor

    opened by medusalix 8
  • Improve startup time

    Improve startup time

    Issuehunt badges

    fkill takes about 150-300 ms to start up. Will be cool to see it under <100ms. (MacBook Pro 2016)

    IssueHunt Summary

    stroncium stroncium has been rewarded.

    Sponsors (Total: $20.00)

    Tips

    enhancement help wanted :gift: Rewarded on Issuehunt 
    opened by antonmedv 8
  • Combining --force and --silent

    Combining --force and --silent

    Issuehunt badges

    We need to kill a node process that runs a server (e.g. on port 8000) as part of our deployment script.

    Using "fkill :8000" doesn't terminate the process, so we need "fkill -f :8000"

    Unfortunately, fkill is returning an error code when there is no process running on port 8000. So we added the silent switch "fkill -f -s :8000"

    This works, but gives an error message when no process has been found, which should not be the case using -s.


    IssueHunt Summary

    ulken ulken has been rewarded.

    Backers (Total: $40.00)

    Submitted pull Requests


    Tips


    IssueHunt has been backed by the following sponsors. Become a sponsor

    bug help wanted :gift: Rewarded on Issuehunt 
    opened by thinkofapps 7
  • No way to specify signal to send

    No way to specify signal to send

    Is there a way to specify the signal to send to the process?

    I understand that fkill is multi-platform but at least in Unix environment people regularly use both TERM and KILL, and possibly others like HUP

    opened by juancampa 6
  • Support fuzzy search

    Support fuzzy search

    Fixes #49.

    • I applied fuzzy search to verbose, name option both.
    • I added a unit test for testing fuzzy search, I think it probably works in almost all cases, but not sure there is always no other such named process. In this case, the noopProcess could not be killed. Should I think about a better test method, or is it enough?
    opened by jopemachine 5
  • Feature: Show CPU/mem usage

    Feature: Show CPU/mem usage

    Issuehunt badges

    Will be cool to see CPU/mem usage as often a lot of same processes running with same name.

    Will be cool to distinguish them.


    IssueHunt Summary

    stroncium stroncium has been rewarded.

    Backers (Total: $60.00)

    Submitted pull Requests


    Tips


    IssueHunt has been backed by the following sponsors. Become a sponsor

    enhancement help wanted :gift: Rewarded on Issuehunt 
    opened by antonmedv 5
  • Add `--force-after-timeout` / `-t` option

    Add `--force-after-timeout` / `-t` option

    Add option --force-timeout N/-t N, to force kill processes which didn't exit within timeout seconds.

    In interactive mode,wait up to 3 seconds for processes to exit, then prompt user to force kill surviving processes.

    Fixes #42 Requires sindresorhus/fkill#54


    IssueHunt Summary

    Referenced issues

    This pull request has been submitted to:


    opened by stroncium 4
  • Rewrite in Ink

    Rewrite in Ink

    Fixes #34.

    It seems working now but I think I need to a little more time to look into more error handling logics and test codes and lint (WIP). Thank you for all your efforts for maintaining awesome libs.

    opened by jopemachine 12
  • fkill doesn't search application list properly

    fkill doesn't search application list properly

    image image

    theres something wrong with the process search by name, in interactive mode fkill-cli can find and kill processes with BrowserStackLocal identifier but neither the cli or the npm module can kill that process as a variable

    opened by klh 4
  • Warning of unmet peer dependency: inquirer

    Warning of unmet peer dependency: inquirer

    Having an issue resolving this warning of an unmet peer dependency when installing globally:

    $ npm install -g fkill-cli inquirer@^6.0.0
    /usr/local/bin/fkill -> /usr/local/lib/node_modules/fkill-cli/cli.js
    npm WARN [email protected] requires a peer of inquirer@^5.0.0 || ^6.0.0 but none is installed. You must install peer dependencies yourself.
    
    + [email protected]
    + [email protected]
    added 184 packages from 67 contributors in 6.88s
    
    opened by kcrwfrd 0
  • Warning during installation concerning cross-spawn-async

    Warning during installation concerning cross-spawn-async

    Installing the library, at least on Windows, throws the following warning:

    warning fkill-cli > fkill > taskkill > execa > [email protected]: cross-spawn no longer requires a build toolchain, use it instead

    I gather this is a package dependency deprecation warning, you may want to look into this.

    opened by favna 0
Releases(v7.1.0)
  • v7.1.0(Feb 12, 2022)

  • v7.0.0(Oct 14, 2021)

  • v6.2.0(Jul 10, 2021)

  • v6.1.0(Dec 27, 2020)

  • v6.0.1(Mar 2, 2020)

  • v6.0.0(Feb 12, 2020)

    Breaking

    • Require Node.js 10 f4ea719

    Enhancements

    • Show CPU and memory usage in interactive mode (#63) 45e1e1d

    https://github.com/sindresorhus/fkill-cli/compare/v5.2.0...v6.0.0

    Source code(tar.gz)
    Source code(zip)
Owner
Sindre Sorhus
Full-Time Open-Sourcerer. Wants more empathy & kindness in open source. Focuses on Swift & JavaScript. Makes macOS apps, CLI tools, npm packages. Likes unicorns
Sindre Sorhus
Cross-platform Linux commands in ES6

Cross-platform Linux commands in pure ES6 Cash is a cross-platform implementation of Unix shell commands written in straight ES6. No native compiling

dc 7.8k Dec 27, 2022
shouganaiyo-loader is a cross-platform Frida-based Node.js command-line tool that forces Java processes to load a Java/JVMTI agent regardless of whether or not the JVM has disabled the agent attach API.

shouganaiyo-loader: Forced Entry for Java Agents shouganaiyo-loader is a cross-platform Frida-based Node.js command-line tool that forces Java process

NCC Group Plc 20 Sep 19, 2022
Kill all Chrome tabs to improve performance, decrease battery usage, and save memory

kill-tabs Kill all Chrome tabs to improve performance, decrease battery usage, and save memory Works on macOS, Linux, Windows. I'm a tab-abuser and I

Sindre Sorhus 371 Jan 8, 2023
Danger is near (play to earn game, gamefi on near chain testnet) - user play as a fireknight in a PIXELVERSE world who go to forest and kill monster.

Danger is near (play to earn game, gamefi on near chain testnet) - user play as a fireknight in a PIXELVERSE world who go to forest and kill monster. User can earn $DANGER token and score to compete with others user.

Jason Factor 21 Dec 30, 2022
GetOsLocalesCrossPlatform - A cross platform alternative to get locales used on the platform. Works on Node, Electron, NW.js and Browsers

getOsLocalesCrossPlatform A cross platform alternative to get locales used on the platform. Works on Node, Electron, NW.js and Browsers This script is

null 1 Jan 2, 2022
An lldb plugin for Node.js and V8, which enables inspection of JavaScript states for insights into Node.js processes and their core dumps.

Node.js v10.x+ C++ plugin for the LLDB debugger. The llnode plugin adds the ability to inspect JavaScript stack frames, objects, source code and more

Node.js 1k Dec 14, 2022
You can automize iOS and Android app's build, upload and versioning processes via Mobile App Automizer CLI tool.

Mobile App Automizer You can automize iOS and Android app's build, upload and versioning processes via Mobile App Automizer CLI tool. You can upload y

Trendyol Open Source 583 Dec 20, 2022
Reinforcement learning using Markov Decision Processes. For JS, written in C++.

Pavlov.js About Pavlov.js uses Markov Decision Processes to implement reinforcement learning. It is written in C++ and compiled to JavaScript. For mor

Nathan Epstein 503 Dec 14, 2022
Parallel/concurrent async work, optionally using multiple threads or processes

parallel-park Parallel/concurrent async work, optionally using multiple processes Usage parallel-park exports two functions: runJobs and inChildProces

Lily Scott 10 Mar 1, 2022
An implementation of Saudi Arabia ZATCA's E-Invoicing requirements, processes, and standards in TypeScript.

v0.1.0 (experimental) An implementation of Saudi Arabia ZATCA's E-Invoicing requirements, processes, and standards in TypeScript. Read the documentati

wes4m 32 Dec 27, 2022
📗 How to write cross-platform Node.js code

How to write cross-platform Node.js code. Why you should care: according to the 2018 Node.js user survey, 24% of Node.js developers use Windows locall

ehmicky 1.3k Jan 3, 2023
Mobile app development framework and SDK using HTML5 and JavaScript. Create beautiful and performant cross-platform mobile apps. Based on Web Components, and provides bindings for Angular 1, 2, React and Vue.js.

Onsen UI - Cross-Platform Hybrid App and PWA Framework Onsen UI is an open source framework that makes it easy to create native-feeling Progressive We

null 8.7k Jan 8, 2023
A cross platform high-performance graphics system.

spritejs.org Spritejs is a cross platform high-performance graphics system, which can render graphics on web, node, desktop applications and mini-prog

null 5.1k Dec 24, 2022
Mobile app development framework and SDK using HTML5 and JavaScript. Create beautiful and performant cross-platform mobile apps. Based on Web Components, and provides bindings for Angular 1, 2, React and Vue.js.

Onsen UI - Cross-Platform Hybrid App and PWA Framework Onsen UI is an open source framework that makes it easy to create native-feeling Progressive We

null 8.7k Jan 4, 2023
Vue Native is a framework to build cross platform native mobile apps using JavaScript

Vue Native Visit our website at vue-native.io or read the official documentation here. Build native mobile apps using Vue Vue Native is a framework to

GeekyAnts 8.4k Jan 6, 2023
Build performant, native and cross-platform desktop applications with native Vue + powerful CSS like styling.🚀

Vue NodeGui Build performant, native and cross-platform desktop applications with Vue. ?? Vue NodeGUI is powered by Vue ?? and Qt5 ?? which makes it C

NodeGui 765 Dec 30, 2022
Cross-platform project template using Electron and Angular with the Phaser game engine. Project has Flexbox integrated for easy and responsive organization of components around the Phaser canvas.

Coher3nTS Project This is an Angular project template with Phaser nested inside, set up to run with Electron. Cross-Platform & Responsive The template

Tim B 18 Dec 17, 2022
Cross-platform Linux commands in ES6

Cross-platform Linux commands in pure ES6 Cash is a cross-platform implementation of Unix shell commands written in straight ES6. No native compiling

dc 7.8k Dec 27, 2022