bash
Finding info in Files
Submitted by TimBruce on Wed, 2009-07-08 12:42Sometimes you want to be able to quickly search the contents of some files for a command or some other piece of text. The following command (for Cygwin obviously) will work:
for i in `find /cygdrive/c/Devel/SQL/ | grep sql `; do echo $i; grep cursor $i; done;
Manually Configuring a NIC on SuSE after adding it
Submitted by TimBruce on Wed, 2008-03-12 16:40After adding a network card (NIC or Network Interface Card) to an OpenSuSE system, and configuring the device with YaST, I could not get it to activate. After a reboot it also didn’t show up as an active interface.
Change the Default Editor From Nano on Ubuntu Linux
Submitted by TimBruce on Sat, 2007-07-28 18:14Many of the utilities in Ubuntu Linux use a text editor to allow you to edit configuration options and files. An example of this is using the crontab command, which allows you to edit your cron jobs using the default editor.
It's really easy to set the default editor using the update-alternatives command. Open up a terminal window and type in the following command:
Linux Command Line Loops
Submitted by TimBruce on Tue, 2007-02-20 11:43There are times you want to enter a single-line command to unzip all the files in a directory. If the current directory is:
/home/timb/download/files
the command would be:
Proxy in Linux
Submitted by TimBruce on Mon, 2007-02-19 11:41There are times when you need to route all your web traffic (http) and file transfer (ftp) traffic through a proxy. This may be because you're in a business environment and all traffic is "inspected" prior to going to the destination site or it may be at home where you've installed proxy software to monitor the kids or block them from some web sites / ftp sites.
Setting up the information in Linux to use the proxy is as simple as adding the following lines in one of several files.
