|
|
Unix and Linux HelpInstall Ubuntu Linux within Parallels Desktop on Mac?I need to test out some Web site programming on a Linux system and have determined that the Ubuntu distribution is ideal. My question: what's the best, easiest way to install Ubuntu Linux on my Mac system so I can run all my tests?
Question answered on January 7, 2012 at 08:00 AM ::
Comments to date: 3
Copy and Paste from the Mac OS X Command Line?I am constantly running commands in Terminal.app on my MacBook and then copying and pasting the results into email messages or documents. Yes, I'm a tech writer. What I'm wondering is if there's any way to actually copy and past into the Mac system wide copy/paste buffer directly from the command line?
Question answered on January 3, 2012 at 08:26 AM ::
Comments to date: 1
Shell script to convert lowercase to title case?As part of a project I'm working on, I find myself deep in a Linux shell script, needing to have a subroutine that converts a sentence of all lowercase to title case. You know, from "this is a test case" to "This is a Test Case". Not every word, just the right ones. Doable?
Question answered on March 14, 2011 at 08:27 AM ::
Comments to date: 0
Can I script renaming files based on an XML data map?I have a folder full of files which are named with four digits and a file extension e.g. 0312.file and an XML-file describing the contents of these files. I am trying to do a shell scipt that will create folders and rename these files according to the xml, but I don't know how? This is a template of what the xml looks like: <section label="AA. category"> The script should represent the categories as folders containing the related topics, which should be represented as filenames.
Question answered on November 3, 2010 at 08:25 AM ::
Comments to date: 0
Test for valid numbers in a Bash shell script?In a different discussion on this site [see Redirecting input in a shell script] a visitor commented that "I was too busy trying to make sure the above post made sense that I forgot to ask for help. If you can, please post examples of how I can make the second argument a requirement and evaluate if it is a number. Thank you in advance!"
Question answered on October 25, 2010 at 07:35 AM ::
Comments to date: 0
Review: iSSH for the iPad/iPhoneIf you're running an online business like I am, there are times when you need to connect and log in to the server to tweak or check things. It can't be helped and while the Cpanel solution and related are often splendid, sometimes I just like to get bits all over my hands as I "go old school" on my server and use a command line. In those instances there's a nice solution on the Mac called "Terminal", included with Mac OS X, and there's a rudimentary terminal window app for Windows too, but once you move onto mobile devices of any nature, nothing's available. That's why I was so interested in iSSH [iTunes link], a low-cost iPad application that lets me connect directly to my Web server via a secure, encrypted connection (SSH = secure shell, it's the secure alternative to "telnet') from my iPad and, in case of a crisis, even my iPhone.
Question answered on September 2, 2010 at 08:31 AM ::
Comments to date: 8
Can I sequentially rename files in Linux?As part of some user interface testing I'm involved with on an Ubuntu Linux system, I find myself frequently having to rename groups of files in a sequential manner. That is, I'll have files like "output mm-dd-yyyy at hh:mm:ss" and need to rename them to "testrun-xx-file-yy". Is there any way to automate this so I don't have to go crazy typing?
Question answered on June 18, 2010 at 08:16 AM ::
Comments to date: 3
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.)?
Question answered on January 12, 2010 at 08:31 AM ::
Comments to date: 1
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?
Question answered on December 11, 2009 at 08:33 AM ::
Comments to date: 2
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?
Question answered on August 29, 2009 at 08:32 AM ::
Comments to date: 2
Are Unix, Linux and Solaris the same thing?I was using Sun Microsystems Solaris operating system at school for the last month. I was also told by my professor that it was also Unix operating system. Are Unix and Solaris the same thing? I looked online for screenshots of both and the results are practically identical to each other, as well as the screen I would look at while on-campus. I would like to add Unix and Solaris operating systems to my resume, but I don't know if it would make sense if they are one in the same. Please help.
Question answered on July 6, 2009 at 08:38 AM ::
Comments to date: 6
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?
Question answered on December 27, 2008 at 08:22 AM ::
Comments to date: 28
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 the task.
Question answered on September 4, 2008 at 10:24 AM ::
Comments to date: 2
How can I read a password without echoing it in C?I'm trying to figure out how to disable the echo flag in C. I want to do this because I am coding a C program that must ask for a users password, so I would like to disable Echo, let the user enter his password, then re-enable Echo.
Question answered on March 7, 2008 at 08:33 AM ::
Comments to date: 2
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 < $(echo $string | wc –c) test `wc –l filename` -ge 10000 If I try this with this code: #!/bin/sh/ value=3;string="my horse Horace" test $value < $(echo $string | wc -c) 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 < $(echo $string | wc -c) is actually trying to do? I don’t quite understand the $(…) part … and is the < performing a ‘redirection for input’ or is it meant to be ‘less than’?
Question answered on November 9, 2007 at 07:04 AM ::
Comments to date: 2
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 does the \e and 0m\ mean? What do the [] the square brackets mean? I can’t find a man page for PS1. How do I find the rest of the options for this PS1?
Question answered on July 6, 2007 at 07:39 AM ::
Comments to date: 1
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 commands in common use today). Thus, I'm often embarrassed to ask them questions about exactly some of the stuff you cover in the book.
Question answered on November 5, 2006 at 12:03 PM ::
Comments to date: 3
Can I change VNC on Ubuntu to use a different port?I have 2 Ubuntu Dapper machines at home. One is going to a college dorm with may daughter in a couple weeks. I can get her desktop on my computer through VNC here at home. It's using port 5900. Is there a way to know whether I'll be able to reach her machine through this port when she's at college? I have no idea how they manage their network - nor do I care to ask! On a quick look, I could not find how to get her VNC server to listen to a different port - or maybe this is done through ssh?
Question answered on August 19, 2006 at 07:38 AM ::
Comments to date: 0
Do most music CDs have 12 tracks?This might sound like some wild conspiracy theory, but I'm looking at my music collection and it sure seems like most of them have exactly 12 tracks, no more, no less. Is there some marketing reason this would be the case, or am I witness to some great conspiracy? :-)
Question answered on July 14, 2006 at 09:03 AM ::
Comments to date: 5
How do I configure my Solaris VPN network?I have 5 offices in Texas VPN'd into our Seattle office where we have two Solaris Servers. I can ping the Solaris servers from within our Seattle office; however I cannot from the remote offices. I have checked the VPNs and I can ping any other piece of equipment from the remote sites except the Seattle servers. When trying to ping a computer at one of the remote sites from the Solaris servers to a computer I get the following reply: " ICMP Communication Administratively Prohibited from gateway". I'm questioning the ip configuration of our Solaris servers in Seattle. When running the command "/sbin/ifconfig -a/" , I received the following in return: lo0: flags=1000849 The segment in Seattle is 10.10.10.0 with a subnet of 255.255.255.0 and a Gateway 10.10.10.1; however, this is not what I see above. One of the remote sites uses the 10.140.59.0 segment. Do I have to configure routing tables within each Solaris or just properly configure the ip settings? Can you comment?
Question answered on May 15, 2006 at 10:38 PM ::
Comments to date: 0
What is a WEP key?Hi I'm having a problem with my Sony PSP and connecting it to the internet see I can get through everything but the WEP code. Is there a common WEP key? Are they all different? How would I be able to get mine? I searched everywhere but I still can't find it! HELP ME PLEASE!
Question answered on April 22, 2006 at 09:08 AM ::
Comments to date: 67
How do I configure a DMZ on my local LAN?A question about DMZ's: We run a privately addressed network(192.168...) on a workgroup. We have a server running DHCP. If I set up a DMZ on a managed switch I would like to know if a potentially infected (spyware/trojans) PC which is then plugged into it would be able to infect the server.
Question answered on April 21, 2006 at 01:02 PM ::
Comments to date: 4
How can I read a password without echoing it in C?I'm trying to figure out how to disable the echo flag in C. I want to do this because I am coding a C program that must ask for a users password, so I would like to disable Echo, let the user enter his password, then re-enable Echo.
Question answered on March 7, 2008 at 08:33 AM ::
Comments to date: 2
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 < $(echo $string | wc –c) test `wc –l filename` -ge 10000 If I try this with this code: #!/bin/sh/ value=3;string="my horse Horace" test $value < $(echo $string | wc -c) 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 < $(echo $string | wc -c) is actually trying to do? I don’t quite understand the $(…) part … and is the < performing a ‘redirection for input’ or is it meant to be ‘less than’?
Question answered on November 9, 2007 at 07:04 AM ::
Comments to date: 2
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 does the \e and 0m\ mean? What do the [] the square brackets mean? I can’t find a man page for PS1. How do I find the rest of the options for this PS1?
Question answered on July 6, 2007 at 07:39 AM ::
Comments to date: 1
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 commands in common use today). Thus, I'm often embarrassed to ask them questions about exactly some of the stuff you cover in the book.
Question answered on November 5, 2006 at 12:03 PM ::
Comments to date: 3
Can I change VNC on Ubuntu to use a different port?I have 2 Ubuntu Dapper machines at home. One is going to a college dorm with may daughter in a couple weeks. I can get her desktop on my computer through VNC here at home. It's using port 5900. Is there a way to know whether I'll be able to reach her machine through this port when she's at college? I have no idea how they manage their network - nor do I care to ask! On a quick look, I could not find how to get her VNC server to listen to a different port - or maybe this is done through ssh?
Question answered on August 19, 2006 at 07:38 AM ::
Comments to date: 0
Do most music CDs have 12 tracks?This might sound like some wild conspiracy theory, but I'm looking at my music collection and it sure seems like most of them have exactly 12 tracks, no more, no less. Is there some marketing reason this would be the case, or am I witness to some great conspiracy? :-)
Question answered on July 14, 2006 at 09:03 AM ::
Comments to date: 5
How do I configure my Solaris VPN network?I have 5 offices in Texas VPN'd into our Seattle office where we have two Solaris Servers. I can ping the Solaris servers from within our Seattle office; however I cannot from the remote offices. I have checked the VPNs and I can ping any other piece of equipment from the remote sites except the Seattle servers. When trying to ping a computer at one of the remote sites from the Solaris servers to a computer I get the following reply: " ICMP Communication Administratively Prohibited from gateway". I'm questioning the ip configuration of our Solaris servers in Seattle. When running the command "/sbin/ifconfig -a/" , I received the following in return: lo0: flags=1000849 The segment in Seattle is 10.10.10.0 with a subnet of 255.255.255.0 and a Gateway 10.10.10.1; however, this is not what I see above. One of the remote sites uses the 10.140.59.0 segment. Do I have to configure routing tables within each Solaris or just properly configure the ip settings? Can you comment?
Question answered on May 15, 2006 at 10:38 PM ::
Comments to date: 0
What is a WEP key?Hi I'm having a problem with my Sony PSP and connecting it to the internet see I can get through everything but the WEP code. Is there a common WEP key? Are they all different? How would I be able to get mine? I searched everywhere but I still can't find it! HELP ME PLEASE!
Question answered on April 22, 2006 at 09:08 AM ::
Comments to date: 67
How do I configure a DMZ on my local LAN?A question about DMZ's: We run a privately addressed network(192.168...) on a workgroup. We have a server running DHCP. If I set up a DMZ on a managed switch I would like to know if a potentially infected (spyware/trojans) PC which is then plugged into it would be able to infect the server.
Question answered on April 21, 2006 at 01:02 PM ::
Comments to date: 4
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?
Question answered on April 10, 2006 at 10:35 AM ::
Comments to date: 3
Why do my FTP transfers all freeze up?I've been trying to copy some files off an FTP archive, but every time I go to do the transfer, it says "Entering Extended Passive Mode" and never gets any further. My conclusion: this passive mode thing is a bust. How can I transfer the files without using passive mode? I'm using ftp from within a Terminal on my Mac, by the way.
Question answered on April 8, 2006 at 10:48 AM ::
Comments to date: 17
How can I check disk quotas on my Verio VPS account?I have a couple of clients who are on the same Verio/NTT Virtual Private Server (VPS) system, and I want to have some simple script to check their disk usage. It's not a simple "du" sort of task, however, because of the peculiarities of the VPS environment. Any ideas?
Question answered on February 3, 2006 at 04:15 PM ::
Comments to date: 0
How can my server be DNS spoofed?Help! For some reason when I try to use "ssh" to connect to my server from my Mac, it fails and is saying that I might be a victim of a "DNS Spoof"? What's going on, and how do I fix the problem?
Question answered on January 19, 2006 at 08:00 AM ::
Comments to date: 2
How do I deal with angry customers?I have a big problem which frequently loops me. I am in the field of IT support, and when a customer comes to me and is short tempered, I really don't know how to convince them that their request is not my part of job and someone else should attend to it. This happens to me at least 4 - 6 times a week. Can you please tell me how I can answer nicely about the job, and give me some suggestions about handling customers over the mail, phone and face to face in tough times?
Question answered on January 12, 2006 at 09:57 AM ::
Comments to date: 3
How can I run an app if another app is running?I need to run a Unix application if a different application is running, from within a shell script. How do I do this?
Question answered on January 9, 2006 at 11:16 AM ::
Comments to date: 2
How do I find all child processes in Unix?There is a process that must be shutdown for maintenance purpose every morning at 5:00 am. Usually it spawn several children and sometimes some of those children don't die, so the parent process won't die either. When the application starts up again it raises a new parent process but in confict with the old one that hasn't died yet. All I need is kill the childs of the old process. How can I look for every process when I know the parent process id?
Question answered on January 4, 2006 at 10:21 AM ::
Comments to date: 10
Former admin is hacking into our Mac server, help!Dave, we have a server security problem in Mac OSX, it is being remotely accessed by a former sys admin who has been stealing our business and the webfiles that go with them. Could you work with me to help lock down this machine? He set the machine up, it is one of several we run. As a result, he knows the root level password. I am finding when we try to change the MySQL root password, which is the same, the websites which rely on MySQL can no longer "see" their data tables. We also must shut out this fellow's access through terminal, or change the server's root name and pass. Help!
Question answered on January 2, 2006 at 12:12 AM ::
Comments to date: 4
How do I mask a password from "ps"?i need to run a process, PB, and keep it running, for avoiding problems i run it as background providing the user, and password, for connecting to oracle, this with the command: PB -u myuser -p my password & but by using 'ps -ef | grep PB' anyone can see the password. There is another way to run the process, run it in foregroung: PB -u myuser and it prompts for the password I would like to run the process in background, but avoiding the password to be shown with any 'ps'?
Question answered on November 23, 2005 at 04:03 PM ::
Comments to date: 1
How can I generate reports in Linux with an Awk script?I'm trying to write an awk script that will take a text file phone report from a windows box and break it up into smaller text files. I know it'll only take a few minutes, but I'm not all that familiar with AWK and slogging through this O'Reilly book is really starting to tick me off. Any chance you can help?
Question answered on November 18, 2005 at 04:50 PM ::
Comments to date: 1
My background jobs in Linux have become invisible?Last night i started downloading all of Fedora core via rsync. It was getting late, so I put it in the background and logged out. i just logged in this morning, and wanted to see where it was at, so I typed "jobs", but surprise, it isn't there. I know it's still running, because the lights on my hub are still blinking, it shows up in "top", and i can see (du -bs fedora/) that the folder is still growing. How do i get the output back on my terminal?
Question answered on October 17, 2005 at 06:33 AM ::
Comments to date: 2
Sony PSP Connected to Linux Systems?I want to transfer music and movies to my Sony PSP, on my computer I'm using Suse Linux 9.2. What kind of program or software can I use? The problem is that my computer can't find the Sony PSP when I plug it in the USB port.
Question answered on September 29, 2005 at 12:13 AM ::
Comments to date: 6
How do I set the shell prompt in Mac OS X Terminal?I'm new to Mac, last Apple I owned was a IIe in the 80's. This question is related to your book Learning Unix for Mac OS X Tiger book, page 41 "Changing the Command Prompt. In this section you give the following command for changing the prompt: PS1= "? " I typed this, but got the following response from the terminal window: -bash: ? : command not found What am I doing wrong?
Question answered on September 12, 2005 at 05:15 AM ::
Comments to date: 6
How do I install DHCP on my Linux Server?I am planning to install DHCP on my Linux Server. I do not know that much in Linux (Red Hat), however. How can I install and configure a DHCP server on my system?
Question answered on September 5, 2005 at 04:58 PM ::
Comments to date: 25
What does "cat -" do on the Unix command line?Hello I would like to know the what exactly does cat - mean in Unix? I was recently reading through an article that mentioned this command and couldn't understand what it did.
Question answered on August 19, 2005 at 09:36 PM ::
Comments to date: 3
Latest edition of "Teach Yourself Unix in 24 Hours"?I received this lovely email message from a reader this morning: "Just wanted to thank you for "Teach Yourself Unix in a Week." I read the whole thing cover to cover back in '94, when I was sleeping on a cot at work (!). It got me started in the world of Unix and has provided me employment ever since. My buddy Nick and I owe both you and Kamran Hussein a night of beers for kicking off our sys admin careers."
Question answered on August 12, 2005 at 05:02 PM ::
Comments to date: 5
Slackware Linux screen resolution problem?I am using Slackware 10.1 GNU/Linux? OS and quite happy with that. Though I am an advance user, I am having a problem with that! I want to set the screen resolution to 1152 X 864 with 75Hz Monitor VF that works well with dual boot Windows 2000 Pro. Currently Slackware shows, 800 x 600, 1024 x 768 and 1280 x 1024 (60 Hz). I tried with XorgConfig file but in vain. So, what do you think?
Question answered on June 13, 2005 at 06:12 AM ::
Comments to date: 3
Can my PATH include directory names with spaces?Dave, I would like to use an environmental variable to change directories and included files into vim on Mac OS Tiger. I've found that this works:export pm="/volumes/Macintosh HD/Documents/pmwiki" for shell commands, but then I have to use something like: cd "$pm" Is there a better way which doesn't require the double quotes? Also, is there some interaction with the PATH variable?
Question answered on May 11, 2005 at 06:18 AM ::
Comments to date: 6
How can I hide passwords in a shell script?Dave, we have to do sudo in a shell/perl scripts for certain commands. As you know sudo needs password to be supplied. sudo has -S option for stdin. For example: echo $pw | sudo -S command Assume, somehow, we figure out the password and pass it in for the above echo. But, the buggest concern is, if someone does a "ps", one will be able to see the password. The above example is part of a shell script and what we need to know is how do we hide the password?
Question answered on May 6, 2005 at 01:33 PM ::
Comments to date: 11
How do I enable root login with ssh?Dave, I've been using ssh like a good Internet citizen to connect to my remote server, but for security reasons the ISP has disabled root login from ssh on every server. Problem is, I really need to be able to log in as root occasionally. How do I re-enable it?
Question answered on May 4, 2005 at 10:02 PM ::
Comments to date: 19
How do I delete all occurances of a file in Linux?How can I delete one file from every place on my disk using Linux? In Windows' I'd open up a command window and use the command del archive.txt /s but what's the Linux equivalent?
Question answered on April 21, 2005 at 06:01 AM ::
Comments to date: 6
Where can I find docs for Sony DDS hardware?Hi Mr.Dave, I am Max from Italy and I am a technician. At the moment I am searching for tutorials or service manuals about DDS2-3 and AIT1-2-3 like the SONY SDT-7000, SDT-9000, SDT-10000 and SONY SDX-300C, SDX-400C, SDX-500C but with no results!! I strongly need these documentations, because i must repair these DAT units. Helicoidal scan technology is used in these devices and our clients use those under SCO OPEN SERVER 5.0.4. I have already requested this material from SONY, but their answer has been negative.
Question answered on April 10, 2005 at 04:54 PM ::
Comments to date: 1
Porting C programs from Windows to Unix?Dave, I read your books Teach Yourself Unix in 24 Hours and Wicked Cool Shell Scripts and since then I can't imagine working again on a system like windows! My problem is that I've started to make my C files Unix-compatible but I can't find a command for C in Windows that does the same thing as system("cmd") for Unix. Any suggestions?
Question answered on April 1, 2005 at 04:42 AM ::
Comments to date: 11
Configuring Squid as a Linux Proxy Server?Dave, I am running an Internet Café in which I have about 10 workstations and one server. Now I am planning to configure a proxy server on LINUX for my cafe to improve performance in browsing. For this I have installed Complete REDHAT 9.0 in a machine equiped with 1.3G RAM, 80GB HDD, 1GHz MP, Intel P4, plus 2 NICs (Real Tech). But I have no idea about how to configure PROXY on it. Kindly let me know about any links or tutorial which can help me in a jumpstart. I do not want to mess with linux deeper. I just want to sonfigure PROXY and that is it.
Question answered on February 24, 2005 at 05:44 AM ::
Comments to date: 68
How do I change the hostname in Solaris 9?Dave, I have just purchased your book Solaris 9 for Dummies to help me learn the OS. I have been accustomed to the rubbish Windows XP Pro system and fed up with crashes and the rest of the multitude of problems that are inherent to Windows therefore I purchased a Sun Ultra 5 workstation (refurbished) and really want to get to know it and how to use it.
Question answered on February 21, 2005 at 10:02 PM ::
Comments to date: 1
How can I quickly create millions of tiny files in Linux?Dave, I have searched the web over and can't seem to find an appropriate answer to this question. I have a need for a script that will create millions of 1-5Kbyte files in a linux filesystem for testing purposes. I have to do this on a regular basis and it would be really cool to have it scripted. I am not sure what the quickest way to do this would be?
Question answered on February 10, 2005 at 04:04 PM ::
Comments to date: 18
How do I flatten a directory structure in Unix?Dave, how can I flatten a directory structure? I've got a directory "foo", with many more sub-directories and files within. I want to take all the files from all levels beneath foo and put them in foo itself. I've tried this: find . *.mp3 -print0 | xargs -0 mv . but I get an error on the mv command that I can't figure out. Help!
Question answered on January 31, 2005 at 09:32 PM ::
Comments to date: 13
Where can I find the 'rev' utility for Solaris?Dave, I am a Sun Solaris sysadmin and really liked your book Wicked Cool Shell Scripts. However, I don't seem to find the "rev" utility on any of my Sun servers running Solaris 2.6, 7, 8, and even 9. I couldn't find it on the sunfreeware.com site either. Could you tell me where I can find it?
Question answered on January 28, 2005 at 07:12 PM ::
Comments to date: 1
How do I selectively copy files from a directory structure?Dave, I want to copy a directory tree BUT I want to specify the root of the operation and the destination directory and then specify name/type patterns a la find. The result I want is the root at the destination and then only the directories which have files that match the pattern and the files themselves. Does that make sense?
Question answered on January 27, 2005 at 03:56 PM ::
Comments to date: 9
Why do the fonts in Firefox Linux look so terrible?Dave, Why is it that, "out of the box", the Firefox browser looks great (font wise) when run on a Windows OS but looks terrible (almost too small and unreadable) on any Linux OS I have tried it on. It is probably the number one killer reason for me not switching to Linux.
Question answered on January 26, 2005 at 07:16 PM ::
Comments to date: 28
How do I list files that don't match a pattern?Dave, I have a straightforward Linux question that's got me stumped. I have a directory with lots of files that include an underscore, but I want to produce a listing of files that don't have the underscore, not those that do have it. I can get it with a combination of ls, grep -v and such, but it's painful and convoluted. Is there a simpler solution?
Question answered on January 19, 2005 at 03:34 PM ::
Comments to date: 5
How do I set up Mail Filters in Ximian Evolution on Linux?I've been migrating to Ximian Evolution on my Linux box and I love it, but I haven't been able to figure out how to set up all the mailing list rules I want to add to the program. Can you help me figure out how to set up a mailing list rule?
Question answered on January 12, 2005 at 10:58 AM ::
Comments to date: 0
How do I search lots of files at once?Dave, I need to conduct a number of searches through more than 2500 text files. Each search is for a different specific text string. The text files are on my Mac hard drive (Mac OS X 10.3.7) and are arranged into folders within folders within folders. I want the result in a new text file. I think I should be able to do this using some sort of grep or script but cannot figure out how to do it. Please help.
Question answered on January 4, 2005 at 09:47 AM ::
Comments to date: 6
Can you explain exactly how umask works in Unix and Linux?Dave, I know you can't solve trivial questions for everyone, but if you could have someone help me with the umask command and the content on pp. 107-109 of your book Teach Yourself Unix is 24 Hours, I'd appreciate it. I've taken two hours to try to figure out how in the world umask 277 produces a read-only file. It seems to me it would be write only. Can you shed some light on this, please?
Question answered on December 21, 2004 at 06:47 PM ::
Comments to date: 7
How do I keep my Safari bookmarks in sync?Dave, I have a number of different computers running Mac OS X, and would like to keep my Safari bookmarks in sync. I don't necessarily need to to have these bookmarks accessible within other Web browsers (though it'd be a bonus if Firefox saw them too) but if I designate one as my master bookmark file, is there any way to have my other Safari browsers stay synchronized?
Question answered on December 18, 2004 at 01:45 PM ::
Comments to date: 1
Does -prune work like -maxdepth in Unix "find" on AIX?Dave, I purchased your Wicked Cool Shell Scripts book a month or so ago (great book), and have used it to "learn by example" in writing some shell scripts, as I've a long way to go in this area.I need to rotate logs on an IBM AIX 5.1 Unix box, and tried using your script #55, rotatelogs for this but it didn't work, as -maxdepth is not supported in AIX's find command. So, I commented it out, and it worked, but also rotated everything in the subdirectories as well (no problem...backed up directory first, then restored). I am trying to get it to work using -prune which my search in Google found to be a good fix for the lack of maxdepth, but it's not doing what I want. Help!
Question answered on December 17, 2004 at 05:22 AM ::
Comments to date: 6
What's acceptable syntax in Unix and Linux sh scripts?Dave, I ran across your sites and Wicked Cool Shell Scripts book while trying to convince myself that `sleep 0` is a valid and relatively portable command to use freely in my unix shell scripts.I looked at a few of the Bourne shell scripts and they seem to use constructs like $( ... ) and $(( ... )) which are not standard Bourne shell (to my understanding). So I actually have three questions, rather than just one:
Question answered on December 6, 2004 at 07:08 PM ::
Comments to date: 1
How can I filter robot crawler hits out of my Apache access_log file?On a mailing list I'm on, a member recently asked: "Due to an abusive web crawler, I now have a 230MB Apache access_log file on my Web server. I tried to trim it down using grep, but I don't have enough disk space for the command to succeed. Help!"
Question answered on December 3, 2004 at 09:48 AM ::
Comments to date: 1
How do I add custom SpamAssassin rules for content filtering?Dave, using SpamAssassin, how do I proceed with content filtering? I want to block 15 words that can appear in the email being sent to me. I already have SpamAssassin set up on my Linux system, I just need to figure out how to configure the rules file properly!
Question answered on December 1, 2004 at 03:41 PM ::
Comments to date: 5
How do I skip certain directories in "du" output?On a mailing list I'm on, someone asked an interesting question about the du command: "I want to figure out how much disk space I'm using in different directories, but I don't know how to exclude certain directories from the output. Anyone have a suggestion?"
Question answered on November 21, 2004 at 05:36 PM ::
Comments to date: 2
Does Lynx request images when viewing a Web site?A reader writes to me: "I work with HumaniNet, an organization that assists humanitarian field teams with their communications needs, mostly over satellite. Bandwidth is typically very expensive, in the dollars per minute range. Am I correct to assume that Lynx doesn't even request images or other forms of 'rich content' like Flash, and would therefore save dramatically on bandwidth costs? In other words, Lynx doesn't download anything beyond (x)html, right?"
Question answered on November 20, 2004 at 07:46 AM ::
Comments to date: 1
What capabilities does the Lynx text-only Web browser offer?A reader writes in to me, asking whether I think that the Lynx web browser, a command-line screen-oriented alternative to the big, splashy graphical web browsers like Firefox, Mozilla, Safari and Internet Explorer, has any relevance in the modern world of technology and broadband. It's a fair question, and in fact I just published an article in SysAdmin Magazine on this subject.
Question answered on November 20, 2004 at 01:12 AM ::
Comments to date: 5
Can yaboot support three OS choices for Linuxes and Mac OS X?If you've been reading my entries, you already know that I've been working on installing different Linuxes on my Mac OS X PowerBook system, with success. All works well until you actually have more than one Linux installed on the system, creating a tri-boot, rather than dual-boot Apple computer. The problem is that, by default, each Linux installs its own version of yaboot which only knows about Mac OS X or itself. So I needed to figure out how to significantly modify the yaboot configuration file to support both Ubuntu and Yellow Dog Linux simultaneously.
Question answered on November 17, 2004 at 05:09 AM ::
Comments to date: 1
Tweak yaboot so Mac OS X is my default OS, not Ubuntu or Yellow Dog Linux?I've been working on installing some different Linux operating systems on my G4-based Apple PowerBook as alternative operating systems to the (elegant) Mac OS X. Why? Because they're there. :-)Once installed, Ubuntu Linux and Yellow Dog Linux both add something called yaboot which then controls the boot-up sequence. This boot control application that lets you pick which operating system you want to have run gives you about 15 seconds to pick between Linux and Mac OS X then defaults to launching Ubuntu. Not what I wanted at all.
Question answered on November 17, 2004 at 05:00 AM ::
Comments to date: 0
What capabilities does the "cat" command have?A reader writes:I had taken an intro course to UNIX a few years ago, but have found your book Teach Yourself Unix in 24 Hours MUCH more comprehensive and user-aware!
Question answered on November 8, 2004 at 06:20 PM ::
Comments to date: 2
Answers to the questions in Teach Yourself Unix in 24 Hours?A reader writes:I've just bought your Teach Yourself Unix in 24 hours, and I have to tell you that I love the book. I always answer the questions at the end of each chapter without knowing whether I get it right or wrong. Do you provide solutions to those answer questions?
Question answered on November 1, 2004 at 04:26 PM ::
Comments to date: 3
How do I get SSH & X Windows working?A reader sent in an appeal for some Linux help this morning:I have your book Teach Yourself Unix System Administration in 24 Hours, but still have some questions:
Question answered on October 12, 2004 at 10:51 PM ::
Comments to date: 0
How do Unix / Linux "hard links" work?A reader writes:So, I'm partway through your book, and I want to check on hard links. When you say it creates another door to the same body of data, is that literally true? For example, if all I have in my ./Documents directory is 001.doc (size 512K), and I hard link as hardlink.doc then run ls, do I see A or B?
Question answered on August 23, 2004 at 09:29 PM ::
Comments to date: 3
Quick check for an open mail relayIf you're like me, you are getting an ever-increasing flow of spam into your mailbox. What you might not realize, however, if you're a Unix or Linux system administrator, is that you might be part of the problem! In general terms, electronic mail servers (so called "mail transport agents" or MTAs) are only intended to accept mail either to be directly delivered to someone on the system or being sent from somene on the system.
Question answered on June 27, 2004 at 10:11 AM ::
Comments to date: 0
Question about regular expressionsA reader of Learning Unix for Mac OS X Panther writes in to ask for an explanation of the regular expression shown in this command:du -s * .[^.]*
Question answered on May 11, 2004 at 04:43 PM ::
Comments to date: 5
Chopping off the last field of each line?I'm working on the Web site for Creating Cool Web Sites and just realized that the little Unix trick I used while editing a file is actually a beautiful example of why so many people love Unix so much, so I thought I'd share it. The problem: a file where lines have 1-10 words + a last field value (in this case, a page number) that I don't want. The challenge is to figure out how to easily remove that last field, when there are a variable number of fields on the line.
Question answered on April 5, 2004 at 12:21 PM ::
Comments to date: 9
How do I tweak my PATH?A reader writes:"I've got a few of your books and today picked up Wicked Cool Shell Scripts, which I'm very much looking forward to working with.
Question answered on April 1, 2004 at 06:26 PM ::
Comments to date: 0
How do I get my environment to come along when I "su"?A reader writes:Here is the problem - when I su to become root I don't have any aliases or any stuff in my path. I also am not sure were the .bash_profile for root goes and if it is even read when su'ing - please help thanks.
Question answered on March 25, 2004 at 04:43 PM ::
Comments to date: 1
Unix environment for Windows?A reader writes:"At the end of TYU24, you mention MKS as a Windows-based shell. I checked their website as an avenue of learning Unix/Linux without resorting to dual-boots, or multiple systems (I'm a little short on space to accomidate another tower, and short on cash to build a new micro). While they do offer evaluation versions, and educational discounts, they are still a little steep on the price range. Is there another package that may follow GPL (GNU Public License) or maybe a more cost effective package for home use?"
Question answered on January 21, 2004 at 11:00 PM ::
Comments to date: 1
Errata Report in "Solaris for Dummies"A reader of Solaris 9 for Dummies reports:"Is there a typo in Chapter 15? I'm referring to page 288-289. The book says you should modify the S30network.sh file in step 3 then says you should modify the same place in the same file in step 6. (although this time 'shcat' is just 'cat') I was wondering if in step 6 I should be actually modifying a different file rather than remodify the change just made?"
Question answered on December 14, 2003 at 07:45 PM ::
Comments to date: 0
Tips for Working with SpamAssassinA common tool people use for managing spam is SpamAssassin, and if you are using it, or just interested in learning more, you'll want to check out my new Guide to Writing your own Add-On Rules for SpamAssassin.
Question answered on October 20, 2003 at 10:00 PM ::
Comments to date: 1
Sun about to release "Mad Hatter"The Mad Hatter project at Sun should prove to be a real boon to Solaris users worldwide, particularly those who hate the transition from Windows or Macs to the more bare-bones CDE environment. Yes, I talk at length in Solaris 9 for Dummies about the transition from CDE to GNOME as a desktop environment for Solaris, but the Mad Hatter project definitely goes further than just a standard GNOME configuration.
Question answered on August 24, 2003 at 06:49 PM ::
Comments to date: 0
PPPD question for SolarisA Solaris 9 for Dummies reader asks the following question:"I just read your book and was sad to see that you didn't cover PPPD in too much depth. I read the links from SUN that you offered and didn't find that much useful for my needs. Do you have PPPD experience? I have DSL but want to use my Sparc 5 for dial-up only just to play around on my web server. I am having a problem with the pap-secrets file and wondered if you had experience with that too?"
Question answered on June 12, 2003 at 02:23 PM ::
Comments to date: 0
"Solaris 9 for Dummies" is out!
I'm very pleased to say that my newest book, Solaris 9 for Dummies is out, and the copies I have look really great.
Question answered on June 11, 2003 at 10:08 AM ::
Comments to date: 1
Teach Yourself Unix System Administration in 24 Hours
Teach Yourself Unix System Administration in 24 Hours from Sams/Macmillan is my latest published book. Not only is this a sequel to my best-selling Teach Yourself Unix in 24 Hours but rather than focus on a single OS, the SysAdmin book simultaneously documents Red Hat Linux, Solaris 8, and the popular Mac OS X system.
Question answered on May 20, 2003 at 12:05 PM ::
Comments to date: 0
Teach Yourself Unix in 24 Hours![]() In just 24 sessions of one hour or less, readers of Teach Yourself Unix in 24 Hours will be up and running with UNIX, the operating system at the heart of the Internet.
Question answered on April 9, 2003 at 11:55 AM ::
Comments to date: 7
|
Recent Entries
Look for Answers
Recommended
Free Updates Via Email!
Sign up and get
free tech support and special offers on books,
seminars, workshops and more.
All Categories
Apple iPad HelpArticles and Reviews Auctions and Online Shopping Blogs and Blogging Building Web Site Traffic Business and Management Computer and Internet Basics d) None of the Above Facebook Help Google Gmail Help Google Plus Help HTML, JavaScript and Web Site Programming Industry News and Trade Shows iPhone and Cell Phone Help iPod, Sony PSP and MP3 Player Help Kindle Fire Help Mac OS X Help Pay Per Click (PPC) Advertising Pinterest Help Search Engine Optimization (SEO) Shell Script Programming Tech Support Video Help The Writing Business Twitter, LinkedIn and Social Network Help Unix and Linux Help Video Game Tips and Help Windows PC Help
Archives by Category
Apple iPad Help
Install Ubuntu Linux within Parallels Desktop on Mac? Copy and Paste from the Mac OS X Command Line? Shell script to convert lowercase to title case? Articles and Reviews Install Ubuntu Linux within Parallels Desktop on Mac? Copy and Paste from the Mac OS X Command Line? Shell script to convert lowercase to title case? Auctions and Online Shopping Install Ubuntu Linux within Parallels Desktop on Mac? Copy and Paste from the Mac OS X Command Line? Shell script to convert lowercase to title case? Blogs and Blogging Install Ubuntu Linux within Parallels Desktop on Mac? Copy and Paste from the Mac OS X Command Line? Shell script to convert lowercase to title case? Building Web Site Traffic Install Ubuntu Linux within Parallels Desktop on Mac? Copy and Paste from the Mac OS X Command Line? Shell script to convert lowercase to title case? Business and Management Install Ubuntu Linux within Parallels Desktop on Mac? Copy and Paste from the Mac OS X Command Line? Shell script to convert lowercase to title case? Computer and Internet Basics Install Ubuntu Linux within Parallels Desktop on Mac? Copy and Paste from the Mac OS X Command Line? Shell script to convert lowercase to title case? d) None of the Above Install Ubuntu Linux within Parallels Desktop on Mac? Copy and Paste from the Mac OS X Command Line? Shell script to convert lowercase to title case? Facebook Help Install Ubuntu Linux within Parallels Desktop on Mac? Copy and Paste from the Mac OS X Command Line? Shell script to convert lowercase to title case? Google Gmail Help Install Ubuntu Linux within Parallels Desktop on Mac? Copy and Paste from the Mac OS X Command Line? Shell script to convert lowercase to title case? Google Plus Help Install Ubuntu Linux within Parallels Desktop on Mac? Copy and Paste from the Mac OS X Command Line? Shell script to convert lowercase to title case? HTML, JavaScript and Web Site Programming Install Ubuntu Linux within Parallels Desktop on Mac? Copy and Paste from the Mac OS X Command Line? Shell script to convert lowercase to title case? Industry News and Trade Shows Install Ubuntu Linux within Parallels Desktop on Mac? Copy and Paste from the Mac OS X Command Line? Shell script to convert lowercase to title case? iPhone and Cell Phone Help Install Ubuntu Linux within Parallels Desktop on Mac? Copy and Paste from the Mac OS X Command Line? Shell script to convert lowercase to title case? iPod, Sony PSP and MP3 Player Help Install Ubuntu Linux within Parallels Desktop on Mac? Copy and Paste from the Mac OS X Command Line? Shell script to convert lowercase to title case? Kindle Fire Help Install Ubuntu Linux within Parallels Desktop on Mac? Copy and Paste from the Mac OS X Command Line? Shell script to convert lowercase to title case? Mac OS X Help Install Ubuntu Linux within Parallels Desktop on Mac? Copy and Paste from the Mac OS X Command Line? Shell script to convert lowercase to title case? Pay Per Click (PPC) Advertising Install Ubuntu Linux within Parallels Desktop on Mac? Copy and Paste from the Mac OS X Command Line? Shell script to convert lowercase to title case? Pinterest Help Install Ubuntu Linux within Parallels Desktop on Mac? Copy and Paste from the Mac OS X Command Line? Shell script to convert lowercase to title case? Search Engine Optimization (SEO) Install Ubuntu Linux within Parallels Desktop on Mac? Copy and Paste from the Mac OS X Command Line? Shell script to convert lowercase to title case? Shell Script Programming Install Ubuntu Linux within Parallels Desktop on Mac? Copy and Paste from the Mac OS X Command Line? Shell script to convert lowercase to title case? Tech Support Video Help Install Ubuntu Linux within Parallels Desktop on Mac? Copy and Paste from the Mac OS X Command Line? Shell script to convert lowercase to title case? The Writing Business Install Ubuntu Linux within Parallels Desktop on Mac? Copy and Paste from the Mac OS X Command Line? Shell script to convert lowercase to title case? Twitter, LinkedIn and Social Network Help Install Ubuntu Linux within Parallels Desktop on Mac? Copy and Paste from the Mac OS X Command Line? Shell script to convert lowercase to title case? Unix and Linux Help Install Ubuntu Linux within Parallels Desktop on Mac? Copy and Paste from the Mac OS X Command Line? Shell script to convert lowercase to title case? Video Game Tips and Help Install Ubuntu Linux within Parallels Desktop on Mac? Copy and Paste from the Mac OS X Command Line? Shell script to convert lowercase to title case? Windows PC Help Install Ubuntu Linux within Parallels Desktop on Mac? Copy and Paste from the Mac OS X Command Line? Shell script to convert lowercase to title case? |