Librenix
Headlines | Linux | Apps | Coding | BSD | Admin | News
Information for Linux System Administration 

Dealing with spaces in filenames

Up
vote
Down

Nothing good can come from using spaces in filenames, but here's some help when you have to deal with them.
Over the years, Linux and Unix cognoscenti haven’t used spaces in file and directory names. Instead of naming a directory My Pictures, you’d name it My_Pictures, my.pictures, or mypix. Why? Shells break a command line at spaces, and most shells also word-split the results of variable and command substitution. So a filename containing spaces can be split into pieces.
Shells also assign a meaning to most non-alphabetic characters. A file named odds&ends or cool!! can cause trouble if you aren’t paying attention.
 read more | mail this link | score:8879 | -Ray, July 26, 2005
More Sysadmin articles...

admin headlines

Tutorial: Ubuntu 10.04 Samba Server with tdbsam

Install LAMP (Apache2, PHP5, MySQL) on Ubuntu 10.04

Tutorial: Create an NFS-like storage server with GlusterFS on Ubuntu 9.10

Tutorial: Limit CPU usage with cpulimit

Sun xVM VirtualBox 3.0

Tutorial: Four node distributed storage with GlusterFS on Linux

 

Firefox sidebar

Site map

Site info

News feed

Features

Login
(to post)

Search


T-shirt gallery:  I Love God T-shirts
 

Articles are owned by their authors.   © 2000-2010 Ray Yeargin