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

Answer Posted / 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



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How do I check cores in linux?

537


What does pwd mean in linux?

546


Enlist some linux to file content commands?

569


what is the fastest way to enter a series of commands from the command-line in linux

529


How to write the output of a command to a file?

574






How do I find cpu in linux?

531


What is the difference between find and locate command in linux?

542


What is clang llvm?

586


What is mask and umask in linux?

537


What is ulimit command?

611


What is the difference between diff and cmp command in unix?

480


What is make command in linux?

548


How do I check my system performance?

569


Enlist some linux networking and troubleshooting commands?

523


You suspect that you have two commands with the same name as the command is not producing the expected results. What command can you use to determine thelocation of the command being run?

507