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

Dealing with spaces in filenames


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

Buy Fine Art on Canvas Online

admin headlines

Testing the Digital Ocean $5 Cloud Servers with an MMORPG

Server Monitoring With munin And monit On Debian Wheezy

tutorial: Build a Debian 7 server

Tutorial: Percona Server 5.5 on Ubuntu 12.10

Using KVM on CentOS 6.2

Tutorial: Install Nginx, PHP5, PHP-FPM), MySQL on Ubuntu 11.10


Firefox sidebar

Site map

Site info

News feed


(to post)


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