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)
Related Posts:
- ping: google.com: Temporary failure in name resolution [closed]
- Docker System has not been booted with systemd as init system
- CentOS vs. Ubuntu [closed]
- Docker error : no space left on device
- How to establish ssh key pair when “Host key verification failed”
- localhost/phpinfo.php
- After installing with pip, “jupyter: command not found”
- gpg: no valid OpenPGP data found
- gpg: no valid OpenPGP data found
- E: Unable to locate package mongodb-org
- How to open the terminal in Atom?
- Valgrind permission denied on file
- nginx – nginx: [emerg] bind() to [::]:80 failed (98: Address already in use)
- How to install Boost on Ubuntu
- How to verify if nginx is running or not?
- pdflatex not found. pdflatex is needed for pdf output
- Nginx: stat() failed (13: permission denied)
- PIP Could not find any downloads that satisfy the requirement SQLAlchemy
- MySQL: How to reset or change the MySQL root password?
- Removing all installed OpenCV libs
- Vim: No write since last change, even though I changed the file
- Why can’t I print to terminal with my python script?
- whats the meaning of curl “-s” and “-m”
- How do I ask apt-get to skip any interactive post-install configuration steps?
- How to view all ssl certificates in a bundle?
- How to remove the “installed manually” flag and revert to “automatically installed” with apt-get?
- How do I get apt-get to ignore some dependencies?
- How do I auto-start docker containers at system boot?
- How do I reattach to Ubuntu Server’s ‘do-release-upgrade’ process?
- How to determine JAVA_HOME on Debian/Ubuntu?
- How to start/stop iptables on Ubuntu?
- Which ports do I need to open in the firewall to use NFS?
- list all packages from a repository in ubuntu / debian
- dpkg-reconfigure: unable to re-open stdin: No file or directory
- How can I edit the welcome message when ssh start?
- How does Ubuntu keep track of the “System restart required” flag in motd?
- Amazon Linux vs. Ubuntu for Amazon EC2 [closed]
- Automate the installation of postfix on Ubuntu
- Best location to keep SSL certificates and private keys on Ubuntu servers?
- Why is ssh agent forwarding not working?
- Undefined function mysql_connect()
- Kill detached screen session [closed]
- error: command ‘gcc’ failed with exit status 1 while installing eventlet
- apt-get error: Sub-process /usr/bin/dpkg returned an error code (1)
- What is a clearfix?
- How can I completely uninstall nodejs, npm and node in Ubuntu [closed]
- How to install python3 version of package via pip on Ubuntu?
- How to kill a process running on particular port in Linux?
- error: ‘Can’t connect to local MySQL server through socket ‘/var/run/mysqld/mysqld.sock’ (2)’ — Missing /var/run/mysqld/mysqld.sock
- How can you find out which process is listening on a TCP or UDP port on Windows?
- E: unable to locate package pip
- How to install “make” in ubuntu?
- “sed” command in bash
- Significance of port 3000 in Express apps
- XAMPP Port 80 in use by “Unable to open process” with PID 4
- Ubuntu: OpenJDK 8 – Unable to locate package
- stop all instances of node.js server
- WSL – GEDIT Unable to init server: Could not connect: Connection refused
- How to tell if tensorflow is using gpu acceleration from inside python shell?
- How to open some ports on Ubuntu?
- Error: A JNI error has occurred, please check your installation and try again – during running Java program from Ubuntu terminal
- Uncompress tar.gz file
- Command line for looking at specific port
- Delete all local git branches
- “Unable to find remote helper for ‘https'” during git clone
- bash : Bad Substitution
- Is there any way to kill a Thread?
- How to fix “unsupported class file major version 60” in IntelliJ?
- How do I kill the process currently using a port on localhost in Windows?
- “psql: could not connect to server: Connection refused” Error when connecting to remote database
- Package php5 have no installation candidate (Ubuntu 16.04)
- Port 80 is being used by SYSTEM (PID 4), what is that?
- to_string not declared in scope
- Telnet [Unable to connect to remote host: Connection refused]
- “Picked up JAVA_TOOL_OPTIONS: -javaagent:/usr/share/java/jayatanaag.jar” when starting the Scala interpreter
- wget returns “Unable to establish SSL connection”
- How to change already compiled .class file without decompile?
- Curl : connection refused
- How to add RSA key to authorized_keys file?
- How to install Android SDK on Ubuntu?
- Difference between Systemctl and service command
- PTHREAD_MUTEX_INITIALIZER vs pthread_mutex_init ( &mutex, param)
- How to completely uninstall python 2.7.13 on Ubuntu 16.04
- Bash export command
- How to edit gitignore file
- Adding a new entry to the PATH variable in ZSH
- Running docker container : iptables: No chain/target/match by that name
- Install pip for python 3.5
- phpmyadmin “Not Found” after install on Apache, Ubuntu
- Job scheduling using crontab, what will happen when computer is shutdown during that time?
- Can I hide all server / os info?
- Why does the MySQL command line tool ignore the –port parameter?
- How to fix PuTTY showing garbled characters? [closed]
- df says disk is full, but it is not
- What is the maximum port number?
- Is there a proper way to clear logs?
- How do high traffic sites service more than 65535 TCP connections?
- Why Block Port 22 Outbound?
- How should an IT department choose a standard Linux distribution?
- Command line program to test DHCP service