"Linux" Help and InformationWhy is shell script programming so fun?
Dave, can you tell me, how come I enjoy shell programming more than other types of programming (Javascript, Java or C)?...
Continue reading about Why is shell script programming so fun? How to calculate available disk space on Linux?
Dave, I know how to check for free disk space on Windows XP, but how do I check for the amount of free disk space available on a machine running Linux (CentOS, Fedora, Red Hat, Ubuntu, etc.)?...
Continue reading about How to calculate available disk space on Linux? What version of Linux am I running?
I have a Virtual Private Server or a dedicated server running Linux, but I'm not sure which version of Linux (Fedora, CentOS, Debian, etc.) the server is running. How do I find out?...
Continue reading about What version of Linux am I running? How do I set my Terminal / shell PS1 prompt?
I have Mac OS X 10.5.8. When I try to change my unix shell prompt by putting the line: export PS1='mac> ' into my .bash_profile, the prompt is changed but the cursor is in the first column (over the "m" of my prompt) and any typing overwrites the prompt....
Continue reading about How do I set my Terminal / shell PS1 prompt? How can I connect to a printer in Mac OS X Snow Leopard?
I move around quite a bit as a road warrior and though I don't often need to print, sometimes being able to produce a hard copy is definitely helpful. Problem is, I don't want to bother people in different temporary offices with configuration details: I'm running Mac OS X Snow Leopard on my MacBook Pro, is there some easy way to add printers on the go?...
Continue reading about How can I connect to a printer in Mac OS X Snow Leopard? How can I keep a compressed Linux archive up to date?
We have a situation where we need to keep a ZIP archive of some data files available on our Ubuntu Linux server so that our satellite offices can grab the information through slower data lines. Problem is, the underlying files change 2-3 times a day. What's a quick, efficient way to only rebuild the ZIP archive file on our Linux system if a file's changed, but leave it as-is if everything's stayed the same?...
Continue reading about How can I keep a compressed Linux archive up to date? How can I convert map addresses into latitude longitude?
I'm trying to write a shell script that will accept a street address and output the latitude and longitude of that address, for geocache purposes. How can I do that?...
Continue reading about How can I convert map addresses into latitude longitude? How do I install Ubuntu Linux on a Netbook?
I just bought a slick ASUS Eee PC netbook, model 1000HA, and want to configure it to work with both Microsoft Windows XP, which is already installed, and Ubuntu or some other flavor of Linux. How can I do that without having to reinstall WinXP?...
Continue reading about How do I install Ubuntu Linux on a Netbook? How can I unwrap or decode Web URL redirects?
I'm frustrated as heck! I clicked on a URL and next thing I knew I was on a completly different site that was quite, um, inappropriate for work. I know how to write a redirect in my own script, but I am wondering: how can I unwrap, decode, slow down or trace a sequence of redirects so I can see what's going on? If it helps, I have a Linux system I can use for...
Continue reading about How can I unwrap or decode Web URL redirects? How do I install Apple Developer Tools on my Mac?
I seem to recall a long time ago that when you installed Mac OS X you also got a bunch of cool Unix command line developer tools, including a C compiler, debugging tools and much more. I'm taking a C programming class at the local community college and would like to install these tools, but have no idea where they are any more. Help?...
Continue reading about How do I install Apple Developer Tools on my Mac? How do I step through numeric values in a shell script?
Please, gimme a advice how to correctly use loop "for i in `seq 1 10`" for Mac OS X, echo $SHELL->/bin/bash, because when I write simple strip: for i in `seq 1 10`;do echo $i;done it outputs -bash: seq: command not found....
Continue reading about How do I step through numeric values in a shell script? What does the $( ) notation mean in a Bash script?
On page 329 (Hour 16) of your book Teach Yourself Unix in 24 Hours is the example: value=3 ; string="my horse Horace"test $value test `wc –l filename` -ge 10000 If I try this with this code: #!/bin/sh/value=3;string="my horse Horace"test $value test `wc -l ched4` -ge 10000 I get:- syntax error at line 3: `(' unexpected Are you able to quickly explain what the line test $value...
Continue reading about What does the $( ) notation mean in a Bash script? How do I detect an iPhone user coming to my site?
Amazon.com's jumped on the wagon, and Meebo has too: they automatically give you a different version of their site if you're browsing from an Apple iPhone. I want to do that too. How the heck do I detect that a visitor has an iPhone?...
Continue reading about How do I detect an iPhone user coming to my site? How do I change my PS1 command prompt in Bash?
I have read about 15 chapters of your book (Teach Yourself UNIX in 24 Hours) so far. We are using vi. On the PS1 command, how do I see what is in it so I can add to it and not change what is already there? We are using bash. What I see now is: ctdaywbsdv:/u/gwilki$When I enter ‘echo $PS1’ I get: $ \[\e[0m\]How do I keep the above and add the histcmd option? What...
Continue reading about How do I change my PS1 command prompt in Bash? Article: Running Yellow Dog Linux on a Sony Playstation-3
In which we get the hottest video game system from Christmas 2006 and turn it into a Linux box? You bet! If you're still thinking about video game systems as being just a wee bit more technologically advanced than an old Coleco or Atari 800, you've got quite a surprise coming the first time you crack open the proverbial hood. While the new Nintendo Wii (pronounced "wee", oddly enough) has some slick hardware, as does...
Continue reading about Article: Running Yellow Dog Linux on a Sony Playstation-3 How do I get "vi" shell edit mode in Mac OS X Terminal?
I just finished Learning Unix for Mac OS X Tiger, and think it is an excellent little resource. I'm recently out of school, a school where we weren't taught anything about Unix, just enough to get by. I started work with the data converter team at Agilent labs, and have been able to glean quite a bit off of them (considering many of them were either directly or indirectly responsible for writing many of them...
Continue reading about How do I get "vi" shell edit mode in Mac OS X Terminal? How can my shell script test to see if it's already running?
I have a script that does an ftp from a SCO UNIX server to windows server to get files from the windows server. The script is set in the cron to run every xx minutes. Sometimes the script will hang and leave a process running. This can bog down the UNIX server. I want to be able to do two things. 1. I want to make sure that the script doesn't hang - so it...
Continue reading about How can my shell script test to see if it's already running? How can I count executable binaries on my Linux box?
I've been looking at your script to count executable binaries in the book Wicked Cool Shell Scripts and I think that there's a problem in the script. Specifically, what happens if I have a directory in my PATH more than once?...
Continue reading about How can I count executable binaries on my Linux box? How can I time portions of a Linux shell script?
Just picked up your book Wicked Cool Shell Scripts and already have one quick question: While working on the startup scripts, I would like to place log timers at certain portions of scripts. Is it possible to log point A at he beginning of a section, do the processing, log point B at the end of the section and then log B minus A so I know exactly how long a section took to process?...
Continue reading about How can I time portions of a Linux shell script? Why is Mailman complaining "Site list is missing: mailman"?
I've been running the Python-based "mailman" mailing list management program for quite a while with good results, but all of a sudden when I try to start it up I get the error "Site list is missing: mailman" and it won't start. What the heck? How do I fix this?...
Continue reading about Why is Mailman complaining "Site list is missing: mailman"? |
Search
Auctions & Online Shopping
Building Web site traffic Business & Management Cellphones and Mobile Phones CGI Scripts & Web Site Programming Computer & Internet Basics HTML, XHTML & CSS Mac OS X Advanced Mac OS X Basics Pay Per Click (PPC) Search Engine Optimization Shell Script Programming Sony PSP & Gadgets Sun's Solaris Unix The Writing Business Unix & Linux Basics Unix & Linux System Administration Weblogs and RSS Feeds Windows Basics d) None of the Above |