You want to use backtick, not regular tick:
sudo kill -9 `sudo lsof -t -i:9001`
If that doesn’t work, you could also use $()
for command interpolation:
sudo kill -9 $(sudo lsof -t -i:9001)
More Related Contents:
- Make docker use IPv4 for port binding
- Running a cron every 30 seconds
- What are the differences and similarities between ffmpeg, libav, and avconv?
- How to install Boost on Ubuntu
- What is the correct version of CUDA for my nvidia driver?
- How to set Java environment path in Ubuntu
- How to specify in crontab by what user to run script? [closed]
- Installing IDEA on Ubuntu 11.10
- Docker error : no space left on device
- How to permanently add a private key with ssh-add on Ubuntu? [closed]
- Error “gnu/stubs-32.h: No such file or directory” while compiling Nachos source code
- Is it possible to answer dialog questions when installing under docker?
- sendmail: how to configure sendmail on ubuntu? [closed]
- How do I resolve `The following packages have unmet dependencies`
- How to allow Tomcat war app to write in folder
- apt-get update’ returned a non-zero code: 100
- Error in python after ‘import tensorflow’: TypeError: __init__() got an unexpected keyword argument ‘syntax’
- Ubuntu and undefined symbol for SSLv2_method
- Trying to include a library, but keep getting ‘undefined reference to’ messages
- How to Compile 32-bit Apps on 64-bit Ubuntu?
- After installing with pip, “jupyter: command not found”
- How to write a cron that will run a script every day at midnight?
- Running graphical Linux desktop applications from WSL 2 – “Error E233: cannot open display” [closed]
- Installing mod_wsgi for Python3 on Ubuntu
- How to compile OpenCL on Ubuntu?
- cannot get elasticsearch service to run in ubuntu 17?
- Why is WSL extremely slow when compared with native Windows NPM/Yarn processing?
- Unknown encoder ‘libfaac’
- How do I start cron on docker ubuntu base?
- How to configure PyQt4 for Python 3 in Ubuntu?