INIT Script TUX

All about Linux init script


What is an init script, what is the use of it, how to write an init script? Lets begin to know the answers. Declaimer: Use it at your own risk!!! Writing this topic for learning and knowledge sharing purpose only. You must own root privileges (and authority) on the system where you are trying or applying this topic. What is an init…

redhat-release

What is my CentOS/RedHat/Fedora Linux Distribution Name and Version


There are many way find the Linux Distribution Name and Version, but my favorite to find  CentOS/RedHat/Fedora distribution name and version is to read from /etc/redhat-release file. In CentOS 6.5, /etc/redhat-release file contain following contents: # cat /etc/redhat-release CentOS release 6.5 (Final To find out distribution name, use command: awk ‘{print $1}’ /etc/redhat-release And to…

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…