Useful tail command with examples in Linux/Unix

Useful tail command with examples in Linux/Unix

In this tutorial we will learn about useful tail command with examples in Linux/Unix which will help you in linux and Unix system administration. Question: What the tail command do Answer: tail command helps to get output from last part of file. Question: When we generally use the tail command. Answer: => tail command is…

How to enable su access or switch to superuser in freebsd
|

How to enable su access or switch to superuser in freebsd

In this tutorial we will learn how to enable su access or switch to superuser in FreeBSD. su command is used to become another user during a login session. To become a superuser you can use the command su – or su -l root .But after installing freebsd the user other than root is not…

convert space into new line using sed command

convert space into new line using sed command

convert space into new line using sed command In this sed command trick we will learn how to convert space into new line.For more understanding we will take an example. In file called test we have written colour names with spaces.Now we will convert the space into new line. Syntax: sed ‘s/s/n/g’ file_name example is…

search keyword in file with line number using grep command

search keyword in file with line number using grep command

grep command which is used for searching the keyword in file and show its output as lines containing a match to the given PATTERN or Keyword. When we simply use grep command without using any switches it simply shows the output with line having the keyword.Today,in this post we will know about a small tip…

How to enable logging in Postgresql 9.2 and 9.1

How to enable logging in Postgresql 9.2 and 9.1

In this post we will learn how to enable logging in Postgresql 9.2 and 9.1.It is a quick method to enable logging in Postgresql 9.2 and 9.1.We will do changes in postgresql.conf file. Path in Postgresql 9.1 : /etc/postgresql/9.1/main/postgresql.conf Path in Postgresql 9.2 : /etc/postgresql/9.2/main/postgresql.conf To enable the log for all queries in Postgresql,follow the…

Command to create and delete group in Red Hat and CentOS linux

Command to create and delete group in Red Hat and CentOS linux

Command to create and delete group in Red Hat and CentOS linux Question: How to create and delete the group in Linux (Red Hat or CentOS) by using command line Answer: To create and delete the group in linux,follow the given below steps. To create new group ,use given below command Syntax: groupadd groupname Example…

Connect to windows shared folder in Xfce Desktop linux

Connect to windows shared folder in Xfce Desktop linux

In Xfce desktop the defualt file manager is thunar.It appears similarly to Gnome’s Nautilus. To connect windows shared folder or samba shared directory from client machine which has Xfce Desktop,use the given command. Open the terminal and type below given command,it will open the GUI of thunar thunar smb://ip-address-of-machine For eg. I have a shared…

How to configure multiple mysql instance in Ubuntu
|

How to configure multiple mysql instance in Ubuntu

How to configure multiple mysql instance in Ubuntu In this tutorial we will learn,how to configure multiple mysql instance in Ubuntu.Here multiple mysql instance means we can run multiple mysql server in single machine.We expect you have already install mysql-server in your system(if not then run the command apt-get install mysql-server). To configure multiple mysql…

Install XFCE Desktop in Ubuntu through command line

Install XFCE Desktop in Ubuntu through command line

XFCE is one the lightest Desktop environment for unix like operating system.If you are looking for alternate of Unity Desktop which must be lightweight desktop environment so here XFCE is the answer. The XFCE desktop can be installed along with Unity and any other Desktop environment hence there is no requirement to remove any older…

How to create multiple mysql instance in CentOS 6.4 and Red Hat 6.4
|

How to create multiple mysql instance in CentOS 6.4 and Red Hat 6.4

In this tutorial we will learn about how to create multiple mysql instance in CentOS 6.4 and Red Hat 6.4. Multiple instance means in single system we can create multiple MySQL server. These multiple mysql server will run in different ports.In this practical we expect you already have MySQL server installed in your system. To…