Protecting files and folders from unwanted deletion

Protecting files from unwanted deletion is very important security on the tasklist of Unix Administrators. On Linux boxes you can use the chattr command.

Let’s give you some examples how chattr work under Linux -

To make a folder undeletable, run -

sudo chattr +i -R foldername

After that, you can ...

more ...

ctodo

One programme that I use everyday is ctodo which is to be found at https://github.com/Acolarh/ctodo ,and its a simple ncurses-based task list manager.

Figure 1

They say that pictures are worth a thousand words, so here we are, ‘ctodo’ in all its ncurses-glory! I do hope that you ...

more ...

Miscellany

Finding information about your mobile phone

Open the dial pad and type the following -

*# *#4636# *# *

And you’ll see various hidden things about your mobile.

Convert a .mkv file to a .avi

Command line to convert a MKV file to a smaller xVid AVI file, by reducing the video bit ...

more ...


Grep

I’ve used sudo updatedb and then locate foo to find things on my system, and that worked for some things but not others. I needed something more powerful, enter ……….. Grep!

Grep works as

grep pattern file-name1 file-name2

as in

grep 'Bin 01' /home/boztu/Music/*

Which shows all instances ...

more ...

Tweaks - 2

To create a new backup file for burning to dvd, use this command line tool -

tar cvzf 20120115.tar.gz 20120115

which is very effective and quite quick too.

To log the output use the following command -

tar cvzf 20120116.tar.gz 20120116 >> /home/boztu/cron/log.txt 2>&1 ...

more ...

pdftotext

I had a 96 page pdf file to convert to text, and it was named ‘UK Households 2005.pdf’ but pdftotext couldn’t convert it at all. So I cd’d into the directory where the pdf file was located, and renamed the file as ‘UKHouseholds2005.pdf’, and then ran ...

more ...