verify and compare two directories differences

In order to verify that two copies of a directory are equivalent there are different options: 1) diff – the easiest way diff -qr dir1 dir2 reports any differences in file contents in a similar way to md5sum. For more methods read on here:

Read the rest of verify and compare two directories differences

gnome-terminal empty

“There was a problem with the command for this terminal: Text was empty (or contained only whitespace)” Today I tried Gnome Conduit synchronizer and the result was f*up my gnome-terminal profile. If you get this error you have to close the error window and then click on

Read the rest of gnome-terminal empty

list hardware devices in a human readable format

In order to list hardware devices of you computer in a human readable format type: sudo lshw -html > ~/hardware_info.html && firefox ~/hardware_info.html

Read the rest of list hardware devices in a human readable format

How to delete undelatable files and folders in linux

There are filenames that are so weird that cannot be deleted by neither GNOME/KDE/etc. nor the rm shell command. This how to explains you different ways to cope with those files often dropped there simply by accident but sometimes actually being rootkits.

Read the rest of How to delete undelatable files and folders in linux

How to write an interactive shell script

These are two examples on how to write an interactive shell script, either with a YES/NO prompt and with a LIST among which the user has to choose.

Read the rest of How to write an interactive shell script

Building a self-extracting Windows archive under GNU/Linux

mirror from: http://www.tu-harburg.de/rzt/tuinfo/oberflaechen/linux/sfx.html How to build a self-extracting installation package for Microsoft Windows with your lovely GNU/Linux box — thanks to 7-zip! 7-Zip is free software distributed under the GNU LGPL.

Read the rest of Building a self-extracting Windows archive under GNU/Linux

aliases

in order to ease work on the terminal shell linux enables you to set aliases of complex commands. this can be done in different ways – temporary alias pico=’pico -w’ or alias pico=”pico -w” – permanent editing $HOME/.bashrc or $HOME/.bash_aliases and write down the alias strings at the bottom ot the files – to show [...]

Read the rest of aliases

shell Jobs

concept: only 1 foreground program can be running on a shell terminal, however several can run in the background. Here’s how.

Read the rest of shell Jobs

find on time basis

this is how to use the find command to search for files on a time basis, i.e. to search for files more recent than a certain date or time create an empty file with an arbitrary date and time (which will correspond to t0 of our search) touch -t yyyymmddhhmm [filename] find -newer [filename] you [...]

Read the rest of find on time basis

Disk quota management

You may need to set a maximum disk quota per user, so that one user cannot fill up the whole system with his documents/garbage. A disk quota is a limit set by a system administrator that restricts certain aspects of file system usage on modern operating systems. There are two basic types of disk quotas. [...]

Read the rest of Disk quota management