Virt IT

About Virtual things and more

Categorie: Linux

find files before specific date in linux and move them to another directory

find -not -newermt "nov 01, 2015" -exec mv {} /tmp \;

-not -newermt -> specifies the modification time of the file must be older (hence the -not)

23 november 20162 februari 2017 marco

Find linux listen ports short list

Use netstat:

netstat -tulpn

Or use ss:

TCP ports:

ss -tan

UDP ports:

ss -uan

where the last n is for nummeric.

Add the p to show which process is using the port

7 november 201623 november 2016 marco
Categorieën
  • HTML
  • Linux
  • Mac OSX
  • Microsoft
  • Uncategorized
  • VMware

Met trots aangedreven door WordPress. Ontworpen door StylishWP