- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: Creating two files with the same name
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Discussions
Discussions
Forums
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-18-2010 09:00 PM
тАО10-18-2010 09:00 PM
Creating two files with the same name
ml048-root> ls -lrt
total 32
-rw-r--r-- 1 swbonds iusa 0 Oct 18 20:28 example
-rw-r--r-- 1 swbonds iusa 0 Oct 18 20:28 example
I am just wondering how it get created..I know there is some special character might be used to create this..But I do not know how to decode this.. Please help me out..
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-18-2010 09:06 PM
тАО10-18-2010 09:06 PM
Re: Creating two files with the same name
Please check whts the path where this files created???
Do check the /var/adm/syslog/syslog.log
lastly updates in syslog
Regards
Vishnu Khandare
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-18-2010 09:06 PM
тАО10-18-2010 09:06 PM
Re: Creating two files with the same name
i would check the history file for the command, and also if its possible run the fsck on the file system.
mikap
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-18-2010 09:11 PM
тАО10-18-2010 09:11 PM
Re: Creating two files with the same name
"List nonprinting characters in the octal \ddd notation."
Or pipe the ls output in xd.
You Also want to use ls -i to check the inodes.
Hein
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-18-2010 10:23 PM
тАО10-18-2010 10:23 PM
Re: Creating two files with the same name
I tried to run ls -b which give me below output
$ cd example-for-indrajit
$ ls -b
-c example example\006\017\022\011\016\004\022\001\011\024 wc
But i want to know how we can create this files
In ls -lrt output it is coming like that
$ ls -lrt
total 32
-rw-r--r-- 1 swbonds iusa 0 Oct 18 20:28 example
-rw-r--r-- 1 swbonds iusa 0 Oct 18 20:28 example
-rw-r--r-- 1 root sys 26 Oct 18 21:01 wc
-rw-r--r-- 1 root sys 26 Oct 18 21:01 -c
Please suggest me how this file get created..
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-19-2010 12:04 AM
тАО10-19-2010 12:04 AM
Re: Creating two files with the same name
like you can see your second file example has also non printing character .
It' a mistike of someone or if the file have been created by a script , perhaps mistake is also in the script . ( in this case cat -v help you)
For resolve this issue :
rename example : mv example file1
rename the secondelfile : mv example* file2
Have a good day
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-19-2010 03:46 AM
тАО10-19-2010 03:46 AM
Re: Creating two files with the same name
ls -li
and then delete the file using the inod number with find for example.
you have and example:
http://www.hpuxtips.es/?q=node/207
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-19-2010 04:01 AM
тАО10-19-2010 04:01 AM
Re: Creating two files with the same name
I think something went wrong with a command possibly within a script, perhaps the command "wc -c example". It usually happens when trying to remsh or rlogin. The special characters are indicate remote connection control and somehow they became part of the filename.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-19-2010 05:01 AM
тАО10-19-2010 05:01 AM
Re: Creating two files with the same name
> Please suggest me how this file get created
I've seen this in an application, where you have to give a file name, then you want to change the name in the input window with backspace or with an arrow key before it's saved.
HTH
V.