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 |
Which command puts a script to sleep untill a signal is recieved?
Write a cron entry for the following scenario:- At 10:30 AM for every Sunday of every 1st month of a quarter.
Why ls -F dev/log file output indicate as = sign at end of the file name?
I want to see how many interfaces(ethernet cards) are working using single command?
What is mkdir?
How does grep work in linux?
How to write the output of a command to a file?
What is du -s * | sort -k1,1rn | head command used for?
What are runlevels in linux?
What are grep commands?
what is "ls* " is run options are 1) x 2).x 3) hidden 4) no disply tell exact answer.
what is a superblock ?