I recently had the need to resize a hundred jpeg images of varying sizes, and to get them all down to consistent widths (or heights for the portrait images), and then finally to rename the thumbnail preview images that I had also created.
Read more…
umask determines what permissions any new files or directories will have by default. Like file permissions, it historically takes an octal value (e.g. ‘umask 002′), but can also symbolic values (e.g. ‘umask a=rx,ug+w’). I’m going to just focus on the octal values.
Read more…
If you should happen to need to know the current time as a unix timestamp, try http://www.unixtime.se/. Alternatively typing
date +%s
at a convenient command line might be faster, and more accurate…
With any Linux Standard Base compliant distro (Mandriva, openSUSE, Red Hat, Ubuntu, etc…), there is an easy way to find its version number, and code name.
Read more…
FFmpeg is an open-source command line utility for performing audio/video file conversions. It can be used to simply convert straight from one video format to another, or to crop, pad, rescale, change bit-rates, merge or split out audio and video, and so on…
Read more…
I only came across this command fairly recently. It’s a simple command, but immensely useful.
The watch command is used to run a given command at a predefined interval, and to monitor the output in real-time until the watch command is terminated. When run, it initially only displays the first output of the given command, and then only updates it if something in the output changes.
Read more…
November 17th, 2008
Bryce
It seems to have been a long time coming, but finally an alpha version has been released. Although it’s an alpha, it’s still a vast improvement over the 32-bit version which I’ve used up until now with the aid of NPS Wrapper.
Read more…
A remote Windows PC can easily be shutdown, assuming you have Samba installed on your Linux box, and you have a user account on the Windows PC that has the necessary rights.
Read more…
Sometimes burning an ISO file to a CD-ROM just to access its contents is overkill, but there is another way.
Read more…
Need a simple way to test the bandwidth between two hosts that you have access to? If so, then just drop Iperf onto both machines. Launch one instance as the server
iperf -s
and the other as the client
iperf -c <Server IP>
then after 10 seconds you’ll have your result.
Read more…