Ubuntu – What does ./ mean

command linedirectory

What does ./ mean?

For example: Does the following command mean moving files from Gapache2 folder to sites-available:

root@ip-10-112-55-203:/etc/mds-1.2-beta4/sana/config/etc/Gapache2# mv ./ /etc/apache2/sites-available

If not how should this be modified?

I tried getting something from Google Search. But ./ gets ignored by search engines.

Best Answer

In Unix/linux . means the current directory in your case /etc/mds-1.2-beta4/sana/config/etc/Gapache2. There are also many shortcuts like:

  • ..: parent directory (/etc/mds-1.2-beta4/sana/config/etc/)
  • ~: home folder

So to move all folders and files from /etc/mds-1.2-beta4/sana/config/etc/Gapache2 to /etc/apache2/sites-available, the command will be like this

mv ./* /etc/apache2/sites-available/

UPDATE: This link is a good resource for basic UNIX commands