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…

Creating a Counter-Strike Server on Linux


From http://www.cstrike-planet.com: On this page we will explain how to install Counter-Strike and Counter-Strike: Source. We assume you have some Linux knowledge. We will start with Counter-Strike: Source. Installing Counter-Strike: Source (SRCDS) First, lets create a directory where we will run the hldsupdatetool, run the following command: code: mkdir srcds Now we switch to the…

10 Must Play Linux games for 2012


Gaming on Linux? A few years ago this would only be said as a joke. Thankfully for us, Linux gaming has evolved offering some mature open source games, as well as some very nice commercial games. Let’s try and find out what are the best 10 games a Linux gamer must play this year… Oil…

What “Everything Is a File” Means on Linux


One of the defining features of Linux and other UNIX-like operating systems is that “everything is a file.” This is an oversimplification, but understanding what it means will help you understand how Linux works. Many things on Linux appear in your file system, but they aren’t actually files. They’re special files that represent hardware devices,…

date/time stamp in ping command


Most of you are very familiar with ping command which is most commonly used to check any network device is alive or not. A very simple and useful command. And if we can add date/time stamp in it, it will be more helpful to generate a good statistics. It is very easy in Linux without…