commandlinefu.com is the place to record those command-line gems that you return to again and again.
You can sign-in using OpenID credentials, or register a traditional username and password.
Subscribe to the feed for:
Let's you examine, for example, whether infrastructure folks really provisioned the correct setup.
Java 64-bit checklist
1. check if hardware is 64-bit capable by looking for lm flag
grep -l 'flags.*\<lm\>' /proc/cpuinfo
2. check if kernel is 64-bit
getconf LONG_BIT | grep '64'
3. check if java is 64-bit (simply look for 64-bit in output - if present, then it is, if absent, then it is 32-bit)
Needed a quick way to see if my server distro that I setup years ago was running 32bit or not, since with time I had forgotten.
Note: does not check _hardware_ e.g. /proc/cpuinfo but rather the kernel installed
Easy and direct way to find this out.
Get max number of arguments that can be accepted by the exec() system call.