Category Archives: concatenation

Adding some color to ls in Mac OS

If you have ever used ls in the Mac OS terminal you have probably noticed that you get a boring monochrome list. If you have never used Linux before you might not find this a problem at all. Why would you anyone expect or need it to have color? Well, sometimes color is very important, for instance if you are in an unfamiliar directory and you don’t know what is a file and what is a sub-directory.If you are completely new to the Terminal/Unix-like operating systems a short explanation of what ls is is in is a program which lists all of the files and directories in a directory. Try opening the terminal and typing ls to see what I mean (type man ls for more information on how to use ls). On a mac, and all other BSDs to my knowledge, the output text will all be in one color (probably black in your case),but on Linux the output will be color coded (files and directories have different color text)So you want Mac OS to have colored output just like Linux? well, that is easy. ls has the argument -G which will output colored text (on Mac OS. Linux uses -C (–color) but you shouldn’t need that, and I don’t know what other BSDs do.) So, you could type ls -G every time you want to list the contents of a directory, but that would get every annoying after a while. There is an easy way you can make it output colors every time you run ls so you won’t have to add the -G every time! Go the command line and type:

cd ~/ (if you are not already there)

echo alias ls=’/bin/ls -G’ >> .bash_profile

Now every time you type ls you will see colored output (if you ever want to remove this just edit ~/.bash_profile with your favorite text editor and remove the line we just added) Enjoy!

Leave a comment

Posted by on December 21, 2008 in apple, bash, concatenation


Tags: , , , , , , , ,

Concatenation: Encrypt /home, An Introduction to Wine, Some really cool bash tips

It’s time for yet another concatenation. I don’t feel like trying to get those title to actually look like links right now so just trust me if you put your mouse on them, not the first one though, it will turn blue.

Before I get into the concatenation I would like to inform all of you who read via rss that I set up a feedburner feed so while the wordpress feed will continue to work I would prefer it if everyone would switch over to the feedburner feed. Thanks.

CommandLine Warriors: Encrypt /home

I had planned to spend some time on figuring out how to encrypt partitions in linux and then write up a little how to but it seems that zeth beat me too it. I haven’t tried it yet but it looks like it is about what I was going to do.

I would like to stress the importance of encrypting your disk, specifically /home, but I’m lazy so I’ll let zeth do it for me.

You can’t always guarantee the physical security of mobile computers, indeed I myself had one stolen this year. However, on Linux, there is no need to leave yourself open to identity or data theft. Indeed if you are using Linux and you ended up at this blog post somehow, then you are highly likely to either work in IT or be otherwise highly technically competent. In other words, you have no excuse.

Encryption is easy to set-up, the approach I’ve outlined here does not require a reinstall, we are just going to swap out your home directory for an encrypted home partition. The simplest possible approach, but a big step forward in security for many of us.

I really doesn’t seem to be that hard. Do it or you may regret it later.
Part 1
Part 2
Part 3
Part 4

wine-review:A quick introduction to Wine

wine-review:>wine-review:>Wine is a way to run windows programs on linux, for those you you who don’t know. Here is a quick explination of what Wine is that is a lot better than I could ever do.

Wine is a translation layer (a program loader) capable of running Windows applications on Linux and other POSIX compatible operating systems. Windows programs running in Wine act as native programs would, running without the performance or memory usage penalties of an emulator, with a similar look and feel to other applications on your desktop.

The Wine project started in 1993 as a way to support running Windows 3.1 programs on Linux. Bob Amstadt was the original coordinator, but turned it over fairly early on to Alexandre Julliard, who has run it ever since. Over the years, ports for other Unixes have been added, along with support for Win32 as Win32 applications became popular.

I for one have tried wine but never put much effort into it. I have a copy of KOTOR that I haven’t played in a while and I might see if I can get it to install.

This is just a quick introduction to Wine, the entire site is dedicated to wine, so it might be good to look at the rest of the site to really learn to use Wine.

Richards linux, web design and e-learning collection: Bash Tips and Tricks

This one blew me away. This is some really good stuff. Here was what he covers:

  1. Lost bash history. Which is losing history when you have multiple tabs open
  2. stupid spelling mistakes
  3. Duplicate entries in bash history
  4. Multi-line commands split up in history
  5. searching bash history
  6. moving to the previous directory

That last one may not seem all that amazing to you right now but it is actually really cool, unless you already know how to do it. Why mess with paths to get back where you were when you can do it with one character?

I really suggest you give this a read.

That’s all for now folks.

Leave a comment

Posted by on December 11, 2007 in concatenation


Tags: , ,

Concatenation: Terminal Emulators, Document Formats, and Why Linux is easier then Windows

It has been a while since I’ve done a concatenation so I figured it was about time. Today I’m going to discuses some articles about terminal emulators, document formats, and why Linux is easier then windows.

CMD.EXE is 32 Times Slower Than Gnome-Terminal! From Learn More About Your Linux

don’t open more than one instance of Gnome-Terminal! I don’t really care about CMD.exe as I don’t use it but I do care that Gnome-Terminal uses 45mb of ram for every instance. I would be interested in what kind of affect multiple tabs has on that. Does it run a new instance for every tab? It doesn’t look like it form the system monitor, but then it also says it isn’t using more than 160kb of ram

Scafolds and Crutches from Command Line Warriors

Zeth, who has a greater knowledge of the way capitalization works in titles then Learn More About Your Linux does :), has a nice write up about the major document formats (.doc, .odt, .abw, .txt>.

I don’t like Word processors very much, for other reasons than file format, So I’ve never really put much thought into the way they store information. I was pretty surprised to read that .odt stores everything in dozens of files. 24064 bytes to store 11bytes is ridiculous. He does a good job of covering it so I don’t relly have anything to add. Now go read it (but not until you’ve finished reading this).

6 Things That make Linux Easier to Use than Windows form Linux Brain Dump

I want to cover this in step by step the way that he does so I’m going to past what he has so you don’t have to look back and forth.

The installation process of most modern Linux distributions involves one DVD, which includes just about everything one would need on a workstation – including drivers, an office suite and tons of Internet tools.

Windows Vista comes on one DVD, or 6 cds, and is very simple to install (because it gives you no options).

Installing Updates
In most cases, all of the software you use can be updated with one command, or just a few clicks.

The same can be had with Windows as long as you only use free as in beer Microsoft software. Windows does a horrible job of managing updates.

It’s simply not needed right now, but the OSS community has already created an excellent product called ClamAV to take care of malicious software when/if it becomes a problem for Linux.

This is not completely true, there are Linux viruses and it has recently been discovered that linux has become a prime target for root kits. I don’t run anti-virus software on eithre my mac or my linux boxes but I do use SElinux, though I not sure if SElinux can stop that sort of thing.

Adding Software
As with system updates, adding new software can be done with one command in most cases.


Problem Resolution
If you need to fix a problem with an application, a visit to a forum or IRC channel is usually all you need, but in the rare cases that this isn’t enough, you can contact the program’s author/development team for support, which is normally free.

You can get some decent support from Mircosoft (at a cost) and you can find people in the community that will help you for free (most of the time).

Instant Messaging
Pidgin, the internet messaging client included with most distributions, works with IRC, ICQ, AIM, MSN, Google Talk, Jabber, Yahoo and others, right out of the box.

Pidgin is available on windows as well, it just doesn’t come pre-installed (yet).

That wraps it up for today. If I missed any cool stories or you just think I should take a look at something leave an u in the comments.

Leave a comment

Posted by on October 14, 2007 in concatenation


Tags: , , ,

Concatenation: Command Line Tools

I’ve been working on this for a while now and I think I should finally put it out but it isn’t quite finished. I just wrote a 500 paper for school (today was the first day of school mind you) so I don’t feel like puting in the time it would take for me to finish this and I’m even havening trouble typing the letters of these words in order so I’m just going to but it out the way it is and maybe fix it later. not like it matters because no one will ever read it.

This is the first and possibly the only post in a concatenation series. I have greped a few (ok two) other blogs and found some useful list of the best command line tools and I’m going to put them here mostly so they will be in one place so I can get easy access to them but if they help you and you want to believe I have done this out of the goodness in my heart for your sole benefit then that is ok too. Make sure to check out the blogs I’ve pulled this stuff from for some a more detailed description on these commands.
The first up comes from my favorite blog
Ten Cool Coreutils commands
1. tac
tac works just like cat but reverse the text in the output. I’ve personally never used it but it might come in handy some time.
2. tee
tee prints is used to print output of another command both to the standard output (screen) and a file.
3. pr
formats text for printing
4. stat
this is used to get information on a file
5. yes
yes infinitely prints y or any arg you give it. It Also has the added benefit for using 100% of your processor.
6. expand
7. split
8. uiq
9. wc
10. shred

The other comes from a blog that I have never actually read but I found it on Digg . I may start reading it.
Ten OS X Command Line Utilities you might not know about
1. ssh
2. top
3. lsbom
4. say
5. softwareupdate
6. ifconfig
7. lipo
8. screencapture
9. fink
10. darwinports

If you know of any other blogs that have good lists let my know and I will post them here.

Leave a comment

Posted by on September 18, 2007 in bash, concatenation