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:7913 | -Ray, July 26, 2005
More Sysadmin articles...

Large Abstract Art with Fine Details and Textures

admin headlines

Linux find command examples: finding files

Setup Nginx + php-FPM + apc + MariaDB on Debian: The perfect LEMP server

Tutorial: Installing Lighttpd, PHP5, PHP-FPM, MySQL on Debian 7

Virtual Users/Domains with Postfix/Courier/MySQL/SquirrelMail (Debian 7)

Create a Fiber Channel SAN with SCST and QLogic HBA on Linux Debian 6

Tutorial: Set up Apache2 with mod_fcgid and PHP5 on OpenSUSE 12.3

 

Firefox sidebar

Site map

Site info

News feed

Features

Login
(to post)

Search

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