From 6d251f37b6b127b10a5f11476fce36cd201812a9 Mon Sep 17 00:00:00 2001 From: Stepan Soroka Date: Mon, 15 Oct 2018 23:31:43 +0300 Subject: [PATCH] Added commands 'lsof -i :' and 'kill ' (#18782) Added command which helps to detect process which is using the port you want to use, and command which terminates a process with process ID you found using the previous command --- .../english/terminal-commandline/macos-terminal/index.md | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/client/src/pages/guide/english/terminal-commandline/macos-terminal/index.md b/client/src/pages/guide/english/terminal-commandline/macos-terminal/index.md index 38b9dadc52..b07742ad46 100644 --- a/client/src/pages/guide/english/terminal-commandline/macos-terminal/index.md +++ b/client/src/pages/guide/english/terminal-commandline/macos-terminal/index.md @@ -68,6 +68,12 @@ Use the following syntax to delete a file **rm _#PATH_TO_FILE_** +#### Detect which process is using the port you want to use +``` lsof -i : ``` + +#### Terminate the process which uses the port you want to use +``` kill ``` + # iTerm2 iTerm2 is an alternative to the legacy terminal in Mac OS. iTerm2 brings some new features such as: