Basic commands for working with VI (and VIM)

Basic commands for working with VI (and VIM)

Read the rest of Basic commands for working with VI (and VIM)

Basic commands for GNU/Linux – BSD (part 2)

Some more basic commands for GNU/Linux – BSD

Read the rest of Basic commands for GNU/Linux – BSD (part 2)

Basic commands for GNU/Linux – BSD (part 1)

Some basic commands for GNU/Linux – BSD

Read the rest of Basic commands for GNU/Linux – BSD (part 1)

analyze disk usage

echo 1 > /proc/sys/vm/block_dump enables you to see via dmesg and syslog which application is accessign the disk and for doing what blktrace from blktrace package (sudo apt-get install blktrace) is also useful since it prompts you with those applications that access your hd the most. Use it this way: bltrace /dev/sda

Read the rest of analyze disk usage

using sysctl and sysfs to tweak /proc and /sys parameters

using sysctl and sysfs to tweak /proc and /sys parameters can be useful in order to permanently set powertop suggestions or not to have to recompile the kernel for only one value change. lm-profiler helps disabling unneeded services You can use sysctl to tweak the running kernel parameters (tweak /proc entries) and /etc/sysctl.conf to apply [...]

Read the rest of using sysctl and sysfs to tweak /proc and /sys parameters

howto create password protected archives in linux

In GNOME file-roller (Archive Manager) version 2.26 enables you to create password protected archives. If you would like to use the shell to create those archives here is how: rar rar a -hp archive_name.rar folder_or_file_to_compress 7zip 7z a -mhe=on -p archive_name.7z folder_or_file_to_compress Click here to read how to make self extracting archives.

Read the rest of howto create password protected archives in linux

Compute partitions UUIDs

you maybe wonder how those UUID inside /etc/fstab have been computed. blkid /dev/sda8 simply does the job (where sda8 is the device you want the UUID computed for) They are unique ids (thus the acronym) and are computed by program blkid which can easily be invoked via shell in order to update those IDs in [...]

Read the rest of Compute partitions UUIDs

updatedb (slocate, locate) privacy settings

updatedb (slocate) is a powerful indexing utility to query whom you can use locate keyword command within a shell, hereafter a note about making it more sensitive to users privacy through editing /etc/updatedb.conf file and PRUNEPATHS= vairable.

Read the rest of updatedb (slocate, locate) privacy settings

mounting .iso & .img files

1) make the mount point folder e.g. sudo mkdir /media/iso 2) issue mount command sudo mount -t iso9660 -o loop isofile.iso /media/iso you can mount this way also .img files

Read the rest of mounting .iso & .img files

rescuing lost partitions and partition data for linux

Many thanks fly to Christophe Grenier http://www.cgsecurity.org/ for having developed such good and useful OpenSource tools for linux licensed under the GNU Public License (GPL). I’m talking about TestDisk and PhotoRec

Read the rest of rescuing lost partitions and partition data for linux