Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Posted 07-31-2014 at 01:16 AM bythe dsc (linux-related notes)
Updated 07-31-2014 at 01:39 AM bythe dsc(deweirdifying the wording)
It always annoys me when I see things like "cat file | grep pattern | sed ..." when just "sed" would suffice, but I was guilty of using seq only to shuf random numbers when shuf can do it by itself.
shuf -n 1 -i 0-999999999
(apparently the largest number you can get is $((9999**8)) (9999^8 in bash-math), larger than that it gets negative, for some reason )
You also don't need to do some fancy "echo -e" with several...
Posted 07-30-2014 at 10:09 PM byttk (Unpopular Positions: One Geek's Take)
Two things: First, my wife tells me this blog's interface sucks, and she hates trying to read it. Apparently it's horrible for users who do not have an LQ account. I'm kicking the tires on some alternatives.
Second, I've uploaded Time::TAI::Simple to CPAN. It provides a high-resolution count of seconds elapsed since the beginning of the epoch, much like Time::HiRes, but un-"corrects" for the IETF's leapsecond adjustments.
In around 15 minutes, the time it takes to install Ubuntu Server Edition, you can have a LAMP (Linux, Apache, MySQL and PHP) server up and ready to go. This feature, exclusive to Ubuntu Server Edition, is available at the time of installation.The LAMP option means you don’t have to install and integrate each of the four separate LAMP components, a process which can take hours and requires someone who is skilled in the installation and configuration of the individual applications. Instead, you get...
For some reason I was having issues with some zip files. "Unzip" wouldn't unzip them, but ark (and perhaps other GUI archivers) would.
Fortunately ark can be used as a command line tool as well, which can be better than needlessly opening the full GUI just to make something so trivial. You still can invoke just the dialog, anyway.
But in order to extract something, for example, one can just use:
I have compiled yet another Ubuntu/Debian kernel for 64 bit systems. This time kernel 3.16.0-5-exton, equivalent to Kernel.org’s kernel 3.16.0-rc6, released 140718.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.