When I started learning linux ,for listing files and directory I firsts learnt the command ls. ls command is widely in linux and Unix like operating system.It is a system command which by default shipped with operating system.Today I am sharing the 4 commands by which you can list file and directories.On other hand you […]
Articles
MySQL backup bash script
This is a simple mysql backup script.The script can be used manually as well as in crontab. Edit the below given script and provide the information required in the script. The script will take the backup in .sql format later it will compress the .sql file and in end send the mail about the status […]
how to remove history from Dash Home in Ubuntu
In this post we will learn about simple steps to remove the history or recent items which are shown in Dash Home in Ubuntu.The practical has been done in Ubuntu 12.10 and applicable to other Ubuntu which has Dash home. To remove the history from Dash ,follow the given below steps: Step 1: In Dash […]
Forward all incoming emails to other SMTP server or gateway
In this post we will learn how to forward all emails of particular domain to another SMTP server or gateway. I also used this method in different scenario. Scenario: I have my own mail server which can host multiple virtual domains and users (postfix+mysql). Now a client has domain called example.com and for mailing he […]
Convert new line to space by using sed command
This is a one line sed command trick in which we will convert the new line into space. I have a file in which there is a words per line.Now here I want to remove all these lines and instead of this I would like to use spaces. For eg. I have a file called […]
Debian Wheezy 7.1 package not found
Today I installed the Debian wheezy 7.1 and after doing apt-get update first problem I found ,the system was searching packages from CDROM. Because I do not want to install packages from CD first I commented the below given lines in /etc/apt/sources.list nano /etc/apt/sources.list # deb-src cdrom:[Debian GNU/Linux 7.1.0 _Wheezy_ – Official Multi-architecture i386/amd64/source DVD […]
How to configure vsftpd server with virtual user mysql authentication in CentOS 6
In this tutorial we will learn about how to configure vsftpd server with virtual user and mysql authentication in backend in CentOS 6 and Red Hat 6. Note: SELINUX and IPTABLES are disabled Features: vsftp server with chroot mysql authentication virtual users in mysql (Not in local system) Server Details: Operating System:CentOS release 6.4 (Final) […]
How to create VirtualHost in Apache Web Server
In this tutorial we will learn how to create VirtualHost in Apache Webserver. With the help of VirtualHost we can host many domains or website from single Web Server.This is a simple example to start with your first VirtualHost configuration in Apache Webserver. We have used a few terms which is required for setting up […]
How to install apache webserver in CentOS and Red Hat
In this tutorial we will learn about how to install apache webserver. Web server as the name says it is server which is used for web services. The websites and web applications required web server to run. Here for webserver we will install apache. There are other web server which are also widely use in […]
How to rename and move the directory and files in linux
To rename and move the directory and files in linux in linux we use single command called mv. The mv command is used for both purpose means renaming and moving the directory or file,it is system command which ships bydefault when you install any linux. The command is also applicable to all Unix based operating […]
How to set user postgres password in postgresql 9.1
In this tutorial we will learn How to set user postgres password in postgresql 9.1 and force to prompt for password. When you freshly install Postgresql and after using command psql it will allow you to login into postgresql server without prompting or asking for password. Here we will first of all reset the password […]
How to configure ethernet in CentOS 6 after installing in Virtual Box
In this tutorial we will configure the additional ethernet in CentOS. The practical has been done in Virtual box whereas it is also applicable to physical machines. Scenario: In Virtual Box,we have only one ethernet or NIC card (eth0) while installing the CentOS.Later we added one more ethernet(eth1) but when we were using command ifconfig […]
Install MySQL workbench in Ubuntu
MySQL Workbench is a integrated tool for MySQL. The MySQL workbench gives a graphical interface to user through which user can easily manage many MySQL Administration task. The tool can be install in Windows,MacOSX and Linux. As well as its source code is also available.The MySQL Workbench is easy to install in Windows,MacOSX and Linux […]
How to install vim in freebsd
vim is the acronym of Vi Improved . vim is text editor written by Bram Moolenaar. Vim is available in command line as well as in graphical mode. It has advanced features as compared to vi text editor which usually by default available in almost all unix like operating system. Note: Practical Tested in FreeBSD […]
How to install korn shell ksh in Linux
Korn shell or ksh is another Unix shell like bash,sh and csh. Korn shell was developed by David Korn at Bell Labs in the early 1980s and announced at USENIX on July 14, 1983. Many Unix based operating system like AIX,BSD etc. they already have ksh preinstalled. The AIX by default uses the ksh. To […]















