User Tools

Site Tools


linux:sysadmin

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
Last revision Both sides next revision
linux:sysadmin [2016/07/12 21:19]
mstraub [Network Configuration]
linux:sysadmin [2020/07/24 13:34]
mstraub [Check Open Ports & Connections]
Line 242: Line 242:
 # │   ​│ ​  ​│ ​  ​│ ​  ​| ​  ​│ ​   └ command # │   ​│ ​  ​│ ​  ​│ ​  ​| ​  ​│ ​   └ command
 # │   ​│ ​  ​│ ​  ​│ ​  ​| ​  ​└───── user executing the command # │   ​│ ​  ​│ ​  ​│ ​  ​| ​  ​└───── user executing the command
-# │   ​│ ​  ​│ ​  ​│ ​  ​└───────── day of week (0 - 7) (0 to 7 are Sunday to Sunday, or use names) +# │   ​│ ​  ​│ ​  ​│ ​  ​└───────── day of week (0 - 7) (0 to 7 are Sunday to Sunday, or use names such as MON-FRI
-# │   ​│ ​  ​│ ​  ​└───────────── month (1 - 12)+# │   ​│ ​  ​│ ​  ​└───────────── month (1 - 12) (or names such as JAN-DEC)
 # │   ​│ ​  ​└───────────────── day of month (1 - 31) # │   ​│ ​  ​└───────────────── day of month (1 - 31)
 # │   ​└───────────────────── hour (0 - 23) # │   ​└───────────────────── hour (0 - 23)
Line 249: Line 249:
 </​code>​ </​code>​
  
 +[[https://​crontab.guru|nifty online editor]]
 ==== More crontab ==== ==== More crontab ====
 Also possible, but not encouraged in order to not put cron jobs into too many different places and overcomplicate administration,​ are the following options: Also possible, but not encouraged in order to not put cron jobs into too many different places and overcomplicate administration,​ are the following options:
Line 676: Line 677:
 <code bash> <code bash>
 netstat -a           # print open & listening internet connections and Unix domain sockets netstat -a           # print open & listening internet connections and Unix domain sockets
-netstat -a -t        # print only tcp connections (-u for udp) +netstat -a -t -p     # print only tcp connections (-u for udp) and the associated pid
 netstat -s           # print statistics about e.g. nr of received packets netstat -s           # print statistics about e.g. nr of received packets
 netstat -r           # print the kernel routing table netstat -r           # print the kernel routing table
linux/sysadmin.txt · Last modified: 2020/08/20 11:59 by mstraub