munmonlisme
librarianship & fatherly love
librarianship & fatherly love
Any of you encountered "Argument list too long" problem when trying to mass delete files in a folder? Today I want to erase more than a million files in a folder. So I ran "rm -rf *.jpg" and the "Argument list too long" error was returned. What the hell???
So I quickly google this Argument bla bla bla thinggy.
This is what I understand so far:
The reason for this annoyance is that Linux kernel has a limitation of bytes it can process through as arguments in exec() commands. [http://netweblogic.com/linux/linux-commands-argument-list-too-long/]
The system could not handle the number of arguments given to a command or program when it combined those arguments with the environment's exported shell variables. The argument list limit is the size of the argument list plus the size of the environment's exported shell variables.
The easiest solution is to reduce the size of the parent process environment by unsetting extraneous environment variables. (See the man page for the shell you're using to find out how to list and change your environment variables.) Then run the program again.
An argument list longer than ARG_MAX bytes was presented to a member of the exec() family of system calls.
Moral of the story: Everythings has its own limitation. ;)
How to solve this?
According to Alessandre S. Naro in "Argument list too long": Beyond Arguments and Limitations, he points out 4 ways to overcome this problem.
Method #1: Manually split the command line arguments into smaller bunches.
Method #2: Use the find command.
Method #3: Create a function. and
Method #4: Recompile the Linux kernel.
So I choose method #2. Easier and faster. You can run this in single command. Example:
find /opt/library/images/bookcovers_tiny/ -name '*.jpg' -print0 | xargs -0 rm -f
Done. All files deleted. Yeay!!
Sometimes after reboot, Linux Date & Time Settings will go haywire for no apparent reason. It will be delayed for several minutes. I do not know, maybe this happens only to my server. For security reason me office blocks access to port 123 – NTP port.
Server has 2 types of clocks just like any PCs. First is the System Clock and the other one is the Hardware Clock. Take Hardware Clock as PCs CMOS’s clock and System Clock as Windows Clock.
Hardware Clock | Runs forever until your server goes kaput.
System Clock | Runs when your system is running
So, How do you correct Server’s Time & Date setting? This is very important for one of these reasons
You must be Root to use this command
Example No.1 : Set Date and Time to 3 JUL 2011 16:00:00
# date -s "3 JUL 2011 16:00:00"
Example No.2 : Set Time Only to 16:00:00
# date +%T -s "16:00:00"
Then run this command
# hwclock --systohc
To sync Hardware Clock with System Clock
Good Morning and Salam Sejahtera
Recently, the Zionist is at it again. Killing and destroying the people of Palestine. All the people of the world can do only one thing that is to condemn and condemn again. Nothing more. Or start to boycott these so called Jews product.
Tell you one thing, this boycotting will do nothing. Save that for even crumble the Economy of that Rogue State. What a futile actions. We have to boycott this and that la, boycott Nokia and Intel la. Come one man, nothing will happen.
If you want to start boycotting start with their "stronghold" 1st, the Hollywood. If you can do this, to stop watching movie, stop enjoying all series and sitcom (preferably 24, Heroes, American Idol, Seinfeld and etc) than please with all my respect, continue to boycott.
Don't talk like bastards if you cannot stop enjoying Hollywood products. For these are the real Jews products. BTW, we are not concerned with Jews here. The culprit, the real culprit is ZIONIST not the Jews. Boycott Israeli product la, baru betol!!
Capisc!!!
Good Evening,
Ubuntu the best Linux Distro (me thinks) is releasing the next version 8.10 Intrepid Ibex soon. As of now, Release Candidate is available here. Shall I be upgrading to the latest version? I don't think so. Am feeling lazy to re-install Ubuntu. Hear me when I say, I don't like upgrading Ubuntu or any other Operating System. There's nothing better than fresh installation of an Operating System. Furthermore, am on LTS now. Why should I upgrade? I would if I have the time. Heh. /rolling eyes.
Let's see, what Ubuntu 8.10 is offering. Usually, new release has better applications and new kernel. However, one will never know what lurks behind. /sinister smile. Upgrading is not for the fainted heart. Save it for the bold. Let the experienced users test and conclude it in the future. Well, we will know. Okay, on the new features now.
As promised by Canonical Foundation, for every 6 months, new version of Ubuntu will be released. The new 8.10 Intrepid Ibexis is scheduled to be released on 30th October 2008.
Do you believe in Ubuntu? Well, I believe. What about you?
Good Evening and Salam Sejahtera
It's 12.00AM in the morning. Should not be a problem. I will be on night shift tomorrow. Nice huh? I can wake up late in the morning, but with a price... I have to stay until 8.00PM. Coolies. It's raining, not much differences.
Okay, just found out one cool application which would act like your virtual storage. Syncing everything you save with your computers. Hence, opening again with different computer. A very good utility for the people on the move. I was playing with my Ubuntu Tweak when I came across with Dropbox in the 3rd party sources list. I was keen to find out what is this Dropbox all about.
A simple statement to enlighten me "Dropbox is the easiest way to share and store your files online". Well, it is an on-line storage where it can sync to your linked computers. It acts just like your normal folder in your computer. But whatever goes inside that folder will be uploaded to the server (hint: sync). It is safe and protected. However, one should not put confidential materials there. Just as precautions.
Try it now. A very nice application.
BTW, this application is available for Linux, Mac and Windows
Good Evening Boys and Girls. Salam Sejahtera to all.
I have been discussing about this since my last blog, munmonlisme ver.1. Well, that did not survive my last financial crisis. Hence, the new version emerges. On with the topic.
Let me see, my first computer was a 8086 in 1986. It was a new experience for me. All I ever knew was playing games. Dig Dug, Alleycats and Montezuma Curse. That was a long time ago. There's no Windows or any Shell Management at that time. Just plain CMD. MS-DOS was the tool of the trade. Funny to think about it.
Then, the technology moved on. 286, 386 and 486 and finally Pentium. My OS were Windows 3.11 and Windows 95. Followed by Windows 98 and finally Windows XP. When I could afford me own Personal Computer, Windows XP was the OS of choice. Installation was easy and straight forward. Games were plentiful for Windows XP.
There was a time, I was eager to try Linux and gave Mandrake a chance. I did not like it. Trashed it and reverted to Windows. Then came Red Hat, but hey no MP3 support. At that time, I had no Internet connection to seek for help. SuSe came along after that and still dual booted with Windows. I used it for a while.
One day, I came to know about Ubuntu, new Linux Distro and decided to gave it a try. My final days with Windows was a result of one stupid mistake. Truthfully, I am careless, I pressed next and next and next without realizing the cause. Boom!! me Windows Installation and all Important files were gone. lol. Idiot I was at that time. However, I was bold at that time to try out Ubuntu. What was the used of returning to Windows if all files and installations were gone. Go ahead with Ubuntu, this I said to me self. That was in the year of 2006.
I am considered lucky to have the wits and ability to learn something new very fast. Fast learner as all call it. PHP, VB, MySQL, Linux even Windows, I have no idea at first. All of my IT knowledge are learnt by reading and experience. Self-Taught almost all of them. You've got to have the willingness to learn to be successfull. Here I am today with Ubuntu as my only OS.
What makes me love Ubuntu, I can never tell. I just love it. Plus, the new Visual Effect enchants me. Hey, Windows XP and Vista can't do what Linux can. Linux users do not have to be wary of Viruses and malwares, spywares, and trojan. Very true, Windows own the dekstop but the numbers are diminishing as the day passes. Same with the case of Internet Explorer and Mozilla Firefox. Heh, I just love open source applications.
Take Care now.
Good Morning
It has been a while. Just got back from Sabah. Damn tired I am. Fasting, working, travelling and best of all, saved and sound. Am on leave this Monday. Hell no. Will not go to work since am too tired. And I miss Loktaramish the Rogue, me alternate life of World of Warcraft. I am happy to be able to touch my Keyboard, Mouse and the odour of this little room. I'm home again.
Long time ago, I installed XBMC onto my Xbox. Eversince, I have Xbox 360, that old good Xbox rarely gets my touch. I miss XBMC though. While browsing, I came across a post in Lifehacker about XBMC being released to all platform. Previously, it was available only through SVN, and kinda buggy. It would crash whenever I played Morcheeba. Funny, it would crash with that particular song. I donno you tell me!!!
Alas, after years of development, finally, they have released Beta Versuin and works like a charm. On my OS, the Great Ubuntu, XBMC rules. Forget Amarok, forget Elisa and forget all, XBMC is all in one application. One App to rule them all.
XBMC manages to take me away from Loktaramish for a while. Sweet~~.
What, you do not know what the hell is XBMC? Such a waste of time. Click here to learn more.
Install and get it run. You'll never turn back.
Good Evening,
Yesterday, I had hard time to sleep due to daytime sleep. Well, it's suck. Since I could not sleep, I spent my time with my Ubuntu, trying this Samba Application. Once of the functions, messed with my sudoers file. I can't do SUDO anymore. Shit. How to edit that file if I can't SUDO.
But, as usual, no need to panic as I had (I though I had, but no!!!) the Ubuntu LIVE CD. I just could not find the CD. Double shit for me. So I use the Alternate Installation CD which had this recover function. Use that to edit the sudoers file. Done, save and reboot the file. But nothing happened!!! Did I mess with my boot loader. I believed I did. I did chose the option to amend Grub. But that was on the other HDD not the main HDD.
As usual, I always learnt my lesson through the hard way. So i decided to do Clean Re-installation of Ubuntu. Aaa. That's nice. I would have Fresh Installed Ubuntu. With a price - to lose all of my files (MP3, WMA, OGG, JPG, WMV, World of Warcraft, XBMC, Diablo2 and etc. Well, it's okay. I have backups. Numerous of them, here and there. Everywhere.
Finish installation, reboot and the same problem. Nothing but blank screen. Arghhhhh. Reboot and entered CMOS and here the real problem lay, the CMOS setting was not correct. Boot order was not correct. Then, I smiled and said "God! Why must you punish me this way all the time??!!"
Now, I have Fresh Ubuntu Installed and need to reinstall the God of All Games : World of Warcraft. The tedious process with 10 CDs (Both WoW Classic and the Burning Crusade).
So, tonight will be World of Warcraft Installation Night. Realm will be offline, so no worries!!!
ohhh munmon you suck big time this time!!!!