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



A file which is not deleted by normal user and also root (using rm), for that type of file how we d..

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

A file which is not deleted by normal user and also root (using rm), for that type of file how we d..

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

A file which is not deleted by normal user and also root (using rm), for that type of file how we d..

Answer / bharath

after entering cme which error ur getting.....

Is This Answer Correct ?    0 Yes 1 No

A file which is not deleted by normal user and also root (using rm), for that type of file how we d..

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

A file which is not deleted by normal user and also root (using rm), for that type of file how we d..

Answer / ganeshkaliyappan

rm -rf filename

Is This Answer Correct ?    2 Yes 5 No

Post New Answer

More Linux Commands Interview Questions

What is netstat command in linux?

0 Answers  


how to create SAMBA server in fedora 9 linux ?

6 Answers   Wipro,


Which command will show you free/used memory? Does free memory exist on linux?

0 Answers  


i am prepairing for 2+ yrs exp in oracle/unix production support, which topics should i cover in unix/linux and sql plz help

2 Answers   HCL,


Explain about lpr filename?

0 Answers  






you wish to create a link to the /data directory in bob's home directory so you issue the command ln /data /home/bob/datalink but the command fails. What options hould you use in this command line to be successful.

0 Answers  


A file which is not deleted by normal user and also root (using rm), for that type of file how we delete it?

5 Answers   CTS,


what is the command to view gateway?

5 Answers  


How does case sensitivity affect the way you use commands?

0 Answers  


What is type command in linux?

0 Answers  


What is the difference between locating and locate command?

0 Answers  


how to see the system configuration in your linux system?

7 Answers  


Categories