Check fragmentation levels on EXT3 files
During time, even Linux systems suffer from file fragmentation. To check the file fragmentation level of a certain file use filefrag -v filename
During time, even Linux systems suffer from file fragmentation. To check the file fragmentation level of a certain file use filefrag -v filename
If you really want to zap a file in Linux and be sure that it can’t be ever recovered, use the shred command. shred -u -z -v filename will not only delete the file but also overwrite the sectors it resided in 25 times, making recovery impossible.
You can protect your most important files from accidental deletion by giving them a “sticky bit” attribute: chmod +t filename
You can change the file permissions and ownership, the group and mode of a directory with a single command, using chown. For example, to make a directory called /dir accessible for everyone (RW), set the user joe as the owner of /dir and it’s contents and claim dev as the ownership group, use chown -R… Read More »