The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > Top Forums > UNIX for Dummies Questions & Answers
Google UNIX.COM


UNIX for Dummies Questions & Answers If you're not sure where to post a UNIX or Linux question, post it here. All UNIX and Linux newbies welcome !!

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
mkdir mirusnet UNIX for Advanced & Expert Users 3 02-23-2008 06:00 AM
mkdir big123456 Shell Programming and Scripting 2 07-22-2006 07:23 AM
calling mkdir from PHP gmclean2006 UNIX for Dummies Questions & Answers 4 06-15-2006 06:23 PM
install vs mkdir thmnetwork Linux 1 03-30-2005 08:25 PM
Can't mkdir in /home leond UNIX for Dummies Questions & Answers 5 03-05-2003 08:04 AM

Closed Thread
 
Submit Tools LinkBack Thread Tools Search this Thread Display Modes
  #8  
Old 08-26-2002
Registered User
 

Join Date: Aug 2002
Posts: 5
Sorry but I have no idea what a shell prompt is (I am indeed a new unix user). I guess you mean a terminal command. So I opened up a Telnet session with my host (I'm just one guy at home on a PC..) and while I did get some info from BSD Reference Manual it presented no info about the question I posed (which characters can't one use in a file/folder name).
Forum Sponsor
  #9  
Old 08-26-2002
oombera's Avatar
Registered User
 

Join Date: Aug 2002
Location: Cleveland, OH
Posts: 804
Perderabo's telling you everything you need...

To be safe when naming a file or directory:

Stick to names that are 14 characters or less

Stick to letters (a-z, A-Z), numbers (0-9), dot (.), and underscore ( _ )
Avoid characters such as /, *, &, % and spaces.

Here're a couple references:
http://www.sci.sdsu.edu/Docs/.../basic_unix.html#2
http://www.ee.surrey.ac.uk/.../index.html (unix tutorial)
http://www.ee.surrey.ac.uk/.../unix4.html (tutorial on filenames)
  #10  
Old 08-26-2002
Registered User
 

Join Date: Aug 2002
Posts: 5
Perderabo's telling you everything you need.

(he/she did? I read it but I have no idea if we're running HP or what!)

Stick to letters (a-z, A-Z), numbers (0-9), dot (.), and underscore ( _ ). Avoid characters such as /, *, &, % and spaces.

(such as really isn't the detail I was hoping for...I thought a complete list would be an easy request).

Here're a couple references:
http://www.sci.sdsu.edu/Docs/.../basic_unix.html#2
http://www.ee.surrey.ac.uk/.../index.html (unix tutorial)
http://www.ee.surrey.ac.uk/.../unix4.html (tutorial on filenames)

(missing the middle parts...)
  #11  
Old 08-26-2002
oombera's Avatar
Registered User
 

Join Date: Aug 2002
Location: Cleveland, OH
Posts: 804
By "such as" I meant anything with a possible special meaning. I don't have a full list of every possible special character. I'm sure there's some that I don't even know about.

Here's a short list of characters you shouldn't use b/c they often have a special meaning:

!, ^, $, %, &, *, ?, (), {}, [], ", ', `, \, ~, |, ;, &&, ||, <, >, >>

But this may depend on your situation. For example, I can use '~' with no problems.

But trying to create a file with the name a$file results in a file named, simply, a. You can override most of these restrictions by entering a backslash first.

E.G.: creating a file a\$file will result in the backslash stripping the $ of it's special meaning - the name becomes a$file

It's still not recommended though.
  #12  
Old 08-27-2002
Registered User
 

Join Date: Aug 2002
Posts: 5
Great answer! Thank you!
  #13  
Old 08-30-2002
Kelam_Magnus's Avatar
Registered User
 

Join Date: Aug 2001
Location: DFW McKinney, TX,
Posts: 1,069
Flignar... don't take this the wrong way, but...

Maybe its just me, but it looks like everyone here got snookered into answering a homework question.

This person is obviously a serious n00b if they don't know about man pages.

Also, they don't know they rule about not posting or advertising external email addresses for answers.


FYI to all. In general a question like this that is very general and somewhat simplistic, tends to be a classic homework type question.

If this is not actually a homework question, I apologize to Flignar. But it definitely resembles one.

Flignar, please read the forum rules to familiarize yourself. Keep posting questions and by all means take my criticism in the friendly spirit it was intended.


My brain is your brain...

__________________
My brain is your brain
Google The UNIX and Linux Forums
Closed Thread

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes




All times are GMT -7. The time now is 09:32 PM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited.
The UNIX and Linux Forums Content Copyright ©1993-2008. All Rights Reserved.Ad Management by RedTyger Visit The Complex Event Processing Blog

Content Relevant URLs by vBSEO 3.2.0