Linux tips

Here is few tricks for Linuch which we needed during our exploration of this system 😉

How to change executable flag for scripts recursively

find -iname '*.sh' | xargs chmod 777

How to configure shared library path

Add file atomix.conf to directory /etc/ld.so.conf.d. To this file enter following:

# atomix libraries
/home/USER_NAME/dev/SharedLibraries/libs

and then run

sudo ldconfig

External link: http://www.yolinux.com/TUTORIALS/LibraryArchives-StaticAndDynamic.html

VIM cheat sheet

External link: http://www.tuxfiles.org/linuxhelp/vimcheat.html

How to resize partition

Use gparted

sudo apt-get install gparted

Measure disk write speed

time sh -c "dd if=/dev/zero of=ddfile bs=8k count=100000 && sync"

Leave a Reply

Your email address will not be published. Required fields are marked *