A file which is not deleted by normal user and also root
(using rm), for that type of file how we delete it?
Answers were Sorted based on User's Feedback
Answer / chin
Using chattr command we need to change the attributes.
and then normally remove using rm command.
ex: chattr -iIu example
then rm -rf example
| Is This Answer Correct ? | 21 Yes | 0 No |
Answer / vishak
using the chattr command you can remove that file.
eg: if you give chattr +i filename you will get that error.
To overcome type the following command.
chattr -i filename.
after that you use rm -rf filename it will work.
| Is This Answer Correct ? | 4 Yes | 0 No |
Answer / sanjay
Find the inode of that file then use find command to delete
ls -i
find . -inum <inode no> -exec /usr/bin/rm {} \;
| Is This Answer Correct ? | 0 Yes | 3 No |
WHAT IS THE MEANING IF AIX
Which priority has the process?how do u view?
Explain about the command lynx?
What the command used for list the contents of your home directory, current directory and all subdirectories?
What are two functions the move mv command can carry out?
what is ldd?
7 Answers IBM, Magnum, TCS, Tech Mahindra,
How do display error messages instantly when command fails?
Which are the linux directory commands?
what is the diff b/w ext2 and ext3?
How do I check cpu usage?
You want to know how many lines in the kickoff file contains ‘prize’. Which of the following commands will produce the desired results?
Explain about lpr filename?