Tag Archives: linux

Punishment for laziness – root password recovery

I had a new idea for adding one more computer to my life.  The task was to actually provide some fun new functionality to my family and I attacked the task. At the beginning, I needed to log in as … Continue reading

Posted in Command line | Tagged , | Comments Off on Punishment for laziness – root password recovery

command line fun – spaces and arguments

I normally get to control most aspects of the program.  The most important yet trivial is the parameters that are being passed to the program.  Because I know what I want it is usually possible to coerce the calling script … Continue reading

Posted in Command line | Tagged , | Comments Off on command line fun – spaces and arguments

command line fun – getting to the base of things

Just a short time back I received a mail from a colleague with an error message.  The question from him was about the error and more importantly was this my program.  I did find some code that generated the same … Continue reading

Posted in Command line, programming | Tagged , | Comments Off on command line fun – getting to the base of things

command line fun – listing and sorting

Linux is not Unix yet it is very similar.  They are so similar I never really notice the difference, even when writing scripts.  I needed to get a list of sorted files, so I tried the usual commands. ls -lS … Continue reading

Posted in Command line | Tagged , | Comments Off on command line fun – listing and sorting

command line fun – more fun with sftp

A few days back we needed to copy some files around in the production environment and the task was given to me.  It was one of those rather simple tasks as in the email was some examples from a colleague … Continue reading

Posted in Command line | Tagged , , | Comments Off on command line fun – more fun with sftp

command line fun – testing for existence

I remember quite some time ago when I was developing a an application when the personal computer was actually fairly slow.  Of course I happened to pick a technology that worked just fine on a newer computer but it actually … Continue reading

Posted in Command line, programming | Tagged , | Comments Off on command line fun – testing for existence

command line fun – transferring data with sftp

I must admit that I misunderstood the task when I first saw it.  The vendor had changed how they provide the data.  We will no longer be able to retrieve the data using ftp – the data should be picked … Continue reading

Posted in Command line, programming | Tagged , , | Comments Off on command line fun – transferring data with sftp

command line fun – juliane day number to gregorian

In a previous blog, I implemented a routine to convert a Gregorian date into a Juliane day number to allow simple math and comparisons on dates. This was pretty cool but it is less useful if you cannot convert back … Continue reading

Posted in Command line, programming | Tagged , | Comments Off on command line fun – juliane day number to gregorian

command line fun – julian day number

I keep getting into a situation where I need to do some simple date calculations.  This is not a problem using a language like Java or when using a language that lets you add additional modules like Perl.  Unfortunately, some … Continue reading

Posted in Command line, programming | Tagged , | Comments Off on command line fun – julian day number

command line – stupid date tricks

Just because you can do something doesn’t mean that you should do it.  I try and keep to that simple rule but from time to time it is fun to see what crazy things you can do in a simple … Continue reading

Posted in Command line | Tagged , | Comments Off on command line – stupid date tricks