With Java programs it’s quite common to combine several classes into one JAR archive. Java libraries are typically distributed this way as well. On Linux platforms, people are quite used to using command line programs, but sometimes it’s handy to distribute a java program as an executable file that can be run by a simple double-click instead of opening a… Read more »
GNU screen has builtin multiuser support that let’s you share a screen session with another user. First, create a screen session named with an arbitrary name, e.g. ‘shared’, and attach to it: To allow other users to use the session, you need to enable multiuser support (Ctrl-a :multiuser on) and add the specific user(s) you want to share your session… Read more »
A handy one-liner to list the crontab entries for every user:
pdftotext is a handy little tool to convert pdf files to plain text. It’s part of Fedora’s poppler-utils package and can be installed with yum: You can use pdftotext and the GNU findutils to search for a specific string in multiple pdf documents: See also pdftotext manpage, find manpage, grep manpage
Jhead is a great tool for manipulating jpeg exif headers. To change a file’s time stamp to what’s stored in the header, invoke: To change the time stamp of all files that were changed within the last day: See also http://www.sentex.net/~mwandel/jhead/usage.html
ps2pdf messes up the paper margins when you run it on a A4 landscape postscript file, because it assumes letter sized paper per default. To fix this, you can either fiddle around in the shell scripts itself or RTFM and invoke the command correctly:
Actually, searching for multiple patterns should be a trivial task. Find provides a -o operator (and many others) that lets you combine multiple expressions. A simple Example: You want to find all files in the current directory whose filename extension are either .c or .h This is not limited to the -name test but can be combined with any other… Read more »
I’ve already posted on how to convert a single file from one encoding to another (iso-8859-1 to utf-8 in this example). But how to do it for a large amount of files, let’s say LaTeX source files for example, in one go? Here’s a little bash one-liner that could help:
For n equals 13 See also cut manpage, tail manpage
Well, assumed that the user is either listed in /etc/cron.allow or not listed in /etc/cron.deny, i.e. the user is allowed to create his own cron table, there should be a file for every user that is allowed to and has a crontab in /var/spool/cron/crontabs/. Besides editing (crontab -e) or listing (crontab -l) his own crontab entries, root can also specify… Read more »