Display date-clock with simple bash command and while loop

Here is a simple example on how to display date/watch with simple bash command:

$ while true; do clear; date; sleep 1; done

List only hidden files with ls command

We all know how to list non-hidden and hidden files with ls command on shell. However I could not find out how to list only hidden files ( starting with “.” ) with only ls command. One, but not complete solution could by to using TAB key. For example ls . and pressing 2xTAB will [...]

List all files and directories recursively but do not include full path

ls -R will list all files recursively. The output of such a command will produce a output containing not only a files but also full path the the each file or directory. One way to clean this output is to use grep and invert selection with -v option. Each path from ls -R command contains [...]

Get list of the installed packages from debian distributions for documentation

When documenting my server installation I needed to have a list of packages installed on my server. dpkg –get-selections is great help but it returns values/packages each on separate line including “installed” keyword. This command returns list of installed packages in the single block separated with single space:
dpkg –get-selections | awk ‘{ print $1; }’| [...]

Reduce compression size of vmware linux virtual machine on ext2,ext3 file system

As I need from time to time compress my vmware virtual machine I needed to find out the way to compress it to a minimum size possible. Even, I removed all unnecessary files from my file system the actual compressed file of my vmware virtual machine did not reduce on size. The reason for this [...]

Mount iso image ( ISO 9660 filesystem ) with linux mount command

Instead of burning all images to cd / dvd disks is sometimes better and quicker to just mount row iso 9660 file system to your Linux. Lets say that we want to mount myiso9660.iso image.
First create mount point:
mkdir /mnt/myiso
Then mount iso with linux mount command:
mount -t iso9660 myiso9660.iso /mnt/myiso -o loop
All files can be accessed [...]

Basic linux command guide / tutorial with command line examples for linux beginners

This link can be very useful for someone starting with Linux administration. This guide / tutorial covers all basic Linux commands and examples on command line using bash shell ( BASH ). It can also be use as a Linux command reference.
Linux Commands
enjoy your Linux commands training ..

Rip / backup / copy dvd to avi mpeg4 format with linux mencoder

1)
First identify the chapter which you would like to rip to avi mpeg4 format. Usually it is the biggest file on the dvd with extension *.vob . Other option is to use:
mplayer -identify -nosound -novideo dvd://
2)
Get and covert sound to mp3:
mencoder -oac mp3lame -lameopts br=96:cbr:vol=6 -ovc frameno -o dvdrip.avi dvd://1
3)
Get video:
run this command for [...]

Convert from mp3 to ogg and from ogg to mp3 format with soundconvert

First install soundconvert linux package. This allows you to convert between ogg and mp3 sound media formats. On debian or ubuntu simply:
apt-get install soundconvert
to convert from ogg format to mp3 format use command:
soundconvert.pl -o mp3 mediamusic.ogg
to convert from mp3 format to ogg format use command:
soundconvert.pl -o ogg mediamusic.mp3
If you wish to convert all files [...]

Download, install, update, erase rpm packages using yum

yum – Red Hat tool for RPM package management used to download, install update, erase or list info about system packages
/etc/yum.repos.d/ -> list of configured repositories (web or ftp sites) that will be searched to download and install RPM packages
To view which repositories you have enabled:
yum repolist enabled
repo id [...]