How to prevent a file from being overwritten using the tcsh shell on Linux.

How to use noclobber with the tcsh shell on UNIX and Linux This example using the set noclobber command prevents existing files from being overwritten. 2:04am ubuntu /home/ubuntu ~> set noclobber2:04am ubuntu /home/ubuntu ~> set noclobber Now if I try to redirect to the file, this happens. 2:04am ubuntu /home/ubuntu ~> echo "" > chan.c … Read more

How to use color in the ls command to brighten up your directory listings.

Below we see output of the ls command when listing a directory. The –color=auto parameter allows the use of color if your terminal supports it. And since everyone either uses Konsole or Gnome Terminal; this command will always work. I am using zsh at the moment; but this works with just about any shell. ls … Read more

How to use aliases with the bash shell and some other useful Linux tricks.

Are you wanting to create an alias and you want to see how they are done? Well a Linux distribution should come with some aliases that are already created for you and you can type the alias ls command to see how one is created. ubuntu@ubuntu:~$ alias ls alias ls=’ls –color=auto’ubuntu@ubuntu:~$ alias ls alias ls=’ls … Read more

Thoughts on the new Ubuntu for the Nexus 7 and installing a different shell for Ubuntu.

I have just found out that the Nexus 7 tablet now has an Ubuntu distribution that is working on that tablet computer. The Unity desktop does not seem to be very stable on this device though; it would be better to develop a proper tablet touch oriented interface like the Windows 8 Metro interface; the … Read more