- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- How to view this filename?
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
тАО07-21-2005 05:16 PM
тАО07-21-2005 05:16 PM
How can I view a filename which is having some special characters?
2156 14 -rwxr-xr-x 1 42637 30765 6636 Dec 15 2003
Is there any option that will print the special characters of filenames (with ls command)...
Thanks
Vijay
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-21-2005 05:32 PM
тАО07-21-2005 05:32 PM
Re: How to view this filename?
There is no such option. Atleast one of the characters in the file name should be printable, then using wild characters you can print that file name. For ex. your file name is null7null then using "ls -l *7*" you can print that file using ls command which can list other files as well allthough.
But be careful while removing these file. Use shell history to view previous command & when your ls command shows exactly the desired file name then repeat last command and replace ls with rm -i to interactively remove such files otherwise wild characters can cause disasterous results.
HTH,
Devender
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-21-2005 05:32 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-21-2005 06:17 PM
тАО07-21-2005 06:17 PM
Re: How to view this filename?
have u try this:
# find / -name '* *' -print
regards.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-21-2005 06:20 PM
тАО07-21-2005 06:20 PM
Re: How to view this filename?
You can use ls -i. This will print the inode number and the file name.
Then you can use find with inum option to find the file od that particular inore number and more the file.
eg :-
ls -i gave the inode number of the file as
12067 NULL>>
find . -inum 12067 -exec more {} \;
IA
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-21-2005 06:55 PM
тАО07-21-2005 06:55 PM
Re: How to view this filename?
you can also access the file from a graphics console
regards
yogeeraj
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-21-2005 08:22 PM
тАО07-21-2005 08:22 PM
Re: How to view this filename?
-b, --escape
print octal escapes for nongraphic characters
ls -b or ls --escape
hth.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-24-2005 05:28 PM
тАО07-24-2005 05:28 PM