Difference between revisions of "Linux Commands"

From John Freier
Jump to: navigation, search
(Created page with 'NetCat - Port redirecting and different network tools. Known as the Swiss Army Knife of networking.')
 
 
(3 intermediate revisions by the same user not shown)
Line 1: Line 1:
 
[[NetCat]] - Port redirecting and different network tools.  Known as the Swiss Army Knife of networking.
 
[[NetCat]] - Port redirecting and different network tools.  Known as the Swiss Army Knife of networking.
 +
 +
{command}|tee log.log - Sends all log output to a file and also outputs it to the console.
 +
 +
== Shutdown Command ==
 +
To shutdown immediately begin the system halt.
 +
  sudo shutdown –h
 +
 +
 +
== Find a listening port PID ==
 +
Use the following command to find the PID of a listening port.
 +
  lsof -i :8080

Latest revision as of 10:55, 3 August 2021

NetCat - Port redirecting and different network tools. Known as the Swiss Army Knife of networking.

{command}|tee log.log - Sends all log output to a file and also outputs it to the console.

Shutdown Command

To shutdown immediately begin the system halt.

 sudo shutdown –h


Find a listening port PID

Use the following command to find the PID of a listening port.

 lsof -i :8080