Tag Archives: bash

Convert a JAR file into a Linux executable

      No Comments on Convert a JAR file into a Linux executable

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 »

Sharing a screen session with another user

      1 Comment on Sharing a screen session with another user

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 »

How to find multiple patterns with GNU findutils

      2 Comments on How to find multiple patterns with GNU findutils

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 »

Where are user based crontab entries stored?

      No Comments on Where are user based crontab entries stored?

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 »