- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- root system filenames are seen in ascii characters
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
Forums
Discussions
Discussions
Discussions
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
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-2005 05:18 PM
10-18-2005 05:18 PM
filenames in root filesystem is seen in ASCII formats.all other filenames in other filesystem are been seen normally
the ls -l command output is attached .
thanks in advance
regards
Mangesh
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-18-2005 05:44 PM
- Tags:
- unprintable chars
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-18-2005 05:56 PM
10-18-2005 05:56 PM
Re: root system filenames are seen in ascii characters
Try as,
# ls -bl
hth.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-18-2005 06:00 PM
10-18-2005 06:00 PM
Re: root system filenames are seen in ascii characters
-b List nonprinting characters in the octal \ddd notation.
-Arun
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-18-2005 06:05 PM
10-18-2005 06:05 PM
Re: root system filenames are seen in ascii characters
i have checked your output & found that all files with Junk names are created on the same day , it might be possible that some one ftp some files to root directory with a diff language name.
You can try ls -lb for nonprintable charecters.
I hope there will not be much issue in this
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-18-2005 06:16 PM
10-18-2005 06:16 PM
Re: root system filenames are seen in ascii characters
thanks for ur response.Pls tell me how shall i remove the files .the o/p of the ls -bl command shows all numeric file names.check the attachment.
regards
Mangesh
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-18-2005 06:31 PM
10-18-2005 06:31 PM
Re: root system filenames are seen in ascii characters
u can do it by rm -i *filename*
By this way it will ask for the confirmation of each file to be deleted , or use rm -i * .
Then delete the files with junk name .
It will solve your perpose .
After this close this case & assigne points .
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-18-2005 06:44 PM
10-18-2005 06:44 PM
Re: root system filenames are seen in ascii characters
ls -abli
note down inode number of files that you want to move.
For every inode do as follows.
find . -inum "number" -exec mv {} new_name \;
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-18-2005 06:50 PM
10-18-2005 06:50 PM
Re: root system filenames are seen in ascii characters
-i For each file, list the inode number in the first column of the report. When used in multicolumn output, the number precedes the file name in each column.
-Arun
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-18-2005 06:58 PM
10-18-2005 06:58 PM
Re: root system filenames are seen in ascii characters
ls -b | xargs rm -i
will ask your permission of yes / no to remove files in the current directory.
hth.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-18-2005 07:01 PM
10-18-2005 07:01 PM
Re: root system filenames are seen in ascii characters
ls -b | xargs -p -l rm -i
It will ask prompt now :)
hth.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-19-2005 01:28 AM
10-19-2005 01:28 AM
Re: root system filenames are seen in ascii characters
\221k\306
which means that ASCII character 211 (in octal) is followed by "k" then followed by ASCII character 306 (in octal). So you can remove that specific file with this:
rm -i $(echo "\221k\306")
In this case, the echo command will convert the octal numbers back into the equivalent ASCII characters and rm will remove the exact file. This is much safer.
Bill Hassell, sysadmin
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-19-2005 01:53 AM
10-19-2005 01:53 AM
Re: root system filenames are seen in ascii characters
Do this:
ll -i
This will list the inode numbers in the first column, for example:
27 -rw-rw-r-- 1 hpcu dumps 413 Jul 22 2004 sgtoc
28 -rw-rw-r-- 1 hpcu dumps 180 Jul 22 2004 spinlock.sh
1277 -rw-rw-r-- 1 hpcu dumps 6828 Jul 14 12:22 upgradeOSonly
Then you can run the following command:
find . -inum NUMBER -exec rm {} \;
So if I wanted to remove the file "sgtoc", I'd type:
find . -inum 27 -exec rm {} \;