mkdir limitations


 
Thread Tools Search this Thread
Top Forums UNIX for Dummies Questions & Answers mkdir limitations
# 8  
Old 08-26-2002
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).
# 9  
Old 08-26-2002
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
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
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
Great answer! Thank you!
# 13  
Old 08-30-2002
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...

Smilie
 
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. UNIX for Beginners Questions & Answers

Limitations of 'pdftotext' in Linux...

Guys: I have a customer using the 'pdftotext' utility under Linux. PDFs are received via email, converted to text, etc. and it has worked nicely for years. They received a PDF from a customer and the utility will not read it. The text file is created but it's either empty or has 1-2 bytes of... (23 Replies)
Discussion started by: kenlenard
23 Replies

2. Linux

Linux partitions and limitations

In recently reading an article on linux basics before I embark and my personal installation project I came across this passage - IDE drives have three types of partition: primary, logical, and extended. The partition table is located in the master boot record (MBR) of a disk. The MBR is the... (12 Replies)
Discussion started by: Synchlavier
12 Replies

3. Solaris

Solaris limitations

Hi, I recently started working with Solaris, and what I noticed is that a lot of commands I used to regularly use don't work, like sed -i and grep -r. I have found work arounds for these problems though but it's a pain in the ass. I'm just wondering why they decided not to include these handy... (4 Replies)
Discussion started by: Subbeh
4 Replies

4. Red Hat

Eth0 Limitations

Hi, I have noticed some performance issues on my RHEL5 server but the memory and CPU utilization on the box is fine. I have a 1G full duplexed eth0 card and I am suspicious that this may be causing the problem. My eth0 settings are as follows: Settings for eth0: Supported ports: ... (12 Replies)
Discussion started by: Duffs22
12 Replies

5. Shell Programming and Scripting

Limitations of tac/cat?

As part of a quiz assigned during my unix class I was asked to write a program to ask for a file name, print read errors, and "reverse elements in a list." I used the 'tac' command in my solution, however, I was then lectured for 5 min about the "limitations" of the 'tac' command and how a 'for'... (6 Replies)
Discussion started by: 127.0.0.1
6 Replies

6. UNIX and Linux Applications

gnuplot limitations

I'm running a simulation (programmed in C) which makes calls to gnuplot periodically to plot data I have stored. First I open a pipe to gnuplot and set it to multiplot: FILE * pipe = popen("gnuplot", "w"); fprintf(pipe, "set multiplot\n"); fflush(pipe); (this pipe stays open until the... (0 Replies)
Discussion started by: sedavidw
0 Replies

7. Solaris

Solaris 9 or 10 LUN Limitations

Is there a limit to the number of LUNS that can be concatenated using Solaris Volume manager with Soft partitions? I have worked with some AIX admins in the past and there was such a limitation therefore limiting the size the filesystem could grow to. Is there such a limitation in Solaris 9... (6 Replies)
Discussion started by: BG_JrAdmin
6 Replies

8. UNIX for Dummies Questions & Answers

Password limitations.

I would like to set my minimum password length to on Linux and AIX. However, doing this normally would only make it so newly added users will be affected by this. I would like for when I make this change, it either truncates everyone elses password, or prompts them to change it to 8+ characters.... (2 Replies)
Discussion started by: syndex
2 Replies

9. UNIX for Dummies Questions & Answers

csplit limitations

I am trying to use the csplit file on a file that contains records that have more than 2048 characters on a line. The resultant split file seems to ignore the rest of the line and I lose the data. Is there any way that csplit can handle record lengths greater than 2048? Thanks (0 Replies)
Discussion started by: ravagga
0 Replies

10. IP Networking

need help with 32 bit IP address limitations

32 bit IP addresses with class based allocation schemes have limitations. does anyone know where i could get some info on this or if you have time to spare and really want to help me, a couple of sentences. thanks milos (1 Reply)
Discussion started by: 30177005
1 Replies
Login or Register to Ask a Question