You have come across situation where you are watching a video and you intend to download the mp3 of that video.Here is the simple solution .The website for taking out the mp3 from video is video2mp3 . Take note of url of that video or copy that link from your address bar and paste it in the area named Video URL. The screenshot from the website :
Choose from either standard quality or high quality and click convert. It takes few minutes . Wait for 20 seconds or click on their Download Mp3 link.
For formats other than Mp3 like AAC/WMA/M4A/OGG/MP4/3GP/AVI/MPG/WMV/FLV use their other website ClipConverter
Wednesday, July 28, 2010
Saturday, July 24, 2010
Remove Directory command
Removes directory when contents inside it are empty :
Delete all the contents including contents of sub-directory with out the prompt message,in simple recursive delete without prompt :
recursive delete with prompt messages :
  rmdir directory_name |
Delete all the contents including contents of sub-directory with out the prompt message,in simple recursive delete without prompt :
  rm -rf directory_name |
recursive delete with prompt messages :
  rm -r directory_name |
Using Unzip command to unzip files
Preserving directory and sub-directory :
Include all junk path names without preserving directory structure :
Specify the name of the directory where you want to unzip :
  unzip file_name.zip |
Include all junk path names without preserving directory structure :
  unzip -j file_name.zip |
Specify the name of the directory where you want to unzip :
  unzip file_name.zip -d directory_name |
Checking Disk space
The command used to check disk space :
df stands for " disk file system " using -h along with df shows the disk space in human readable form .
  df |
df stands for " disk file system " using -h along with df shows the disk space in human readable form .
  df -h |
Uncompress and open tar.gz files
To Uncompress the tar.gz file the command used :
The resulting file would be Name_of_file.tar .To open that tar file the commnand used:
  gunzip -d Name_of_file.tar.gz |
The resulting file would be Name_of_file.tar .To open that tar file the commnand used:
  tar -xvf Name_of_file.tar |
Thursday, July 22, 2010
RPM - RPM package manager
Here are the few commands relating to rpm package from installing to deleting and few others . The commands are :
1) Installing rpm package :
2) To check installed rpm packages :
3) To delete the installed rpm packages :
Note : here (.rpm ) is not used while deleting packages
1) Installing rpm package :
- single package
rpm -i PackageName.rpm |
- multiple package
rpm -i PackageName1.rpm PackageName2.rpm ... .rpm |
2) To check installed rpm packages :
rpm -qa PackageName* |
Note : here * is a wildcard character which displays all names ,it does pattern matching.
3) To delete the installed rpm packages :
rpm -e PackageName |
Note : here (.rpm ) is not used while deleting packages
Enabling port 8000 or 80 on Linux
A very simple method to check whether the port is working or not is , type the following at console :
telnet your_ip port_number (which u want to check)
if you are able to connect it or can see a blank screen means the port is "open".
if not then change the firewall settings , do the following :
-A RH-Firewall-1-INPUT -m state NEW -m tcp --dport 21 -j ACCEPT
-A RH-Firewall-1-INPUT -m state NEW -m tcp --dport 22 -j ACCEPT
See if there is --dport 80 or 8000 or anyport which you want to access , if not add the following entry to iptables changing the --dbport to whichever port you want to open.
hope this works , !!!!!!!
telnet your_ip port_number (which u want to check)
telnet 192.168.1.2 8000 |
if you are able to connect it or can see a blank screen means the port is "open".
if not then change the firewall settings , do the following :
- check the : vi /etc/sysconfig/iptables
-A RH-Firewall-1-INPUT -m state NEW -m tcp --dport 21 -j ACCEPT
-A RH-Firewall-1-INPUT -m state NEW -m tcp --dport 22 -j ACCEPT
See if there is --dport 80 or 8000 or anyport which you want to access , if not add the following entry to iptables changing the --dbport to whichever port you want to open.
-A RH-Firewall-1-INPUT -m state NEW -m tcp --dport 80 -j ACCEPT |
service iptables restart |
hope this works , !!!!!!!
Subscribe to:
Posts (Atom)