Hi All,
Is it possible to create one file name only space or space
in file name in UNIX and we can able to run that on Unix?

Answers were Sorted based on User's Feedback



Hi All, Is it possible to create one file name only space or space in file name in UNIX and we ca..

Answer / jagadeeb

Yes..:)

just open unix prompt

vi " " or vi "ab cd"
echo "jagadeeb"
:wq
just give permission :)like
chmod 777 " " or chmod 777 "ab cd"
and run that like

./" " or ./"ab cd"
out put like
jagadeeb

jagadeeb@gmail.com

Is This Answer Correct ?    16 Yes 4 No

Hi All, Is it possible to create one file name only space or space in file name in UNIX and we ca..

Answer / sudeep ranjan

Unix-legitimate filenames are any combination of these
three classes of characters: Upper and lower case letters:
A - Z and a - z

Numbers 0 - 9

Periods, underscores, hyphens . _ -

Note that line spaces (aka "whitespace") are not allowed in
filenames. The Unix shell will think you mean more than one
file.

Is This Answer Correct ?    2 Yes 4 No

Post New Answer

More Shell Script Interview Questions

What is gui scripting?

0 Answers  


Explain about shebang?

0 Answers  


Give some situations where typing error can destroy a program?

0 Answers  


What is @echo off?

0 Answers  


What does path stand for?

0 Answers  






What are the zombie processes?

0 Answers  


What does $@ mean bash?

0 Answers  


How are shells born?

0 Answers  


What are scripts in psychology?

0 Answers  


‎What is a shell? · ‎Types of shell · ‎what is shell scripting?

0 Answers  


Script S1 (which copies .dat files from one directory1 to another directory2) run continuously. Write Script S2 which kills S1 first, compresses all .dat files in directory1 and directory2 successfully, re-run Script S1 and stops self i.e. S2.

2 Answers   IBM, TCS,


How to calculate the number of passed arguments?

0 Answers  


Categories