statifier — Dynamic to Static

2010-01-24 2 min read Linux

<a href="http://statifier.sourceforge.net/">Homepage of statifier.

<span style="font-size: xx-small;"><span style="font-size: xx-small;">Statifier create from dynamically linked executables and all it&#8217;s libraries one file.
This file can be copied and run on another machine without need to drag all it&#8217;s libraries.

<span style="font-size: xx-small;"><span style="font-size: xx-small;">Dynamically linked executables are smaller then statically linked.
From the other side dynamically linked executables use shared libraries compiled in PIC (position independend code) which is slower than &#8221;normal&#8221; one.

Continue reading

Short Information about loaded kernel modules

2010-01-24 2 min read Linux

There are couple of ways you can find the information on the <a class="zem_slink" title="Loadable kernel module" rel="wikipedia" href="http://en.wikipedia.org/wiki/Loadable_kernel_module">loadable kernel modules. All these would always involve calling <a class="zem_slink" title="Lsmod" rel="wikipedia" href="http://en.wikipedia.org/wiki/Lsmod">lsmod to get the loaded kernel modules and then calling modinfo to get the info on the loaded modules. I will show you with examples:

$ lsmod
Module                  Size  Used by
cdc_acm                19616  0
vfat                    8744  9
fat                    41836  1 vfat

Continue reading

Viewing log files without using vi or any other text editor

2010-01-16 1 min read Linux

This is quite useful for viewing files without opening them.. Saves quite a lot of time in viewing the logs 🙂

Want to see the first 5 lines of the /etc/passwd file? Pretty easy, just use the "head" command:

head -5 /etc/passwd

Want to see the last 20 lines of the /etc/passwd file? Again, pretty easy, just use the "tail" command:

tail -20 /etc/passwd

But what if you only want to see lines 10-15 of a given file? Neither the "head" nor the "tail" commands alone will do. Instead, use the "sed" command to print the range of lines you want to see:

Continue reading

View information on all the rpms installed.

2010-01-16 1 min read Fedora Linux

This post if applicable to all the distro&#8217;s which are based on rpm.

If you look at the number of rpms installed on your system, you will see it somewhere around 500-2000. Noe thats a pretty huge number. So sometimes I keep wondering what are these rpms for. Heres a command that can help you figure out what these rpms are for:

rpm -qa –info

And if you want to find info on all the files and put it in a file too:

Continue reading
Older posts Newer posts