subsys

Use of subsystem lock files in init script


In /var/lock/subsys/ directory, there are various files like network, iptables, ip6tables, sshd, rsyslog etc. all these files are the lock files created by their init scripts. Most of these files may be empty. These files play the important role in Linux startup and shutdown process. When a service is started through an init script, a…

ISO2USB

CentOS 6 CD/DVD/ISO to USB Installation


I tried various Linux ISO to USB software like UNetbootin, liveusb-creator, Universal-USB-Installer etc to create CentOS 6 (take a look at new look of CentOS website) bootable USB/pendrive. But all have some problems or limitations which force me to use ISO2USB software, which help me to meet my need. Requirement Create a CentOS 6 bootable…

How to find USB device in Linux


I wondered when I had to find the USB device name in Linux using shell script (shell command), it was little tricky, specially in case of UDEV. You can use different methods to get this like using udevinfo command, from sysfs, from /var/log/messages. Using udevinfo: for DEV in /dev/sd*; do udevinfo -q env -n $DEV…

More Helpful Commands in Linux


A backdrop of stars Difficulty: Easy Application: KStars You may already have played with KStars, but how about creating a KStars backdrop image that’s updated every time you start up? KStars can be run with the –dump switch, which dumps out an image from your startup settings, but doesn’t load the GUI at all. You…

Fork bomb

Can Linux crashes in just one command?


After a very nice discussion over Linux vs Windows between the group members, all the Linux & Windows supporter was trying to prove their OS better. One of the Windows supporter write a text string (can say a command) to execute in a Linux terminal, which can crash it in just one enter. WARNING!!!: DON’T…

All about Fuser in LINUX


The fuser utility in Linux is a powerful tool. As the name suggests it gives information about file user or the process that is currently using the file or directory. But fuser functionality is not just limited to giving information about the process. The article explains how to use fuser utility with 5 practical examples.…

What is Network Address Translation?


Network Address Translation (NAT) is the process where a network device, usually a firewall, assigns a public address to a computer (or group of computers) inside a private network. The main use of NAT is to limit the number of public IP addresses an organization or company must use, for both economy and security purposes.…