≡ Menu

Linux

Strip command is used mostly in situations where you want to produce a production quality object file which contains minimum required information so that it can be light weight. You can also use it if you don’t want your executable or object file to get reverse engineered. In this article, we will understand the usage [...]

{ 2 comments }

Sometimes it is required to quickly determine details like kernel name, version, hostname, etc of the Linux box you are using. Even though you can find all these details in respective files present under the proc filesystem, it is easier to use uname utility to get these information quickly. The basic syntax of the uname [...]

{ 3 comments }

15 Linux lsof Command Examples (Identify Open Files)

lsof stands for List Open Files. It is easy to remember lsof command if you think of it as “ls + of”, where ls stands for list, and of stands for open files. It is a command line utility which is used to list the information about the files that are opened by various processes. [...]

{ 25 comments }

10 Linux Fsck Command Examples to Check and Repair Filesystem

Linux fsck utility is used to check and repair Linux filesystems (ext2, ext3, ext4, etc.). Depending on when was the last time a file system was checked, the system runs the fsck during boot time to check whether the filesystem is in consistent state. System administrator could also run it manually when there is a [...]

{ 20 comments }

Linux OD Command Examples (Octal Dump)

od command in Linux is used to output the contents of a file in different formats with the octal format being the default. This command is especially useful when debugging Linux scripts for unwanted changes or characters. This article explains how to use od command with some examples. The basic syntax of this command is [...]

{ 6 comments }

This article is part of our ongoing Linux IPTables series of articles. When things are not working as expected with your IPTables rules, you might want to log the IPTables dropped packets for troubleshooting purpose. This article explains how to log both incoming and outgoing dropped firewal packets. If you are new to IPTables, first [...]

{ 22 comments }

As you already know, Linux diff command compares two files. However Linux diff3 utility compares three files and is also capable of merging the difference between two files into the third one. In this article, we will understand the usage of diff3 command through some examples. The basic syntax of diff3 is : diff3 [OPTION]... [...]

{ 5 comments }

GPROF Tutorial – How to use Linux GNU GCC Profiling Tool

Profiling is an important aspect of software programming. Through profiling one can determine the parts in program code that are time consuming and need to be re-written. This helps make your program execution faster which is always desired. In very large projects, profiling can save your day by not only determining the parts in your [...]

{ 25 comments }