Quantcast
Channel: monline - Unix-like
Browsing latest articles
Browse All 13 View Live

Sed in Darwin (Leopard) is crippled in many ways

Today I had to face the fact that the sed in Darwin 9.4.0 (Mac OS X Leopard 10.5.4) lacks a lot of functionality.read more

View Article



Image may be NSFW.
Clik here to view.

Gtkdialog - complex GUI for scripts

http://linux.pte.hu/~pipas/gtkdialog/"Gtkdialog is a small utility for fast and easy GUI building. It can be used to create dialog boxes for almost any interpreted and compiled programs which is a very...

View Article

Optimizing NFS Performance

If you see performance problems with your NFS fileserver, you should most probably look into the following pages:Linux NFS FAQLinux NFS-HOWTO - Chapter 5. Optimizing NFS PerformanceUnderstanding Linux...

View Article

Image may be NSFW.
Clik here to view.

How to copy a file and print the progress

There can be a number of reasons for starting a file copy from the command line (eg. you're on a headless server ). Copying large files (eg. virtual machine images) can take some time and without...

View Article

How to create a TGZ (*.tar.gz) for a compiled (eg. via autoconf) application

Let's assume you have an application/project that you've already compiled and would like to pack it into a TGZ (or TAR.GZ) archive with proper permissions ... which most probably involve the root user...

View Article


How to generate random text using an Awk script

Here're a few variants based on what you want to use as a data source.read more

View Article

Image may be NSFW.
Clik here to view.

How to compare two images pixel by pixel

http://www.imagemagick.org/Usage/compare/ The task might seem trivial, but I can assure you it's not. Every image manipulation program handles file formats a little differently, so if you take an image...

View Article

Various reasons for the failure of an umount command

http://oletange.blogspot.hu/2012/04/umount-device-is-busy-why.html An umount command usually fails with the following message:umount: /mnt/test: device is busy.        (In some cases useful info about...

View Article


Identifying which Java Thread is consuming most CPU

http://code.nomad-labs.com/2010/11/18/identifying-which-java-thread-is-consuming... In short: use top (with shift+H to show threads) to get the most CPU intensive threads, use jstack to get a thread...

View Article


How to grep through (aka. find) binary files looking for a byte sequence...

Here's my approach using more or less standard Unix/Linux tools:find . -type f -exec fgrep -aqs $'\x3c\x3f\x70' '{}' \; -print If your shell does not support the $'\xHH' notation (eg. standard POSIX...

View Article
Browsing latest articles
Browse All 13 View Live




Latest Images