Author Archives: proprietor

How to use Windows-style file names having spaces when using Linux commands

Here’s a quick thing that might help someone out.

Here’s the scenario:  you have a home or work network that has both windows computers and linux computers.  Some of the directories are the windows-style and contain spaces, such as “My Documents”.  This is fairly common, especially as some networks use windows workstations but a linux server.

The problem comes in when you are attempting to access directories or files from the command line in linux.  If you type:

cd My Documents

you will get something like this in return:

bash: cd: My: No such file or directory

There is a very easy solution:  simply enclose the directory or file name containing spaces in single or double quotes.  For example,

cd 'My Documents'

works like a charm.  Remember when you are using linux systems that all entries in the command line are case sensitive, so

cd 'my documents'

is not the same as

cd 'My Documents'

There is another way that will work.  You can use the “\” character to escape the space.  Note that this will work for other special characters in file or directory names also.  In the case of a directory or file name containing spaces, the space constitutes a special character, so

cd My\ Documents

will work fine as well.

I hope this will help someone and save you time.  I know this is an irritating part of working on a network that has both windows and linux computers, but it isn’t really that big of a problem if you are armed with a little knowledge.

Minor Earthquake in Alabama 31 Aug 2011

This morning, just after 7 AM, a very minor earthquake occured a few miles from Corneroftherooftop.com headquarters.  Here’s a location chart from the USGS:

Earthquake Location

This was a very minor earthquake.  What was instructive is how close it was to my location, especially after the earthquake that occurred in Virginia recently.  Also, I uncovered some other images that caught my eye.  Here is one of them:

Scary Image

Makes you sleep easy, right?

Here are some more pertinent details if this very minor event:

Earthquake Details

  • This event has been reviewed by a seismologist.
Magnitude 2.1
Date-Time
Location 33.704°N, 87.857°W
Depth 0.1 km (~0.1 mile) (poorly constrained)
Region ALABAMA
Distances
  • 3 km (2 miles) WNW (300°) from Fayette, AL
  • 9 km (6 miles) NE (47°) from Belk, AL
  • 18 km (11 miles) NE (41°) from Kennedy, AL
  • 56 km (35 miles) ENE (66°) from Columbus, MS
  • 99 km (61 miles) WNW (282°) from Birmingham, AL
  • 319 km (198 miles) W (270°) from Atlanta, GA
Location Uncertainty horizontal +/- 4.7 km (2.9 miles); depth +/- 6.8 km (4.2 miles)
Parameters NST= 9, Nph= 11, Dmin=109 km, Rmss=0.16 sec, Gp=169°,
M-type=duration magnitude (Md), Version=A
Source
Event ID nm083111b

Are you prepared?