- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - Linux
- >
- Want to delete special character directory/file
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
тАО01-05-2010 02:32 AM
тАО01-05-2010 02:32 AM
Want to delete special character directory/file
I search file with "ls -b" command "ls -lbia" comand is not working getting error " /bin/ls: incident: Permission denied"
please sugget ,
1)how i can search inode this file?
2)how i can delete this file?
3) not sure "incident" is file/directory.
Thanks in advance.
Pratibha
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-05-2010 02:36 AM
тАО01-05-2010 02:36 AM
Re: Want to delete special character directory/file
What is the output of:
# ls -il
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-05-2010 02:40 AM
тАО01-05-2010 02:40 AM
Re: Want to delete special character directory/file
Check out for Matti Kurkela's response which is quite descriptive.
http://forums11.itrc.hp.com/service/forums/questionanswer.do?threadId=1397476
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-05-2010 02:41 AM
тАО01-05-2010 02:41 AM
Re: Want to delete special character directory/file
Thanks
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-05-2010 02:56 AM
тАО01-05-2010 02:56 AM
Re: Want to delete special character directory/file
pwd
ll -id .
bdf .
Are you root?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-05-2010 04:13 AM
тАО01-05-2010 04:13 AM
Re: Want to delete special character directory/file
This is Linux server
See below o/p
#pwd
/oravl01/oracle/11.1.0.7/log/diag/clients/user_root/host_746232775_11
#ls -lid
2043059 drwxrwxr-x 3 oracle dba 72 Jan 5 13:40 .
#ls -ab
. .. incident
#ls -l
/bin/ls: incident: Permission denied
total 0
# df -k
/dev/mapper/vg01-oravl01
30080100 28631044 1449056 96% /oravl01
seems incident is special char file/dir not sure ... unable run ls -l comand to see
this is related to database , but not in use any Data?Base.
Please sugget.
Thanks
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-05-2010 05:15 AM
тАО01-05-2010 05:15 AM
Re: Want to delete special character directory/file
Please show the output of:
grep /oravl01 < /proc/mounts
Are there any indications of SCSI or other hardware errors in the "dmesg" listing?
If this is a local filesystem, the "permission denied" error may be caused by filesystem corruption: you may have to unmount the filesystem and run fsck on it. You may have to use some options (specific to the filesystem type) to run a "full check" instead of a quick check.
If the filesystem type is ext2 or ext3, the necessary commands would be:
umount /oravl01
e2fsck -C 0 -v -f /dev/mapper/vg01-oravl01
mount /oravl01
If this is a NFS, GFS or OCFS filesystem, there may be other reasons.
This thread was posted to _HP-UX_ system administration forum: I'll ask the moderators to move it to the Linux sysadmin section.
MK