Basic commands for working with VI (and VIM)

Basic commands for working with VI (and VIM)

addthis_url = ‘http%3A%2F%2Faldeby.org%2Fblog%2Findex.php%2Fbasic-commands-for-working-with-vi-and-vim.html’;
addthis_title = ‘Basic+commands+for+working+with+VI+%28and+VIM%29′;
addthis_pub = ”;

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

addthis_url = ‘http%3A%2F%2Faldeby.org%2Fblog%2Findex.php%2Fbasic-commands-for-gnulinux-part-2.html’;
addthis_title = ‘Basic+commands+for+GNU%2FLinux+-+BSD+%28part+2%29′;
addthis_pub = ”;

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

addthis_url = ‘http%3A%2F%2Faldeby.org%2Fblog%2Findex.php%2Fcomandi-basilari-per-il-terminale-di-linux-bsd-parte-1.html’;
addthis_title = ‘Basic+commands+for+GNU%2FLinux+-+BSD+%28part+1%29′;
addthis_pub = ”;

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

addthis_url = ‘http%3A%2F%2Faldeby.org%2Fblog%2Findex.php%2Fanalyze-disk-usage.html’;
[...]

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 these settings permanently
e.g. including [...]

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

howto create password protected archives in linux

in order to create password protected archives in linux you should use the shell since GNOME contextual menu does not provide this feature yet.
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

addthis_url = ‘http%3A%2F%2Faldeby.org%2Fblog%2Findex.php%2Fhowto-create-password-protected-archives-in-linux.html’;
addthis_title = ‘howto+create+password+protected+archives+in+linux’;
addthis_pub = ”;

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 case you [...]

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.

addthis_url = ‘http%3A%2F%2Faldeby.org%2Fblog%2Findex.php%2Fupdatedb-slocate-locate-privacy-settings.html’;
addthis_title = ‘updatedb+%28slocate%2C+locate%29+privacy+settings’;
addthis_pub = [...]

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

addthis_url = ‘http%3A%2F%2Faldeby.org%2Fblog%2Findex.php%2Fmounting-iso-img-files.html’;
addthis_title = ‘mounting+.iso+%26%2338%3B+.img+files’;
addthis_pub = ”;

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

addthis_url = ‘http%3A%2F%2Faldeby.org%2Fblog%2Findex.php%2Frescuing-lost-partitions-and-partition-data-for-linux.html’;
addthis_title = ‘rescuing+lost+partitions+and+partition+data+for+linux’;
addthis_pub = ”;

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

  • Page visits

    • 70169
  • Polls

    Do you keep your battery plugged in all the time?

    View Results

    Loading ... Loading ...
  • Categories

  • Meta

  • Recent Comments

  • Archives

  • Linux On Laptops

    -->