Category: How To
-
Testing an external mail server
There are times when I need to test the basic functionality of an external mail server (i.e. one I don’t control). Here’s a step-by-step process to perform some basic testing using telnet: Telnet to the remote server: telnet <server> 25 If it replies, you should get a response like: Trying <server>… Connected to <FQDN>. Escape character…
-
Delete empty directories in *nix
find <directoryPath> -type d -empty | xargs rmdir Or, alternatively: find <directoryPath> -empty -type d -delete (note that the -delete option implies -depth)
-
Search for and delete directory in MS Windows
for /f “delims=” %%d in (‘dir <directoryPath> /s /b /ad ^| sort /r’) do rd “%%d” Note: remove one of the two percentage signs when running from command line.