The tag has no wiki summary.

learn more… | top users | synonyms

2
votes
4answers
1k views

Remove all files by filename (Linux one-liner)

CakePHP has a convention of putting files called "empty" in empty directories. I'm sure they have a reason, but it really bugs me. (Yeah, OCD, I know...) I want a one-line linux shell command that ...
1
vote
2answers
312 views

tail -100 catalina.out | mail to somewhere

trying to spit out last 100 lines of catalina.out and email them to myself. Can someone suggest a quick oneliner on how to do this? I can only come up with something like: tail -100 catalina.out | ...
0
votes
3answers
153 views

One-liner to find all mail servers in AD domain with Powershell

I would like to use powershell to find all available mail servers in a given network segment, or domain wide. Is this possible and how could you do it?
0
votes
3answers
1k views

bash one-liner loop over directories throws errors

I'm trying to build a bash one-liner to loop over the directories within the current directory and tar the content into unique tars, using the directory name as the tar file name. I've got the basics ...
0
votes
4answers
226 views

Calculate disk space occupied by many .png files

I have 357 .png files located in different sub dirs of the current dir: settings# find . -name \*.png |wc -l 357 settings# find . -name \*.png | head ./assets/authenticationIcons/audio.png ...
-2
votes
1answer
158 views

Test A SSH Connection from Windows commandline [closed]

I am looking for a way to test if a SSH server is available from a Windows host. I found this one-liner, but it requires the a Unix/Linux host: ssh -q -o "BatchMode=yes" user@host "echo 2>&1" ...