alexander Posted October 14, 2005 Report Posted October 14, 2005 What's your favorite Linux command/program(referring to command-line tools)? here are a few i like :)grep, fork, sex, emerge ... there's many more, so if you happen to guess one, i'll tell you why, and my use for them :) Quote
rockytriton Posted October 18, 2005 Report Posted October 18, 2005 I probably use awk more than anything, but on AIX not linux. Quote
rockytriton Posted October 18, 2005 Report Posted October 18, 2005 oh yea, don't forget this one, I use it all the time too: nohup Quote
alexander Posted October 18, 2005 Author Report Posted October 18, 2005 lets see some more good ones:ps -ef fls -lsahdudiffbgfgbc! - soo cool to use and is extremely useful Quote
rockytriton Posted October 19, 2005 Report Posted October 19, 2005 top - I wish that had that on AIX, it's such a pain to figure out the memory/cpu stats for all of my applications, I have to have the admin give me the info as it is now because I don't have access to the AIX tools that do it ;) Quote
CraigD Posted October 19, 2005 Report Posted October 19, 2005 diff The LCS problem, and the solution implemented in diff, are elegant, thought provoking, and imperfect. Quote
rockytriton Posted October 19, 2005 Report Posted October 19, 2005 I have yet to see a perfect diff tool. The one that ships with eclipse is pretty nice though Quote
Buffy Posted October 19, 2005 Report Posted October 19, 2005 Moribund and its not in the Linux dist that I know of: biff ps -ef || ps -aguxBuffy Quote
alexander Posted October 20, 2005 Author Report Posted October 20, 2005 actually this is an excellent one, so dont make the same mistake i did, of bothering to write your own prime factoring algorithm, it may be fast, but its not smart, referring to factor, its great, fast and excellent, whoever thought of putting it in, should told me, cuz i had to actually write not only a an extremely fast solution with bitmaps and a vector, but a recursive one too, so that first one could have ended in like 2 lines of code... Quote
rockytriton Posted October 20, 2005 Report Posted October 20, 2005 ok, here's my cool little script for replacing versions of my .jar files in all config files and scripts: #!/bin/sh SCRIPTS=`find . -name "*.*" -exec grep -l "$1" {} ;` for file in $SCRIPTS do echo "Editing $file..."; (cat $file; echo '') | sed 's/'$1'/'$2'/g' > ${file}.tmp; sleep 1; mv ${file}.tmp $file; done; oh, and by the way, here's a link to my unix shell scripting tutorial if anyone cares to check it out: http://www.dreamsyssoft.com/unix-shell-scripting/tutorial.php Quote
alexander Posted October 20, 2005 Author Report Posted October 20, 2005 here's my way of doing it:dispatch-confso, um 8 lines vs 1, i win :naughty: Quote
rockytriton Posted October 21, 2005 Report Posted October 21, 2005 bash: dispatch-conf: command not found Quote
alexander Posted October 21, 2005 Author Report Posted October 21, 2005 thats because one, you dont have dispatch conf installed, two you dont have a distro with a package management system therefore you can't install dispatch-conf as far as i can remember its a portage util... :) pbttt Quote
rockytriton Posted October 22, 2005 Report Posted October 22, 2005 ok, anyway, I doubt they have a version build for AIX, and anyway, I run it as one line since I wrote it as a shell script, so I still win :) Quote
alexander Posted October 22, 2005 Author Report Posted October 22, 2005 nope, I do, because i did not have to write a script and it does loads of stuff then blindfully replace stuff in config files, so pbttt I have a more powerful tool that i didnt have to write, and it is one line per execution, and therefore i win.Actually have a patch for it that makes dispatch-conf a lot more powerful, friend wrote it, allows you to do real cool stuff... Quote
rockytriton Posted October 22, 2005 Report Posted October 22, 2005 ok, ok, I say we just take out the yard stick and get this over with! :) Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.