Login
Register
All Activity
Questions
Unanswered
Tags
Users
Ask a Question
About Us
986
Questions
785
Answers
Interview Preparation mode
beta
Funny Facebook Status
Enter your email address
All categories
SQL Server Interview Questions and Answers
(197)
SSIS Interview Questions and Answers
(54)
SSRS Interview Questions and Answers
(9)
SSAS Interview Questions and Answers
(29)
.NET Interview Questions and Answers
(186)
Oracle Interview Questions and Answers
(122)
Java Interview Questions and Answers
(32)
UNIX Interview Questions and Answers
(47)
Networking Interview Questions and Answers
(17)
MySQL Interview Questions and Answers
(30)
HR Interview Questions and Answers
(237)
General Interview Questions and Answers
(9)
Other Interview Questions and Answers
(8)
Job Openings
(3)
Greenplum Database Interview Questions and Answers
(5)
Explain about Filename conventions in UNIX
Nice?
Vote!
asked
1 year
ago
in
UNIX Interview Questions and Answers
by
R
(
19,530
points)
unix-interview-question
unix
file
1 Answer
Nice?
Vote!
We should note here that a directory is merely a special type of file. So the rules and conventions for naming files apply also to directories.
In naming files, characters with special meanings such as / * & % , should be avoided. Also, avoid using spaces within names. The safest way to name a file is to use only alphanumeric characters, that is, letters and numbers, together with _ (underscore) and . (dot).
File names conventionally start with a lower-case letter, and may end with a dot followed by a group of letters indicating the contents of the file. For example, all files consisting of C code may be named with the ending .c, for example, prog1.c . Then in order to list all files containing C code in your home directory, you need only type ls *.c in that directory.
Beware: some applications give the same name to all the output files they generate.
For example, some compilers, unless given the appropriate option, produce compiled files named a.out. Should you forget to use that option, you are advised to rename the compiled file immediately, otherwise the next such file will overwrite it and it will be lost.
answered
1 year
ago
by
siva
(
10,720
points)
Related questions
Nice?
Vote!
1
answer
Explain about Listing suspended and background processes in UNIX
asked
1 year
ago
in
UNIX Interview Questions and Answers
by
R
(
19,530
points)
unix-interview-question
unix
file
process
Nice?
Vote!
1
answer
Explain about Processes and Jobs in UNIX
asked
1 year
ago
in
UNIX Interview Questions and Answers
by
R
(
19,530
points)
unix-interview-question
unix
file
process
job
Nice?
Vote!
1
answer
Explain about Changing access rights in UNIX
asked
1 year
ago
in
UNIX Interview Questions and Answers
by
R
(
19,530
points)
unix-interview-question
unix
file
security
Nice?
Vote!
1
answer
Explain about File system security (access rights) in UNIX
asked
1 year
ago
in
UNIX Interview Questions and Answers
by
R
(
19,530
points)
unix-interview-question
unix
file
security
Nice?
Vote!
1
answer
Explain about Searching the contents of a file in UNIX
asked
1 year
ago
in
UNIX Interview Questions and Answers
by
R
(
19,530
points)
unix-interview-question
unix
file
directory